	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr_pton
_addr_pton:                             ## @addr_pton
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AI_NUMERICHOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	-48(%rbp), %rdx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_getaddrinfo
	movq	-24(%rbp), %rdi
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.3:
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.4:
	movq	8(%rdi), %rax
	movl	$-1, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	testq	%r14, %r14
	je	LBB0_7
## %bb.6:
	movl	(%rdi), %esi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_addr_sa_to_xaddr
	cmpl	$-1, %eax
	je	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %ebx
LBB0_8:
	movq	-24(%rbp), %rdi
LBB0_9:
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_freeaddrinfo
LBB0_11:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AI_NUMERICHOST,4,2             ## @AI_NUMERICHOST
	.no_dead_strip	_addr_pton
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr_pton
_addr_pton:                             ; @addr_pton
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh0:
	adrp	x8, _AI_NUMERICHOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AI_NUMERICHOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	cbz	x20, LBB0_7
; %bb.1:
	add	x2, sp, #8
	mov	x3, sp
	mov	x0, x20
	mov	x1, #0
	bl	_getaddrinfo
	mov	x8, x0
	ldr	x0, [sp]
	mov	w20, #-1
	cbnz	x8, LBB0_9
; %bb.2:
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.4:
	cbz	x19, LBB0_6
; %bb.5:
	ldr	w1, [x0]
	mov	x0, x8
	mov	x2, x19
	bl	_addr_sa_to_xaddr
	cmn	w0, #1
	b.eq	LBB0_7
LBB0_6:
	mov	w20, #0
	b	LBB0_8
LBB0_7:
	mov	w20, #-1
LBB0_8:
	ldr	x0, [sp]
LBB0_9:
	cbz	x0, LBB0_11
; %bb.10:
	bl	_freeaddrinfo
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AI_NUMERICHOST,4,2             ; @AI_NUMERICHOST
	.no_dead_strip	_addr_pton
.subsections_via_symbols
