	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_async_lookup_name           ## -- Begin function yp_async_lookup_name
	.p2align	4, 0x90
_yp_async_lookup_name:                  ## @yp_async_lookup_name
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$-1, -44(%rbp)
	movl	$4, -48(%rbp)
	movq	8(%rdi), %rax
	movl	4(%rax), %edi
	movq	_SOL_SOCKET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SO_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %rcx
	leaq	-48(%rbp), %r8
	callq	_getsockopt
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	-44(%rbp), %eax
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	movq	8(%r15), %rdi
	callq	_svcudp_get_xid
	movq	_BY_RPC_XID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_yp_find_dnsqent
	testq	%rax, %rax
	jne	LBB0_15
LBB0_4:
	xorl	%eax, %eax
	callq	_yp_malloc_dnsent
	movq	_YP_YPERR@GOTPCREL(%rip), %r13
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, %rbx
	movq	_AF_INET@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.7:
	movq	_T_A@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_yp_error
	movq	_YP_YPERR@GOTPCREL(%rip), %r13
	jmp	LBB0_16
LBB0_6:
	movq	_T_AAAA@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movl	%esi, 20(%rbx)
	movq	_DEF_TTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	8(%r15), %rdi
	movq	%rdi, 32(%rbx)
	movl	(%r15), %eax
	movl	%eax, 48(%rbx)
	movl	-44(%rbp), %eax
	movl	%eax, (%rbx)
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	callq	_svcudp_get_xid
	movl	%eax, 44(%rbx)
	movq	32(%rbx), %rdi
	movl	20(%rbx), %esi
LBB0_10:
	movl	(%rdi), %eax
	movl	%eax, 40(%rbx)
	movq	__res@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	%r14, %rdi
	callq	_yp_send_dns_query
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%r14, %rdi
	callq	_strdup
	movl	%eax, 16(%rbx)
	movq	_links@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_qhead@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_INSERT_HEAD
	movq	_pending@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.13:
	movq	8(%rbx), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_yp_error
LBB0_14:
	xorl	%eax, %eax
	callq	_yp_prune_dnsq
LBB0_15:
	movq	_YP_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_yp_error
	movq	%rbx, %rdi
	callq	_free
LBB0_16:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOL_SOCKET,4,2                 ## @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ## @SO_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getsockopt failed: %s"

	.comm	_errno,4,2                      ## @errno
	.comm	_YP_YPERR,4,2                   ## @YP_YPERR
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_BY_RPC_XID,4,2                 ## @BY_RPC_XID
	.comm	_YP_TRUE,4,2                    ## @YP_TRUE
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_T_A,4,2                        ## @T_A
	.comm	_T_AAAA,4,2                     ## @T_AAAA
	.comm	_DEF_TTL,4,2                    ## @DEF_TTL
	.comm	__res,4,2                       ## @_res
L_.str.1:                               ## @.str.1
	.asciz	"DNS query failed"

	.comm	_qhead,4,2                      ## @qhead
	.comm	_links,4,2                      ## @links
	.comm	_pending,4,2                    ## @pending
	.comm	_debug,8,3                      ## @debug
L_.str.2:                               ## @.str.2
	.asciz	"queueing async DNS name lookup (%lu)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_yp_async_lookup_name           ; -- Begin function yp_async_lookup_name
	.p2align	2
_yp_async_lookup_name:                  ; @yp_async_lookup_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	mov	w9, #-1
	mov	w8, #4
	stp	w9, w8, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	w0, [x8, #4]
Lloh0:
	adrp	x8, _SOL_SOCKET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOL_SOCKET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SO_TYPE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SO_TYPE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #12
	bl	_getsockopt
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.1:
	ldr	w8, [sp, #8]
Lloh6:
	adrp	x23, _SOCK_DGRAM@GOTPAGE
Lloh7:
	ldr	x23, [x23, _SOCK_DGRAM@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldr	x0, [x21, #8]
	bl	_svcudp_get_xid
Lloh8:
	adrp	x8, _BY_RPC_XID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BY_RPC_XID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_yp_find_dnsqent
	cbnz	x0, LBB0_10
LBB0_3:
	bl	_yp_malloc_dnsent
	cbz	x0, LBB0_13
; %bb.4:
	mov	x20, x0
Lloh11:
	adrp	x8, _AF_INET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _T_A@GOTPAGE
Lloh15:
	ldr	x9, [x9, _T_A@GOTPAGEOFF]
Lloh16:
	adrp	x10, _T_AAAA@GOTPAGE
Lloh17:
	ldr	x10, [x10, _T_AAAA@GOTPAGEOFF]
	cmp	w8, w22
	csel	x8, x9, x10, eq
	ldr	w1, [x8]
	str	w1, [x0, #20]
Lloh18:
	adrp	x8, _DEF_TTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DEF_TTL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	x0, [x21, #8]
	str	x0, [x20, #32]
	ldr	w9, [x21]
	stp	w9, w8, [x20, #48]
	ldr	w8, [sp, #8]
	str	w8, [x20]
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	bl	_svcudp_get_xid
	str	w0, [x20, #44]
	ldr	x0, [x20, #32]
	ldr	w1, [x20, #20]
LBB0_6:
	ldr	w8, [x0]
	str	w8, [x20, #40]
Lloh21:
	adrp	x8, __res@GOTPAGE
Lloh22:
	ldr	x8, [x8, __res@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	mov	x0, x19
	bl	_yp_send_dns_query
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.7:
	mov	x0, x19
	bl	_strdup
	str	w0, [x20, #16]
Lloh24:
	adrp	x8, _links@GOTPAGE
Lloh25:
	ldr	x8, [x8, _links@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x0, _qhead@GOTPAGE
Lloh28:
	ldr	x0, [x0, _qhead@GOTPAGEOFF]
	mov	x1, x20
	bl	_TAILQ_INSERT_HEAD
Lloh29:
	adrp	x8, _pending@GOTPAGE
Lloh30:
	ldr	x8, [x8, _pending@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh31:
	adrp	x8, _debug@GOTPAGE
Lloh32:
	ldr	x8, [x8, _debug@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_yp_error
LBB0_9:
	bl	_yp_prune_dnsq
LBB0_10:
Lloh36:
	adrp	x8, _YP_TRUE@GOTPAGE
Lloh37:
	ldr	x8, [x8, _YP_TRUE@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
Lloh38:
	adrp	x8, _errno@GOTPAGE
Lloh39:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	_strerror
	str	x0, [sp]
Lloh41:
	adrp	x0, l_.str@PAGE
Lloh42:
	add	x0, x0, l_.str@PAGEOFF
	bl	_yp_error
	b	LBB0_13
LBB0_12:
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_yp_error
	mov	x0, x20
	bl	_free
LBB0_13:
Lloh45:
	adrp	x8, _YP_YPERR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _YP_YPERR@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_SOL_SOCKET,4,2                 ; @SOL_SOCKET
	.comm	_SO_TYPE,4,2                    ; @SO_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getsockopt failed: %s"

	.comm	_errno,4,2                      ; @errno
	.comm	_YP_YPERR,4,2                   ; @YP_YPERR
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_BY_RPC_XID,4,2                 ; @BY_RPC_XID
	.comm	_YP_TRUE,4,2                    ; @YP_TRUE
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_T_A,4,2                        ; @T_A
	.comm	_T_AAAA,4,2                     ; @T_AAAA
	.comm	_DEF_TTL,4,2                    ; @DEF_TTL
	.comm	__res,4,2                       ; @_res
l_.str.1:                               ; @.str.1
	.asciz	"DNS query failed"

	.comm	_qhead,4,2                      ; @qhead
	.comm	_links,4,2                      ; @links
	.comm	_pending,4,2                    ; @pending
	.comm	_debug,8,3                      ; @debug
l_.str.2:                               ; @.str.2
	.asciz	"queueing async DNS name lookup (%lu)"

.subsections_via_symbols
