	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at_get_ip_for_host             ## -- Begin function at_get_ip_for_host
	.p2align	4, 0x90
_at_get_ip_for_host:                    ## @at_get_ip_for_host
	.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
	movq	%rdi, %r14
	movq	_internal_ips_lock@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_MUTEX_LOCK
	movq	_MSG_LEN_MAX@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jb	LBB0_3
## %bb.1:
	movq	_ATM_GETIP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	incq	%rbx
	movq	%rbx, -40(%rbp)
	movq	_ATD_SERVER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdx
	callq	_sendmessage
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_ATD_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_getmessage
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movq	_ip_type_invalid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
LBB0_4:
	movq	-48(%rbp), %rax
	movq	_ATM_GETIP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movl	(%r15), %edi
	callq	_MUTEX_UNLOCK
	movl	-28(%rbp), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_internal_ips_lock,4,2          ## @internal_ips_lock
	.comm	_MSG_LEN_MAX,8,3                ## @MSG_LEN_MAX
	.comm	_ATM_GETIP,8,3                  ## @ATM_GETIP
	.comm	_ATD_SERVER,4,2                 ## @ATD_SERVER
	.comm	_ATD_CLIENT,4,2                 ## @ATD_CLIENT
	.comm	_ip_type_invalid,4,2            ## @ip_type_invalid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_at_get_ip_for_host             ; -- Begin function at_get_ip_for_host
	.p2align	2
_at_get_ip_for_host:                    ; @at_get_ip_for_host
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _internal_ips_lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _internal_ips_lock@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_MUTEX_LOCK
Lloh2:
	adrp	x8, _MSG_LEN_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_LEN_MAX@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x22, _ATM_GETIP@GOTPAGE
Lloh6:
	ldr	x22, [x22, _ATM_GETIP@GOTPAGEOFF]
	cmp	x8, x20
	b.lo	LBB0_3
; %bb.1:
	ldr	x8, [x22]
	add	x9, x20, #1
	stp	x8, x9, [sp, #8]
Lloh7:
	adrp	x8, _ATD_SERVER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ATD_SERVER@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, x19
	bl	_sendmessage
	cbz	x0, LBB0_3
; %bb.2:
Lloh10:
	adrp	x8, _ATD_CLIENT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ATD_CLIENT@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	add	x1, sp, #8
	add	x2, sp, #28
	bl	_getmessage
	cbnz	x0, LBB0_4
LBB0_3:
Lloh13:
	adrp	x8, _ip_type_invalid@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ip_type_invalid@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #28]
LBB0_4:
	ldr	x8, [sp, #8]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w0, [x21]
	bl	_MUTEX_UNLOCK
	ldr	w0, [sp, #28]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_internal_ips_lock,4,2          ; @internal_ips_lock
	.comm	_MSG_LEN_MAX,8,3                ; @MSG_LEN_MAX
	.comm	_ATM_GETIP,8,3                  ; @ATM_GETIP
	.comm	_ATD_SERVER,4,2                 ; @ATD_SERVER
	.comm	_ATD_CLIENT,4,2                 ; @ATD_CLIENT
	.comm	_ip_type_invalid,4,2            ; @ip_type_invalid
.subsections_via_symbols
