	.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, %r12d
	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, %ebx
	movq	8(%rcx), %rax
	movq	(%rax,%rbx,8), %r15
	movl	%edx, (%rsp)
	leaq	L_.str(%rip), %rdx
	leaq	-1072(%rbp), %r13
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	movq	%r15, %r9
	callq	_snprintf
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_write
	movq	_method@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$129, %eax
	je	LBB0_4
## %bb.2:
                                        ## implicit-def: $r12d
	cmpl	$130, %eax
	jne	LBB0_7
## %bb.3:
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_resolv_getaddrinfo
	jmp	LBB0_6
LBB0_5:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_resolv_getipnodeby
	jmp	LBB0_6
LBB0_4:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_resolv_gethostby
LBB0_6:
	movl	%eax, %r12d
LBB0_7:
	movq	_stats@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_pthread_mutex_lock
	movq	_ask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	incl	(%rax,%rbx,4)
	movq	_got@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$1, %r12d
	adcl	$0, (%rax,%rbx,4)
	movq	%r14, %rdi
	callq	_pthread_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hosts,8,3                      ## @hosts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%p: %d resolving %s %d\n"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
	.comm	_method,4,2                     ## @method
	.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, #-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 w27, -56
	.cfi_offset w28, -64
	sub	sp, sp, #1040
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_pthread_self
	mov	x20, 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	w19, w11, w10, w8
	ldr	x8, [x9, #8]
	ldr	x21, [x8, w19, uxtw #3]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #1024
	mov	x3, x20
	mov	x4, x22
	mov	x5, x21
	mov	x6, x19
	bl	_snprintf
	mov	x2, x0
Lloh8:
	adrp	x8, _STDOUT_FILENO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STDOUT_FILENO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_write
Lloh11:
	adrp	x8, _method@GOTPAGE
Lloh12:
	ldr	x8, [x8, _method@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_5
; %bb.2:
                                        ; implicit-def: $w22
	cmp	w8, #130
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_resolv_getaddrinfo
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_resolv_getipnodeby
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	x1, x21
	bl	_resolv_gethostby
LBB0_6:
	mov	x22, x0
LBB0_7:
Lloh14:
	adrp	x20, _stats@GOTPAGE
Lloh15:
	ldr	x20, [x20, _stats@GOTPAGEOFF]
	mov	x0, x20
	bl	_pthread_mutex_lock
Lloh16:
	adrp	x8, _ask@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ask@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	lsl	x9, x19, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	cmp	w22, #0
Lloh19:
	adrp	x8, _got@GOTPAGE
Lloh20:
	ldr	x8, [x8, _got@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	w10, [x8, x9]
	cinc	w10, w10, eq
	str	w10, [x8, x9]
	mov	x0, x20
	bl	_pthread_mutex_unlock
	ldur	x8, [x29, #-56]
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_9
; %bb.8:
	add	sp, sp, #1040
	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	x28, x27, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hosts,8,3                      ; @hosts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%p: %d resolving %s %d\n"

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