	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dns_getanswer                ## -- Begin function __dns_getanswer
	.p2align	4, 0x90
___dns_getanswer:                       ## @__dns_getanswer
	.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	%ecx, %r13d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	callq	___res_state
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	___hostent_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	___hostent_data_init
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	cmpl	$128, %r13d
	movq	_NS_INADDRSZ@GOTPCREL(%rip), %rcx
	cmoveq	_NS_IN6ADDRSZ@GOTPCREL(%rip), %rcx
	movq	_AF_INET@GOTPCREL(%rip), %rdx
	cmoveq	_AF_INET6@GOTPCREL(%rip), %rdx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	movl	%edx, 4(%rbx)
	movl	%ecx, (%rbx)
	movl	%r14d, (%rsp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movq	%rbx, %r8
	movq	%rax, %r9
	callq	_gethostanswer
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmoveq	%rbx, %rax
	jmp	LBB0_4
LBB0_2:
	movq	_NETDB_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_RES_SET_H_ERRNO
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETDB_INTERNAL,4,2             ## @NETDB_INTERNAL
	.comm	_AF_INET6,4,2                   ## @AF_INET6
	.comm	_NS_IN6ADDRSZ,4,2               ## @NS_IN6ADDRSZ
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_NS_INADDRSZ,4,2                ## @NS_INADDRSZ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___dns_getanswer                ; -- Begin function __dns_getanswer
	.p2align	2
___dns_getanswer:                       ; @__dns_getanswer
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x24, x0
	bl	___res_state
	mov	x19, x0
	bl	___hostent_init
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	bl	___hostent_data_init
	cbz	x0, LBB0_3
; %bb.2:
	mov	x5, x0
Lloh0:
	adrp	x8, _NS_IN6ADDRSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NS_IN6ADDRSZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NS_INADDRSZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NS_INADDRSZ@GOTPAGEOFF]
	cmp	w20, #128
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
Lloh4:
	adrp	x9, _AF_INET6@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AF_INET6@GOTPAGEOFF]
Lloh6:
	adrp	x10, _AF_INET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AF_INET@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	stp	w8, w9, [x22]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x22
	mov	x6, x19
	bl	_gethostanswer
	cmp	w0, #0
	csel	x0, x22, xzr, eq
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _NETDB_INTERNAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NETDB_INTERNAL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_RES_SET_H_ERRNO
	mov	x0, #0
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETDB_INTERNAL,4,2             ; @NETDB_INTERNAL
	.comm	_AF_INET6,4,2                   ; @AF_INET6
	.comm	_NS_IN6ADDRSZ,4,2               ; @NS_IN6ADDRSZ
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_NS_INADDRSZ,4,2                ; @NS_INADDRSZ
.subsections_via_symbols
