	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostent_unpack
_hostent_unpack:                        ## @hostent_unpack
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, %rdi
	callq	_hostent_free
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_string
	movl	%eax, %edi
	callq	_strdup
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_number
	movl	%eax, (%r15)
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_number
	movl	%eax, 4(%r15)
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_number
	movq	%rax, %rbx
	leal	1(%rax), %esi
	movl	$8, %edi
	callq	_calloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.4:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$64, %esi
	leaq	L_.str.4(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	decl	%eax
	xorl	%edi, %edi
	cmpl	$63, %eax
	setb	%dil
	callq	_assert
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_nvlist_get_string
	movl	%eax, %edi
	callq	_strdup
	movq	16(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_5
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
LBB0_7:
	movq	$0, (%rax,%r12,8)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvlist_get_number
	movq	%rax, %rbx
	leal	1(%rax), %esi
	movl	$8, %edi
	callq	_calloc
	movq	%rax, 8(%r15)
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.10:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	leaq	-112(%rbp), %r13
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	callq	_malloc
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	8(%r15), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r13, %rdi
	movl	$64, %esi
	leaq	L_.str.6(%rip), %rdx
	movl	%ebx, %ecx
	callq	_snprintf
	decl	%eax
	xorl	%edi, %edi
	cmpl	$63, %eax
	setb	%dil
	callq	_assert
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	callq	_nvlist_get_binary
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rsi
	movl	4(%r15), %edx
	movl	%eax, %edi
	callq	_bcopy
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_11
## %bb.13:
	movq	8(%r15), %rax
	movq	$0, (%rax,%r12,8)
	jmp	LBB0_16
LBB0_15:
	movq	%r15, %rdi
	callq	_hostent_free
	movq	_NO_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_h_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movq	%r15, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%r12d, %r12d
	movq	$0, (%rax,%r12,8)
	jmp	LBB0_16
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

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

L_.str.2:                               ## @.str.2
	.asciz	"length"

L_.str.3:                               ## @.str.3
	.asciz	"naliases"

L_.str.4:                               ## @.str.4
	.asciz	"alias%u"

L_.str.5:                               ## @.str.5
	.asciz	"naddrs"

L_.str.6:                               ## @.str.6
	.asciz	"addr%u"

	.comm	_NO_RECOVERY,4,2                ## @NO_RECOVERY
	.comm	_h_errno,4,2                    ## @h_errno
	.no_dead_strip	_hostent_unpack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostent_unpack
_hostent_unpack:                        ; @hostent_unpack
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x1
	bl	_hostent_free
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_string
	bl	_strdup
	str	x0, [x19, #24]
	cbz	x0, LBB0_13
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	str	w0, [x19]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	str	w0, [x19, #4]
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x22, x0
	add	w1, w22, #1
	mov	w0, #8
	bl	_calloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_13
; %bb.2:
	cbz	w22, LBB0_6
; %bb.3:
	mov	x21, #0
	and	x23, x22, #0xffffffff
Lloh11:
	adrp	x22, l_.str.4@PAGE
Lloh12:
	add	x22, x22, l_.str.4@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	sub	w8, w0, #1
	cmp	w8, #63
	cset	w0, lo
	bl	_assert
	add	x1, sp, #8
	mov	x0, x20
	bl	_nvlist_get_string
	bl	_strdup
	ldr	x8, [x19, #16]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x0, [x19, #16]
	ldr	x8, [x0, x9]
	cbz	x8, LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x23, x21
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x23, #0
LBB0_7:
	str	xzr, [x0, x23, lsl #3]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_nvlist_get_number
	mov	x22, x0
	add	w1, w22, #1
	mov	w0, #8
	bl	_calloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_13
; %bb.8:
	cbz	w22, LBB0_16
; %bb.9:
	mov	x21, #0
	and	x23, x22, #0xffffffff
Lloh15:
	adrp	x22, l_.str.6@PAGE
Lloh16:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	bl	_malloc
	ldr	x8, [x19, #8]
	lsl	x9, x21, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x9]
	cbz	x8, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #64
	mov	x2, x22
	mov	x3, x21
	bl	_snprintf
	sub	w8, w0, #1
	cmp	w8, #63
	cset	w0, lo
	bl	_assert
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_nvlist_get_binary
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x21, lsl #3]
	ldr	w2, [x19, #4]
	bl	_bcopy
	add	x21, x21, #1
	cmp	x23, x21
	b.ne	LBB0_10
; %bb.12:
	ldr	x0, [x19, #8]
	str	xzr, [x0, x23, lsl #3]
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_hostent_free
	mov	x19, #0
Lloh17:
	adrp	x8, _NO_RECOVERY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NO_RECOVERY@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _h_errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _h_errno@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
LBB0_14:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.15:
	mov	x0, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_16:
	mov	x23, #0
	str	xzr, [x0, xzr, lsl #3]
	b	LBB0_14
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

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

l_.str.2:                               ; @.str.2
	.asciz	"length"

l_.str.3:                               ; @.str.3
	.asciz	"naliases"

l_.str.4:                               ; @.str.4
	.asciz	"alias%u"

l_.str.5:                               ; @.str.5
	.asciz	"naddrs"

l_.str.6:                               ; @.str.6
	.asciz	"addr%u"

	.comm	_NO_RECOVERY,4,2                ; @NO_RECOVERY
	.comm	_h_errno,4,2                    ; @h_errno
	.no_dead_strip	_hostent_unpack
.subsections_via_symbols
