	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_run_dnsq                    ## -- Begin function yp_run_dnsq
	.p2align	4, 0x90
_yp_run_dnsq:                           ## @yp_run_dnsq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPACKET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rbx
	addq	$4, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_debug@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_yp_error
LBB0_2:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bzero
	movl	$4, -60(%rbp)
	movq	_resfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%r12, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	callq	_recvfrom
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:
	movq	_pending@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_12
## %bb.5:
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_ntohs
	movq	_BY_DNS_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_yp_find_dnsqent
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %r14
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.7:
	movl	-56(%rbp), %edi
	callq	_inet_ntoa
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_yp_error
LBB0_8:
	movq	(%r14), %rcx
	movq	8(%r14), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	___dns_getanswer
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	(%r14), %rcx
	movq	_T_PTR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_11
## %bb.10:
	movq	24(%r14), %rcx
	movq	%rcx, (%rax)
	movl	20(%r14), %ecx
	movl	%ecx, 12(%rax)
	movl	16(%r14), %ecx
	movl	%ecx, 8(%rax)
LBB0_11:
	movq	%rax, %rdi
	callq	_parse
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_yp_send_dns_reply
	decl	(%rbx)
	movq	_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_qhead@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	8(%r14), %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	xorl	%eax, %eax
	callq	_yp_prune_dnsq
	jmp	LBB0_12
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_yp_error
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPACKET,4,2                  ## @MAXPACKET
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"running dns queue"

	.comm	_resfd,4,2                      ## @resfd
L_.str.1:                               ## @.str.1
	.asciz	"recvfrom failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_pending,4,2                    ## @pending
	.comm	_BY_DNS_ID,4,2                  ## @BY_DNS_ID
L_.str.2:                               ## @.str.2
	.asciz	"got dns reply from %s"

	.comm	_T_PTR,8,3                      ## @T_PTR
	.comm	_qhead,4,2                      ## @qhead
	.comm	_links,4,2                      ## @links
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_run_dnsq                    ; -- Begin function yp_run_dnsq
	.p2align	2
_yp_run_dnsq:                           ; @yp_run_dnsq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAXPACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPACKET@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	add	x20, x8, #4
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #19
	and	x8, x8, #0xfffffffffffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh8:
	adrp	x23, _debug@GOTPAGE
Lloh9:
	ldr	x23, [x23, _debug@GOTPAGEOFF]
	ldr	x8, [x23]
	cbz	x8, LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_yp_error
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_bzero
	mov	w8, #4
	stur	w8, [x29, #-68]
Lloh12:
	adrp	x8, _resfd@GOTPAGE
Lloh13:
	ldr	x8, [x8, _resfd@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	sub	x4, x29, #64
	sub	x5, x29, #68
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_recvfrom
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.3:
Lloh15:
	adrp	x22, _pending@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pending@GOTPAGEOFF]
	ldr	w8, [x22]
	cbz	w8, LBB0_12
; %bb.4:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_ntohs
Lloh17:
	adrp	x8, _BY_DNS_ID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BY_DNS_ID@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_yp_find_dnsqent
	cbz	x0, LBB0_12
; %bb.5:
	mov	x20, x0
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.6:
	ldur	w0, [x29, #-64]
	bl	_inet_ntoa
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_yp_error
	add	sp, sp, #16
LBB0_7:
	ldp	x3, x2, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	___dns_getanswer
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x8, [x20]
Lloh22:
	adrp	x9, _T_PTR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _T_PTR@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x20, #24]
	str	x8, [x0]
	ldr	d0, [x20, #16]
	str	d0, [x0, #8]
LBB0_10:
	bl	_parse
	mov	x1, x0
	mov	x0, x20
	bl	_yp_send_dns_reply
	ldr	w8, [x22]
	sub	w8, w8, #1
	str	w8, [x22]
Lloh25:
	adrp	x8, _links@GOTPAGE
Lloh26:
	ldr	x8, [x8, _links@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x0, _qhead@GOTPAGE
Lloh29:
	ldr	x0, [x0, _qhead@GOTPAGEOFF]
	mov	x1, x20
	bl	_TAILQ_REMOVE
	ldr	x0, [x20, #8]
	bl	_free
	mov	x0, x20
	bl	_free
	bl	_yp_prune_dnsq
	b	LBB0_12
LBB0_11:
Lloh30:
	adrp	x8, _errno@GOTPAGE
Lloh31:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_yp_error
	add	sp, sp, #16
LBB0_12:
	ldur	x8, [x29, #-56]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPACKET,4,2                  ; @MAXPACKET
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"running dns queue"

	.comm	_resfd,4,2                      ; @resfd
l_.str.1:                               ; @.str.1
	.asciz	"recvfrom failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_pending,4,2                    ; @pending
	.comm	_BY_DNS_ID,4,2                  ; @BY_DNS_ID
l_.str.2:                               ; @.str.2
	.asciz	"got dns reply from %s"

	.comm	_T_PTR,8,3                      ; @T_PTR
	.comm	_qhead,4,2                      ; @qhead
	.comm	_links,4,2                      ; @links
.subsections_via_symbols
