// File: /workspace/github_c_makefile_star2_O3/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
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 0x29e12
leaq (%rdi,%rsi), %r14
xorl %ebx, %ebx
subq %rsi, %r10
cmovbq %rbx, %r10
movl $0x1, %esi
movq %rdi, %r9
cmpq %rsi, %r10
jae 0x29e68
cmpq %r14, %r9
jae 0x29e65
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 0x29e68
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %rsi
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x29e3d
cmpq %rdi, %r9
jbe 0x29ea7
leaq 0x1(%rdi), %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 0x29e8a
cmpq %r14, %r9
jae 0x29eb5
movb $0x20, (%r9)
incq %r9
jmp 0x29eb8
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 0x29ec4
movq %r14, %rax
subq %r9, %rax
xorl %esi, %esi
subq %rax, %r10
cmovaeq %r10, %rsi
movl $0x1, %r10d
movq %r9, %r11
cmpq %r10, %rsi
jae 0x29f1d
cmpq %r14, %r11
jae 0x29f1a
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 0x29f1d
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %r10
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x29ef2
cmpq %r11, %r9
jae 0x29f5b
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 0x29f3e
cmpq %r14, %r11
jae 0x29f69
movb $0x20, (%r11)
incq %r11
jmp 0x29f6c
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 0x29f78
movq %r14, %rax
subq %r11, %rax
xorl %esi, %esi
subq %rax, %r9
cmovaeq %r9, %rsi
movl $0x1, %r9d
movq %r11, %r15
cmpq %r9, %rsi
jae 0x29fd1
cmpq %r14, %r15
jae 0x29fce
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 0x29fd1
incq %rbx
movq %rcx, %rax
mulq %r8
shrq $0x3, %rdx
incq %r9
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x29fa6
cmpq %r15, %r11
jae 0x2a00f
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 0x29ff2
cmpq %r14, %r15
movq %rdi, (%rsp)
jae 0x2a021
movb $0x20, (%r15)
incq %r15
jmp 0x2a024
incq %rbx
addq $0x6, %r12
movq %r12, %rdi
callq 0xf560
movq %rax, %r13
movq %r14, %rbp
subq %r15, %rbp
cmpq %rax, %rbp
movq %r12, %rsi
movq %rax, %r12
cmovbq %rbp, %r12
movq %r15, %rdi
movq %r12, %rdx
callq 0xfa60
addq %r15, %r12
xorl %eax, %eax
subq %rbp, %r13
cmovaeq %r13, %rax
addq %rbx, %rax
cmpq %r14, %r12
jae 0x2a073
movb $0x0, (%r12)
subq (%rsp), %r12
movq %r12, %rcx
jmp 0x2a096
movq (%rsp), %rdx
cmpq %rdx, %r12
jbe 0x2a094
leaq -0x1(%r12), %rcx
cmpb $0x0, -0x1(%r12)
je 0x2a08f
incq %rax
movb $0x0, (%rcx)
subq %rdx, %rcx
jmp 0x2a096
xorl %ecx, %ecx
addq %rcx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq