	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yp_send_dns_query
_yp_send_dns_query:                     ## @yp_send_dns_query
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPACKET@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_bzero
	movq	_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_C_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subq	$8, %rsp
	movq	%r13, %rsi
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rbx
	pushq	%r15
	pushq	$0
	callq	_res_mkquery
	addq	$32, %rsp
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movl	(%r15), %edi
	callq	_ntohs
	movq	%rax, %rbx
	movq	__res@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.3:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_resfd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %r8
	addq	%rbx, %r8
	movq	%r15, %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movl	$4, %r9d
	callq	_sendto
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_4
## %bb.6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r13, %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_yp_error
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_yp_error
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPACKET,4,2                  ## @MAXPACKET
	.comm	_QUERY,4,2                      ## @QUERY
	.comm	_C_IN,4,2                       ## @C_IN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"res_mkquery failed for %s type %d"

	.comm	__res,16,3                      ## @_res
	.comm	_resfd,4,2                      ## @resfd
L_.str.1:                               ## @.str.1
	.asciz	"sendto failed"

	.no_dead_strip	_yp_send_dns_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yp_send_dns_query
_yp_send_dns_query:                     ; @yp_send_dns_query
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPACKET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPACKET@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	mov	x0, x19
	mov	x1, x21
	bl	_bzero
Lloh8:
	adrp	x8, _QUERY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QUERY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _C_IN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _C_IN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	str	w21, [sp, #-16]!
	mov	x1, x20
	mov	x3, x22
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	mov	x7, x19
	bl	_res_mkquery
	add	sp, sp, #16
	cmp	w0, #0
	b.le	LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_ntohs
	mov	x20, x0
Lloh14:
	adrp	x22, __res@GOTPAGE
Lloh15:
	ldr	x22, [x22, __res@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.2:
	mov	x23, #0
	mov	x24, #0
Lloh16:
	adrp	x25, _resfd@GOTPAGE
Lloh17:
	ldr	x25, [x25, _resfd@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	x8, [x22, #8]
	add	x4, x8, x23
	mov	x1, x19
	mov	x2, x21
	mov	w3, #0
	mov	w5, #4
	bl	_sendto
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_3
	b	LBB0_8
LBB0_5:
	stp	x20, x22, [sp, #-16]!
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_yp_error
	add	sp, sp, #16
	b	LBB0_7
LBB0_6:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_yp_error
LBB0_7:
	mov	x20, #0
LBB0_8:
	ldur	x8, [x29, #-72]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPACKET,4,2                  ; @MAXPACKET
	.comm	_QUERY,4,2                      ; @QUERY
	.comm	_C_IN,4,2                       ; @C_IN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"res_mkquery failed for %s type %d"

	.comm	__res,16,3                      ; @_res
	.comm	_resfd,4,2                      ; @resfd
l_.str.1:                               ; @.str.1
	.asciz	"sendto failed"

	.no_dead_strip	_yp_send_dns_query
.subsections_via_symbols
