	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addrinfo_read_snapshot_func
_addrinfo_read_snapshot_func:           ## @addrinfo_read_snapshot_func
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movq	%rbx, -48(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_addrinfo_read_snapshot_ai
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %r15
	leaq	-48(%rbp), %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ATF_REQUIRE
	movq	(%r14), %rdi
	movq	%rbx, %rsi
	callq	_addrinfo_read_snapshot_ai
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %r14
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_strsep
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_7:
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_free_addrinfo
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"1 line read from snapshot:\n%s\n"

L_.str.1:                               ## @.str.1
	.asciz	":"

	.no_dead_strip	_addrinfo_read_snapshot_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addrinfo_read_snapshot_func
_addrinfo_read_snapshot_func:           ; @addrinfo_read_snapshot_func
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	str	x20, [sp, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	mov	x0, x19
	bl	_addrinfo_read_snapshot_ai
	cbz	w0, LBB0_4
LBB0_2:
	mov	w0, #-1
LBB0_3:
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	cbz	x0, LBB0_3
; %bb.5:
	mov	x21, x0
Lloh6:
	adrp	x20, l_.str.1@PAGE
Lloh7:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	x22, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	mov	w1, #8
	bl	_calloc
	str	x0, [x22]
	cmp	x0, #0
	cset	w0, ne
	bl	_ATF_REQUIRE
	ldr	x0, [x22]
	mov	x1, x21
	bl	_addrinfo_read_snapshot_ai
	cbnz	w0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x22, [x22]
	add	x0, sp, #8
	mov	x1, x20
	bl	_strsep
	mov	x21, x0
	cbnz	x0, LBB0_6
	b	LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_free_addrinfo
	b	LBB0_2
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"1 line read from snapshot:\n%s\n"

l_.str.1:                               ; @.str.1
	.asciz	":"

	.no_dead_strip	_addrinfo_read_snapshot_func
.subsections_via_symbols
