	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_ARCHIVE_READ_DISK_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARCHIVE_STATE_ANY@GOTPCREL(%rip), %rax
	movq	_ARCHIVE_STATE_FATAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_archive_check_magic
	movq	(%rbx), %rax
	movq	_ARCHIVE_STATE_CLOSED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_5
LBB0_1:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	callq	__archive_read_close
	movl	%eax, %r14d
LBB0_5:
	movl	64(%rbx), %edi
	callq	_tree_free
	movq	56(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	*%rax
LBB0_8:
	movq	40(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	*%rax
LBB0_11:
	leaq	16(%rbx), %rdi
	callq	_archive_string_free
	movl	24(%rbx), %edi
	callq	_archive_entry_free
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	___archive_clean
	movq	%rbx, %rdi
	callq	_free
LBB0_12:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_READ_DISK_MAGIC,4,2    ## @ARCHIVE_READ_DISK_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,8,3       ## @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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _ARCHIVE_READ_DISK_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_READ_DISK_MAGIC@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ARCHIVE_STATE_ANY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ARCHIVE_STATE_ANY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _ARCHIVE_STATE_FATAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ARCHIVE_STATE_FATAL@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	bl	_archive_check_magic
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _ARCHIVE_STATE_CLOSED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ARCHIVE_STATE_CLOSED@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh14:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	b	LBB0_5
LBB0_3:
Lloh17:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	bl	__archive_read_close
	mov	x20, x0
LBB0_5:
	ldr	w0, [x19, #64]
	bl	_tree_free
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_8
; %bb.7:
	blr	x8
LBB0_8:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_11
; %bb.9:
	ldr	x0, [x19, #32]
	cbz	x0, LBB0_11
; %bb.10:
	blr	x8
LBB0_11:
	add	x0, x19, #16
	bl	_archive_string_free
	ldr	w0, [x19, #24]
	bl	_archive_entry_free
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	___archive_clean
	mov	x0, x19
	bl	_free
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_READ_DISK_MAGIC,4,2    ; @ARCHIVE_READ_DISK_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,8,3       ; @ARCHIVE_STATE_CLOSED
	.no_dead_strip	__archive_read_free
.subsections_via_symbols
