	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _archive_read_free
__archive_read_free:                    ## @_archive_read_free
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r12
	movq	_ARCHIVE_READ_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_ANY@GOTPCREL(%rip), %rax
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	leaq	16(%r12), %r15
	movl	16(%r12), %eax
	movq	_ARCHIVE_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.2:
	cmpl	(%rbx), %eax
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_archive_read_close
	movl	%eax, %r14d
LBB0_4:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	callq	*%rax
	movl	%eax, %r14d
LBB0_6:
	movq	80(%r12), %rax
	movq	%rax, 88(%r12)
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	callq	*%rax
LBB0_8:
	movq	%r12, %rdi
	callq	___archive_read_free_filters
	movq	72(%r12), %rdi
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_10
## %bb.9:
	callq	*%rcx
	cmpl	%r14d, %eax
	cmovll	%eax, %r14d
LBB0_10:
	movq	64(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	48(%rbx), %r13
	movq	56(%rbx), %r15
	movq	%r13, %rdi
	callq	_strlen
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	48(%rbx), %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_free
	movq	%r15, %rbx
	testq	%r15, %r15
	jne	LBB0_11
LBB0_12:
	leaq	32(%r12), %rdi
	callq	_archive_string_free
	movl	40(%r12), %edi
	callq	_archive_entry_free
	movq	$0, 24(%r12)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	___archive_clean
	movq	8(%r12), %rdi
	callq	_free
	movq	%r12, %rdi
	callq	_free
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_READ_MAGIC,4,2         ## @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ## @ARCHIVE_STATE_ANY
	.comm	_ARCHIVE_STATE_FATAL,4,2        ## @ARCHIVE_STATE_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"archive_read_free"

	.comm	_ARCHIVE_STATE_CLOSED,4,2       ## @ARCHIVE_STATE_CLOSED
	.no_dead_strip	__archive_read_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _archive_read_free
__archive_read_free:                    ; @_archive_read_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _ARCHIVE_READ_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_READ_MAGIC@GOTPAGEOFF]
Lloh5:
	adrp	x9, _ARCHIVE_STATE_ANY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ARCHIVE_STATE_ANY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x22, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh10:
	ldr	x22, [x22, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w2, w9, w8
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	mov	x21, x19
	ldr	w8, [x21, #16]!
Lloh13:
	adrp	x9, _ARCHIVE_STATE_CLOSED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ARCHIVE_STATE_CLOSED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	ldr	w10, [x22]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_archive_read_close
	mov	x20, x0
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	blr	x8
	mov	x20, x0
LBB0_5:
	ldr	x8, [x19, #80]
	str	x8, [x19, #88]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x19
	blr	x8
LBB0_7:
	mov	x0, x19
	bl	___archive_read_free_filters
	ldr	x0, [x19, #72]
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.8:
	blr	x8
	cmp	w0, w20
	csel	w20, w0, w20, lt
LBB0_9:
	ldr	x22, [x19, #64]
	cbz	x22, LBB0_11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldp	x23, x24, [x22, #48]
	mov	x0, x23
	bl	_strlen
	mov	x2, x0
	mov	x0, x23
	mov	w1, #0
	bl	_memset
	ldr	x0, [x22, #48]
	bl	_free
	mov	x0, x22
	bl	_free
	mov	x22, x24
	cbnz	x24, LBB0_10
LBB0_11:
	add	x0, x19, #32
	bl	_archive_string_free
	ldr	w0, [x19, #40]
	bl	_archive_entry_free
	str	xzr, [x19, #24]
	mov	x0, x21
	bl	___archive_clean
	ldr	x0, [x19, #8]
	bl	_free
	mov	x0, x19
	bl	_free
LBB0_12:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_READ_MAGIC,4,2         ; @ARCHIVE_READ_MAGIC
	.comm	_ARCHIVE_STATE_ANY,4,2          ; @ARCHIVE_STATE_ANY
	.comm	_ARCHIVE_STATE_FATAL,4,2        ; @ARCHIVE_STATE_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"archive_read_free"

	.comm	_ARCHIVE_STATE_CLOSED,4,2       ; @ARCHIVE_STATE_CLOSED
	.no_dead_strip	__archive_read_free
.subsections_via_symbols
