	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_sparse
_setup_sparse:                          ## @setup_sparse
	.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, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %r13
	movq	%rsi, %rdi
	callq	_archive_entry_sparse_reset
	movl	%eax, (%r13)
	cmpl	4(%r13), %eax
	jl	LBB0_3
## %bb.1:
	movq	8(%r13), %rdi
	callq	_free
	movl	(%r13), %edi
	incl	%edi
	movl	%edi, 4(%r13)
	shll	$4, %edi
	callq	_malloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movl	(%r13), %eax
LBB0_3:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	leaq	-56(%rbp), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdx
	callq	_archive_entry_sparse_next
	movq	-48(%rbp), %rax
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	-56(%rbp), %rax
	movq	%rax, -8(%rcx,%rbx)
	incq	%r14
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_5
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	callq	_archive_entry_size
	movq	8(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	movq	$0, -8(%rcx,%rbx)
	jmp	LBB0_9
LBB0_7:
	movq	8(%r13), %rax
	movq	$0, 8(%rax)
	movq	%r12, %rdi
	callq	_archive_entry_size
	movq	8(%r13), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	movq	%rcx, 16(%r13)
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	$0, 4(%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate data"

	.comm	_ARCHIVE_STATE_FATAL,4,2        ## @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.no_dead_strip	_setup_sparse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_sparse
_setup_sparse:                          ; @setup_sparse
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	mov	x0, x1
	bl	_archive_entry_sparse_reset
	str	w0, [x21]
	ldr	w8, [x21, #4]
	cmp	w0, w8
	b.lt	LBB0_3
; %bb.1:
	ldr	x0, [x21, #8]
	bl	_free
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21, #4]
	lsl	w0, w8, #4
	bl	_malloc
	str	x0, [x21, #8]
	cbz	x0, LBB0_10
; %bb.2:
	ldr	w0, [x21]
LBB0_3:
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x20, #0
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x19
	bl	_archive_entry_sparse_next
	ldr	x8, [sp]
	ldr	x9, [x21, #8]
	add	x9, x9, x20
	str	x8, [x9, #8]
	ldr	x8, [sp, #8]
	str	x8, [x9]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x20, x20, #16
	cmp	x22, x8
	b.lt	LBB0_5
; %bb.6:
	cbz	w22, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_archive_entry_size
	ldr	x8, [x21, #8]
	add	x9, x8, x20
	stp	xzr, x0, [x9]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x21, #8]
	str	xzr, [x8, #8]
	mov	x0, x19
	bl	_archive_entry_size
	ldr	x8, [x21, #8]
	str	x0, [x8]
LBB0_9:
	str	x8, [x21, #16]
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
	str	wzr, [x21, #4]
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_archive_set_error
Lloh7:
	adrp	x8, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh10:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_11:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate data"

	.comm	_ARCHIVE_STATE_FATAL,4,2        ; @ARCHIVE_STATE_FATAL
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.no_dead_strip	_setup_sparse
.subsections_via_symbols
