	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resolvone
_resolvone:                             ## @resolvone
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_pthread_self
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_random
	andl	$268435455, %eax                ## imm = 0xFFFFFFF
	movq	_hosts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%edx, %r12d
	movq	8(%rcx), %rax
	movq	(%rax,%r12,8), %r15
	movq	_debug@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	%r12d, (%rsp)
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r14d, %ecx
	movl	%r13d, %r8d
	movq	%r15, %r9
	xorl	%eax, %eax
	callq	_snprintf
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movq	_debug@GOTPCREL(%rip), %rbx
	movl	%eax, %edx
	callq	_write
LBB0_2:
	leaq	-1080(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_getaddrinfo
	movl	%eax, %r13d
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	testl	%r13d, %r13d
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str.1(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r14d, %ecx
	movq	%r15, %r8
	xorl	%eax, %eax
	callq	_snprintf
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_write
LBB0_4:
	movq	_stats@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_ask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%r12,4)
	xorl	%eax, %eax
	testl	%r13d, %r13d
	sete	%al
	movq	_got@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addl	%eax, (%rcx,%r12,4)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	testl	%r13d, %r13d
	jne	LBB0_6
## %bb.5:
	movq	-1080(%rbp), %rdi
	callq	_freeaddrinfo
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hosts,8,3                      ## @hosts
	.comm	_debug,8,3                      ## @debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p: %d resolving %s %d\n"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.1:                               ## @.str.1
	.asciz	"%p: host %s %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"not found"

L_.str.3:                               ## @.str.3
	.asciz	"ok"

	.comm	_stats,4,2                      ## @stats
	.comm	_ask,8,3                        ## @ask
	.comm	_got,8,3                        ## @got
	.no_dead_strip	_resolvone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resolvone
_resolvone:                             ; @resolvone
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1072
	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]
	bl	_pthread_self
	mov	x19, x0
	bl	_random
	and	w8, w0, #0xfffffff
Lloh3:
	adrp	x9, _hosts@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hosts@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w10, [x9]
	sdiv	w11, w8, w10
	msub	w22, w11, w10, w8
	ldr	x8, [x9, #8]
	ldr	x21, [x8, w22, uxtw #3]
Lloh6:
	adrp	x24, _debug@GOTPAGE
Lloh7:
	ldr	x24, [x24, _debug@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh8:
	adrp	x23, _STDOUT_FILENO@GOTPAGE
Lloh9:
	ldr	x23, [x23, _STDOUT_FILENO@GOTPAGEOFF]
	cbz	x8, LBB0_2
; %bb.1:
	stp	x21, x22, [sp, #8]
	str	x20, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	w1, #1024
	mov	x3, x19
	bl	_snprintf
	mov	x2, x0
	ldr	w0, [x23]
	add	x1, sp, #40
	bl	_write
LBB0_2:
	add	x3, sp, #32
	mov	x0, x21
	mov	x1, #0
	mov	x2, #0
	bl	_getaddrinfo
	mov	x20, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh14:
	adrp	x9, l_.str.3@PAGE
Lloh15:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	w20, #0
	csel	x8, x9, x8, eq
	stp	x21, x8, [sp]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #40
	mov	w1, #1024
	mov	x3, x19
	bl	_snprintf
	mov	x2, x0
	ldr	w0, [x23]
	add	x1, sp, #40
	bl	_write
LBB0_4:
Lloh18:
	adrp	x19, _stats@GOTPAGE
Lloh19:
	ldr	x19, [x19, _stats@GOTPAGEOFF]
	mov	x0, x19
	bl	_pthread_mutex_lock
Lloh20:
	adrp	x8, _ask@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ask@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	lsl	x9, x22, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	cmp	w20, #0
Lloh23:
	adrp	x8, _got@GOTPAGE
Lloh24:
	ldr	x8, [x8, _got@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w10, [x8, x9]
	cinc	w10, w10, eq
	str	w10, [x8, x9]
	mov	x0, x19
	bl	_pthread_mutex_unlock
	cbnz	w20, LBB0_6
; %bb.5:
	ldr	x0, [sp, #32]
	bl	_freeaddrinfo
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	add	sp, sp, #1072
	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	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_hosts,8,3                      ; @hosts
	.comm	_debug,8,3                      ; @debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p: %d resolving %s %d\n"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.1:                               ; @.str.1
	.asciz	"%p: host %s %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"not found"

l_.str.3:                               ; @.str.3
	.asciz	"ok"

	.comm	_stats,4,2                      ; @stats
	.comm	_ask,8,3                        ; @ask
	.comm	_got,8,3                        ; @got
	.no_dead_strip	_resolvone
.subsections_via_symbols
