	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resolv_lookup                  ## -- Begin function resolv_lookup
	.p2align	4, 0x90
_resolv_lookup:                         ## @resolv_lookup
	.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
	movl	$4200, %eax                     ## imm = 0x1068
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	movq	%rax, -4184(%rbp)               ## 8-byte Spill
	leaq	-2064(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_resolv_domain_to_hostname
	movq	%rbx, %rdi
	callq	_util_strlen
	movslq	%eax, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -4208(%rbp)
	movq	$0, -4192(%rbp)
	movq	%rbx, -4160(%rbp)               ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_util_strlen
	addl	$49, %eax
	movl	%eax, -4168(%rbp)               ## 4-byte Spill
	xorl	%eax, %eax
	callq	_rand_next
	cltq
	imulq	$-2147450879, %rax, %rcx        ## imm = 0x80008001
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$15, %ecx
	addl	%edx, %ecx
	movl	%ecx, %edx
	shll	$16, %edx
	subl	%edx, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %rbx
	leaq	-4208(%rbp), %r15
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_util_zero
	movq	_AF_INET@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movl	%eax, -4196(%rbp)
	movl	$8, %edi
	movl	$8, %esi
	movl	$8, %edx
	movl	$8, %ecx
	callq	_INET_ADDR
	movl	%eax, -4200(%rbp)
	movl	$53, %edi
	callq	_htons
	movq	%rax, -4208(%rbp)
	movq	%rbx, -4216(%rbp)               ## 8-byte Spill
	movq	%rbx, -2096(%rbp)
	movl	$256, %edi                      ## imm = 0x100
	callq	_htons
	movq	%rax, -2072(%rbp)
	movl	$1, %edi
	callq	_htons
	movq	%rax, -2080(%rbp)
	movq	_PROTO_DNS_QTYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -2055(%rbp,%r14)
	movq	_PROTO_DNS_QCLASS_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%rax, -2063(%rbp,%r14)
	movl	$-1, %ebx
	movl	$5, %r12d
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_sleep
	decl	%r12d
	je	LBB0_26
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-1, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	callq	_close
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_socket
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movl	$24, %edx
	callq	_connect
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	leaq	-2096(%rbp), %rsi
	movl	-4168(%rbp), %edx               ## 4-byte Reload
	callq	_send
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %r14
	movq	_F_SETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_F_GETFL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_fcntl
	orl	%eax, %r15d
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_fcntl
	leaq	-4172(%rbp), %r15
	movq	%r15, %rdi
	callq	_FD_ZERO
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_FD_SET
	movl	$5, -4232(%rbp)
	movq	$0, -4224(%rbp)
	movl	%ebx, %edi
	incl	%edi
	movq	%r15, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	leaq	-4232(%rbp), %r8
	callq	_select
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$-1, %eax
	je	LBB0_26
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %r13
	movl	%ebx, %edi
	leaq	-4172(%rbp), %rsi
	callq	_FD_ISSET
	testq	%rax, %rax
	je	LBB0_26
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_MSG_NOSIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edi
	leaq	-4144(%rbp), %rsi
	movl	$2048, %edx                     ## imm = 0x800
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_recvfrom
	movslq	%eax, %r15
	movq	-4160(%rbp), %rdi               ## 8-byte Reload
	callq	_util_strlen
	cltq
	addq	$49, %rax
	cmpq	%r15, %rax
	ja	LBB0_23
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leaq	-4112(%rbp), %r14
	movq	%r14, %rdi
	callq	_util_strlen
	movl	%eax, %r15d
	movq	%r14, -4160(%rbp)               ## 8-byte Spill
	movq	-4216(%rbp), %rax               ## 8-byte Reload
	cmpq	%rax, -4144(%rbp)
	jne	LBB0_23
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-4136(%rbp), %rdi
	leaq	-4112(%rbp), %rax
	movq	%rax, -4160(%rbp)               ## 8-byte Spill
	testq	%rdi, %rdi
	jne	LBB0_14
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	-4208(%rbp), %r15
	jmp	LBB0_24
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-4208(%rbp), %r15
	movq	%r14, %r13
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %r14
	decl	%r12d
	jne	LBB0_1
LBB0_26:
	movl	%ebx, %edi
	callq	_close
	movq	-4184(%rbp), %rdi               ## 8-byte Reload
	cmpl	$0, 8(%rdi)
	jg	LBB0_28
## %bb.27:
	callq	_resolv_entries_free
	xorl	%edi, %edi
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movq	%rdi, %rax
	addq	$4200, %rsp                     ## imm = 0x1068
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	_ntohs
	testl	%eax, %eax
	jle	LBB0_26
## %bb.15:
	movl	%eax, %r14d
	movslq	%r15d, %rax
	leaq	-4112(%rbp), %rcx
	leaq	(%rcx,%rax), %r13
	addq	$17, %r13
	incq	%r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	-4168(%rbp), %r13               ## 8-byte Reload
	movq	%r13, %rdi
	leaq	-4144(%rbp), %rsi
	leaq	-4148(%rbp), %rdx
	callq	_resolv_skip_name
	movl	-4148(%rbp), %eax
LBB0_22:                                ##   in Loop: Header=BB0_16 Depth=1
	cltq
	addq	%rax, %r13
	decq	%r14
	cmpq	$1, %r14
	jbe	LBB0_26
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	leaq	-4144(%rbp), %rsi
	leaq	-4148(%rbp), %rdx
	callq	_resolv_skip_name
	movslq	-4148(%rbp), %r15
	leaq	(%r15,%r13), %rax
	addq	$24, %rax
	movq	%rax, -4168(%rbp)               ## 8-byte Spill
	movq	(%r13,%r15), %r12
	movq	_PROTO_DNS_QTYPE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r12
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	addq	%r15, %r13
	movq	8(%r13), %r15
	movq	_PROTO_DNS_QCLASS_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r13), %rdi
	callq	_ntohs
	cmpl	$4, %eax
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-4168(%rbp), %rax               ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -4160(%rbp)               ## 4-byte Spill
	movq	-4184(%rbp), %r15               ## 8-byte Reload
	movq	(%r15), %rdi
	movslq	8(%r15), %r12
	leal	4(,%r12,4), %esi
	callq	_realloc
	movq	%rax, (%r15)
	leal	1(%r12), %ecx
	movl	%ecx, 8(%r15)
	movl	-4160(%rbp), %ecx               ## 4-byte Reload
	movl	%ecx, (%rax,%r12,4)
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	16(%r13), %rdi
	callq	_ntohs
	movq	-4168(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_22
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_PROTO_DNS_QTYPE_A,4,2          ## @PROTO_DNS_QTYPE_A
	.comm	_PROTO_DNS_QCLASS_IP,4,2        ## @PROTO_DNS_QCLASS_IP
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_MSG_NOSIGNAL,4,2               ## @MSG_NOSIGNAL
	.comm	_F_SETFL,4,2                    ## @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_F_GETFL,4,2                    ## @F_GETFL
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_resolv_lookup                  ; -- Begin function resolv_lookup
	.p2align	2
_resolv_lookup:                         ; @resolv_lookup
	.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
	mov	w9, #4192
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1, lsl #12             ; =4096
	sub	sp, sp, #96
	mov	x20, x0
	add	x19, sp, #2128
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x21, x19, #32
	mov	x0, x21
	mov	x1, x20
	bl	_resolv_domain_to_hostname
	mov	x0, x21
	bl	_util_strlen
	add	x20, x21, w0, sxtw
	stp	xzr, xzr, [sp, #56]
	str	xzr, [sp, #72]
	mov	x0, x21
	bl	_util_strlen
	add	w22, w0, #49
	bl	_rand_next
	mov	w8, #32769
	movk	w8, #32768, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #15
	add	w8, w9, w8, lsr #31
	sub	w8, w8, w8, lsl #16
	add	w8, w0, w8
	sxtw	x23, w8
	add	x0, sp, #56
	mov	w1, #24
	bl	_util_zero
Lloh5:
	adrp	x28, _AF_INET@GOTPAGE
Lloh6:
	ldr	x28, [x28, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x28]
	str	w8, [sp, #68]
	mov	w0, #8
	mov	w1, #8
	mov	w2, #8
	mov	w3, #8
	bl	_INET_ADDR
	str	w0, [sp, #64]
	mov	w0, #53
	bl	_htons
	str	x0, [sp, #56]
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	str	x23, [x19]
	mov	w0, #256
	bl	_htons
	str	x0, [x19, #24]
	mov	w0, #1
	bl	_htons
	str	x0, [x19, #16]
Lloh7:
	adrp	x8, _PROTO_DNS_QTYPE_A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PROTO_DNS_QTYPE_A@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_htons
	stur	x0, [x20, #9]
Lloh10:
	adrp	x8, _PROTO_DNS_QCLASS_IP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PROTO_DNS_QCLASS_IP@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_htons
	stur	x0, [x20, #1]
	add	x8, sp, #80
	add	x23, x8, #32
	mov	w20, #-1
Lloh13:
	adrp	x26, _SOCK_DGRAM@GOTPAGE
Lloh14:
	ldr	x26, [x26, _SOCK_DGRAM@GOTPAGEOFF]
Lloh15:
	adrp	x25, _MSG_NOSIGNAL@GOTPAGE
Lloh16:
	ldr	x25, [x25, _MSG_NOSIGNAL@GOTPAGEOFF]
	mov	w27, #5
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_sleep
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w27, w27, #1
	b.eq	LBB0_23
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmn	w20, #1
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_close
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x28]
	ldr	w1, [x26]
	mov	w2, #0
	bl	_socket
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #56
	mov	x0, x20
	mov	w2, #24
	bl	_connect
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x25]
	add	x1, sp, #2128
	mov	x0, x20
	mov	x2, x22
	bl	_send
	cmn	w0, #1
	b.eq	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh17:
	adrp	x8, _F_SETFL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _F_SETFL@GOTPAGEOFF]
Lloh19:
	ldr	w24, [x8]
Lloh20:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
Lloh22:
	ldr	w19, [x8]
Lloh23:
	adrp	x8, _F_GETFL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _F_GETFL@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_fcntl
	orr	w2, w0, w19
	mov	x0, x24
	mov	x1, x20
	bl	_fcntl
	add	x0, sp, #52
	bl	_FD_ZERO
	add	x1, sp, #52
	mov	x0, x20
	bl	_FD_SET
	mov	w8, #5
	str	w8, [sp, #32]
	str	xzr, [sp, #40]
	add	w0, w20, #1
	add	x1, sp, #52
	add	x4, sp, #32
	mov	x2, #0
	mov	x3, #0
	bl	_select
	cbz	w0, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	cmn	w0, #1
	b.eq	LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #52
	mov	x0, x20
	bl	_FD_ISSET
	cbz	x0, LBB0_23
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w3, [x25]
	add	x1, sp, #80
	mov	x0, x20
	mov	w2, #2048
	mov	x4, #0
	mov	x5, #0
	bl	_recvfrom
	mov	x24, x0
	mov	x0, x21
	bl	_util_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x8, x8, #49
	cmp	x8, w24, sxtw
	b.hi	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_util_strlen
	ldr	x8, [sp, #80]
	mov	x21, x23
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	ldr	x0, [sp, #88]
	mov	x21, x23
	cbz	x0, LBB0_2
; %bb.14:
	bl	_ntohs
	cmp	w0, #1
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
Lloh26:
	adrp	x26, _PROTO_DNS_QTYPE_A@GOTPAGE
Lloh27:
	ldr	x26, [x26, _PROTO_DNS_QTYPE_A@GOTPAGEOFF]
Lloh28:
	adrp	x27, _PROTO_DNS_QCLASS_IP@GOTPAGE
Lloh29:
	ldr	x27, [x27, _PROTO_DNS_QCLASS_IP@GOTPAGEOFF]
	b.lt	LBB0_23
; %bb.15:
	mov	w8, w0
	add	x9, x23, w24, sxtw
	add	x21, x9, #17
	add	x19, x8, #1
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x1, sp, #80
	add	x2, sp, #28
	mov	x0, x21
	bl	_resolv_skip_name
	ldr	w0, [sp, #28]
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x21, w0, sxtw
	sub	x19, x19, #1
	cmp	x19, #1
	b.ls	LBB0_23
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #80
	add	x2, sp, #28
	mov	x0, x21
	bl	_resolv_skip_name
	ldrsw	x8, [sp, #28]
	add	x22, x21, x8
	mov	x21, x22
	ldr	x23, [x21], #24
	ldr	w0, [x26]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_16
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x23, [x22, #8]
	ldr	w0, [x27]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_16
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x22, #16]
	bl	_ntohs
	cmp	w0, #4
	b.ne	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w23, [x21]
	ldr	x0, [x25]
	ldrsw	x24, [x25, #8]
	lsl	w8, w24, #2
	add	w1, w8, #4
	bl	_realloc
	str	x0, [x25]
	add	w8, w24, #1
	str	w8, [x25, #8]
	str	w23, [x0, x24, lsl #2]
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x22, #16]
	bl	_ntohs
	b	LBB0_17
LBB0_23:
	mov	x0, x20
	bl	_close
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x0, #8]
	cmp	w8, #0
	b.gt	LBB0_25
; %bb.24:
	bl	_resolv_entries_free
	mov	x0, #0
LBB0_25:
	ldur	x8, [x29, #-96]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	add	sp, sp, #1, lsl #12             ; =4096
	add	sp, sp, #96
	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_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_PROTO_DNS_QTYPE_A,4,2          ; @PROTO_DNS_QTYPE_A
	.comm	_PROTO_DNS_QCLASS_IP,4,2        ; @PROTO_DNS_QCLASS_IP
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_MSG_NOSIGNAL,4,2               ; @MSG_NOSIGNAL
	.comm	_F_SETFL,4,2                    ; @F_SETFL
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_F_GETFL,4,2                    ; @F_GETFL
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
