// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_srv_print
size_t dns_srv_print(void *_dst, size_t lim, struct dns_srv *srv) {
	struct dns_buf dst = DNS_B_INTO(_dst, lim);

	dns_b_fmtju(&dst, srv->priority, 0);
	dns_b_putc(&dst, ' ');
	dns_b_fmtju(&dst, srv->weight, 0);
	dns_b_putc(&dst, ' ');
	dns_b_fmtju(&dst, srv->port, 0);
	dns_b_putc(&dst, ' ');
	dns_b_puts(&dst, srv->target);

	return dns_b_strllen(&dst);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rdi, %r14
movzwl (%rdx), %ecx
xorl %r10d, %r10d
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %r9
incq %r10
movq %r9, %rax
mulq %r8
shrq $0x3, %rdx
cmpq $0x9, %r9
movq %rdx, %r9
ja 0x2a0fc
leaq (%r14,%rsi), %rbp
xorl %ebx, %ebx
subq %rsi, %r10
cmovbq %rbx, %r10
movl $0x1, %esi
movq %r14, %r9
cmpq %rsi, %r10
jae 0x2a152
cmpq %rbp, %r9
jae 0x2a14f
movq %rcx, %rax
mulq %r8
shrl $0x2, %edx
andl $-0x2, %edx
leal (%rdx,%rdx,4), %eax
movl %ecx, %edx
subl %eax, %edx
orb $0x30, %dl
movb %dl, (%r9)
incq %r9
jmp 0x2a152
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %rsi
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x2a127
cmpq %r14, %r9
jbe 0x2a191
leaq 0x1(%r14), %rax
movq %r9, %rcx
movb -0x1(%rcx), %dl
movb -0x1(%rax), %sil
movb %sil, -0x1(%rcx)
decq %rcx
movb %dl, -0x1(%rax)
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x2a174
cmpq %rbp, %r9
jae 0x2a19f
movb $0x20, (%r9)
incq %r9
jmp 0x2a1a2
incq %rbx
movzwl 0x2(%r12), %ecx
xorl %r10d, %r10d
movq %rcx, %rsi
incq %r10
movq %rsi, %rax
mulq %r8
shrq $0x3, %rdx
cmpq $0x9, %rsi
movq %rdx, %rsi
ja 0x2a1ae
movq %rbp, %rax
subq %r9, %rax
xorl %esi, %esi
subq %rax, %r10
cmovaeq %r10, %rsi
movl $0x1, %r10d
movq %r9, %r11
cmpq %r10, %rsi
jae 0x2a207
cmpq %rbp, %r11
jae 0x2a204
movq %rcx, %rax
mulq %r8
shrl $0x2, %edx
andl $-0x2, %edx
leal (%rdx,%rdx,4), %eax
movl %ecx, %edx
subl %eax, %edx
orb $0x30, %dl
movb %dl, (%r11)
incq %r11
jmp 0x2a207
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %r10
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x2a1dc
cmpq %r11, %r9
jae 0x2a245
incq %r9
movq %r11, %rax
movb -0x1(%rax), %cl
movb -0x1(%r9), %dl
movb %dl, -0x1(%rax)
decq %rax
movb %cl, -0x1(%r9)
leaq 0x1(%r9), %rcx
cmpq %rax, %r9
movq %rcx, %r9
jb 0x2a228
cmpq %rbp, %r11
jae 0x2a253
movb $0x20, (%r11)
incq %r11
jmp 0x2a256
incq %rbx
movzwl 0x4(%r12), %ecx
xorl %r9d, %r9d
movq %rcx, %rsi
incq %r9
movq %rsi, %rax
mulq %r8
shrq $0x3, %rdx
cmpq $0x9, %rsi
movq %rdx, %rsi
ja 0x2a262
movq %rbp, %rax
subq %r11, %rax
xorl %esi, %esi
subq %rax, %r9
cmovaeq %r9, %rsi
movl $0x1, %r9d
movq %r11, %r15
cmpq %r9, %rsi
jae 0x2a2bb
cmpq %rbp, %r15
jae 0x2a2b8
movq %rcx, %rax
mulq %r8
shrl $0x2, %edx
andl $-0x2, %edx
leal (%rdx,%rdx,4), %eax
movl %ecx, %edx
subl %eax, %edx
orb $0x30, %dl
movb %dl, (%r15)
incq %r15
jmp 0x2a2bb
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %r9
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x2a290
cmpq %r15, %r11
jae 0x2a2f9
incq %r11
movq %r15, %rax
movb -0x1(%rax), %cl
movb -0x1(%r11), %dl
movb %dl, -0x1(%rax)
decq %rax
movb %cl, -0x1(%r11)
leaq 0x1(%r11), %rcx
cmpq %rax, %r11
movq %rcx, %r11
jb 0x2a2dc
cmpq %rbp, %r15
jae 0x2a307
movb $0x20, (%r15)
incq %r15
jmp 0x2a30a
incq %rbx
addq $0x6, %r12
movq %r12, %rdi
callq 0xf560
movq %rbp, %rcx
subq %r15, %rcx
cmpq %rax, %rcx
movq %rax, %r13
cmovbq %rcx, %r13
movq %rax, %rdx
subq %r13, %rdx
movq %r12, %rsi
xorl %r12d, %r12d
cmpq %rax, %rcx
cmovbq %rdx, %r12
movq %r15, %rdi
movq %r13, %rdx
callq 0xfa60
addq %r15, %r13
addq %rbx, %r12
cmpq %rbp, %r13
jae 0x2a35c
movb $0x0, (%r13)
subq %r14, %r13
movq %r13, %rax
jmp 0x2a379
cmpq %r14, %r13
jbe 0x2a377
leaq -0x1(%r13), %rax
cmpb $0x0, -0x1(%r13)
je 0x2a372
incq %r12
movb $0x0, (%rax)
subq %r14, %rax
jmp 0x2a379
xorl %eax, %eax
addq %rax, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq