	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at_get_host_for_ip             ## -- Begin function at_get_host_for_ip
	.p2align	4, 0x90
_at_get_host_for_ip:                    ## @at_get_host_for_ip
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, -28(%rbp)
	movq	_ATM_GETNAME@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)
	movl	$4, -40(%rbp)
	movq	_internal_ips_lock@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_MUTEX_LOCK
	movq	_ATD_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_sendmessage
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	_ATD_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_getmessage
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movl	-40(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	decl	%ebx
	jmp	LBB0_7
LBB0_6:
	xorl	%ebx, %ebx
LBB0_7:
	movq	-48(%rbp), %rax
	xorl	%edi, %edi
	cmpq	(%r15), %rax
	sete	%dil
	callq	_assert
	movl	(%r14), %edi
	callq	_MUTEX_UNLOCK
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATM_GETNAME,8,3                ## @ATM_GETNAME
	.comm	_internal_ips_lock,4,2          ## @internal_ips_lock
	.comm	_ATD_SERVER,4,2                 ## @ATD_SERVER
	.comm	_ATD_CLIENT,4,2                 ## @ATD_CLIENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at_get_host_for_ip             ; -- Begin function at_get_host_for_ip
	.p2align	2
_at_get_host_for_ip:                    ; @at_get_host_for_ip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	str	w0, [sp, #28]
Lloh0:
	adrp	x21, _ATM_GETNAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ATM_GETNAME@GOTPAGEOFF]
	ldr	x8, [x21]
	str	x8, [sp, #8]
	mov	w8, #4
	str	w8, [sp, #16]
Lloh2:
	adrp	x20, _internal_ips_lock@GOTPAGE
Lloh3:
	ldr	x20, [x20, _internal_ips_lock@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_MUTEX_LOCK
Lloh4:
	adrp	x8, _ATD_SERVER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ATD_SERVER@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x2, sp, #28
	bl	_sendmessage
	cbz	x0, LBB0_3
; %bb.1:
Lloh7:
	adrp	x8, _ATD_CLIENT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATD_CLIENT@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, x19
	bl	_getmessage
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [sp, #16]
	subs	w8, w8, #1
	csel	x19, xzr, x8, lt
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20]
	bl	_MUTEX_UNLOCK
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_ATM_GETNAME,8,3                ; @ATM_GETNAME
	.comm	_internal_ips_lock,4,2          ; @internal_ips_lock
	.comm	_ATD_SERVER,4,2                 ; @ATD_SERVER
	.comm	_ATD_CLIENT,4,2                 ; @ATD_CLIENT
.subsections_via_symbols
