	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getnetanswer
_getnetanswer:                          ## @getnetanswer
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r12
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXHOSTNAMELEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movslq	%ebx, %r15
	movq	%r14, %rbx
	shlq	$2, %r15
	addq	(%r14), %r15
	movl	20(%r14), %edi
	callq	_ntohs
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	callq	_ntohs
	testl	%eax, %eax
	je	LBB0_12
## %bb.1:
	movl	%eax, %r13d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_HFIXEDSZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	shlq	$2, %r12
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	addq	(%rbx), %r12
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.2:
	incl	%r13d
	movq	_QFIXEDSZ@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	___dn_skipname
	addq	(%rbx), %rax
	leaq	(%r12,%rax,4), %r12
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_3
LBB0_4:
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	$0, (%rax)
	movq	8(%rcx), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	testl	%r14d, %r14d
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jle	LBB0_11
## %bb.5:
	cmpq	%r15, %r12
	jae	LBB0_11
## %bb.6:
	decq	-80(%rbp)                       ## 8-byte Folded Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	$8, %r8d
	callq	_dn_expand
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_res_dnok
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %eax
	leaq	(%r12,%rax,4), %r12
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	movq	%r15, %r14
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movb	$0, (%r15)
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_strncpy
	movb	$0, (%r15,%r13)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r14, %r15
	movl	-64(%rbp), %r14d                ## 4-byte Reload
	movq	%r12, %rsi
	callq	_GETSHORT
	movq	%r12, %rsi
	callq	_GETSHORT
	movq	_INT32SZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	(%r12,%rax,4), %r12
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_GETSHORT
	cmpl	$2, %r14d
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	decl	%r14d
	cmpq	%r15, %r12
	jb	LBB0_7
LBB0_11:
	movq	_TRY_AGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_16
LBB0_12:
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	cmpq	$0, 8(%rbx)
	je	LBB0_14
## %bb.13:
	movq	_HOST_NOT_FOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_TRY_AGAIN@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %esi
LBB0_16:
	callq	_RES_SET_H_ERRNO
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	$-1, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ## @MAXHOSTNAMELEN
	.comm	_HFIXEDSZ,4,2                   ## @HFIXEDSZ
	.comm	_HOST_NOT_FOUND,4,2             ## @HOST_NOT_FOUND
	.comm	_TRY_AGAIN,4,2                  ## @TRY_AGAIN
	.comm	_QFIXEDSZ,8,3                   ## @QFIXEDSZ
	.comm	_INT32SZ,4,2                    ## @INT32SZ
	.comm	_C_IN,4,2                       ## @C_IN
	.comm	_T_PTR,4,2                      ## @T_PTR
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_AF_UNSPEC,4,2                  ## @AF_UNSPEC
	.comm	_NETDB_INTERNAL,4,2             ## @NETDB_INTERNAL
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_getnetanswer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getnetanswer
_getnetanswer:                          ; @getnetanswer
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x24, x5
	mov	x28, x4
	mov	x25, x3
	mov	x23, 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, #-88]
Lloh3:
	adrp	x8, _MAXHOSTNAMELEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXHOSTNAMELEN@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x9, x26
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x26, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	ldr	x19, [x0]
	ldr	w0, [x0, #20]
	bl	_ntohs
	mov	x22, x0
	ldr	w0, [x20, #16]
	bl	_ntohs
	cbz	w0, LBB0_12
; %bb.1:
	stur	x25, [x29, #-104]               ; 8-byte Folded Spill
	stur	w24, [x29, #-92]                ; 4-byte Folded Spill
	add	x23, x19, w23, sxtw #2
	ldr	x24, [x28]
	ldr	x8, [x20]
Lloh8:
	adrp	x9, _HFIXEDSZ@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HFIXEDSZ@GOTPAGEOFF]
Lloh10:
	ldrsw	x9, [x9]
	add	x25, x8, x9, lsl #2
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	add	w19, w0, #1
Lloh11:
	adrp	x27, _QFIXEDSZ@GOTPAGE
Lloh12:
	ldr	x27, [x27, _QFIXEDSZ@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x23
	bl	___dn_skipname
	ldr	x8, [x27]
	add	x8, x8, x0
	add	x25, x25, x8, lsl #2
	sub	w19, w19, #1
	cmp	w19, #1
	b.hi	LBB0_3
LBB0_4:
	ldr	x8, [x28, #8]
	str	xzr, [x8]
	ldr	x8, [x28, #8]
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	str	x8, [x9]
	cmp	w22, #1
	b.lt	LBB0_11
; %bb.5:
	cmp	x25, x23
	b.hs	LBB0_11
; %bb.6:
	sub	x26, x26, #1
Lloh13:
	adrp	x28, _INT32SZ@GOTPAGE
Lloh14:
	ldr	x28, [x28, _INT32SZ@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	mov	w4, #8
	bl	_dn_expand
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x0
	mov	x0, x24
	bl	_res_dnok
	cbz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, w27, uxtw #2
	strb	wzr, [x21]
	mov	x0, x21
	mov	x1, x24
	mov	x2, x26
	bl	_strncpy
	strb	wzr, [x21, x26]
	mov	x1, x25
	bl	_GETSHORT
	mov	x1, x25
	bl	_GETSHORT
	ldrsw	x8, [x28]
	add	x25, x25, x8, lsl #2
	mov	x0, x27
	mov	x1, x25
	bl	_GETSHORT
	cmp	w22, #2
	b.lo	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w22, w22, #1
	cmp	x25, x23
	b.lo	LBB0_7
LBB0_11:
Lloh15:
	adrp	x8, _TRY_AGAIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TRY_AGAIN@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldur	w0, [x29, #-92]                 ; 4-byte Folded Reload
	b	LBB0_16
LBB0_12:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh18:
	adrp	x8, _HOST_NOT_FOUND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOST_NOT_FOUND@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh20:
	adrp	x8, _TRY_AGAIN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRY_AGAIN@GOTPAGEOFF]
LBB0_15:
	ldr	w1, [x8]
	mov	x0, x24
LBB0_16:
	bl	_RES_SET_H_ERRNO
	ldur	x8, [x29, #-88]
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_18
; %bb.17:
	mov	w0, #-1
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXHOSTNAMELEN,4,2             ; @MAXHOSTNAMELEN
	.comm	_HFIXEDSZ,4,2                   ; @HFIXEDSZ
	.comm	_HOST_NOT_FOUND,4,2             ; @HOST_NOT_FOUND
	.comm	_TRY_AGAIN,4,2                  ; @TRY_AGAIN
	.comm	_QFIXEDSZ,8,3                   ; @QFIXEDSZ
	.comm	_INT32SZ,4,2                    ; @INT32SZ
	.comm	_C_IN,4,2                       ; @C_IN
	.comm	_T_PTR,4,2                      ; @T_PTR
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_AF_UNSPEC,4,2                  ; @AF_UNSPEC
	.comm	_NETDB_INTERNAL,4,2             ; @NETDB_INTERNAL
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_getnetanswer
.subsections_via_symbols
