	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @read_header
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movl	(%rbx), %edi
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	callq	_close
	movl	$-1, (%rbx)
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_3
LBB0_6:
	movl	36(%rbx), %eax
	movl	%eax, 4(%r15)
	movl	32(%rbx), %eax
	movl	%eax, (%r15)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	leaq	16(%rbx), %r12
	leaq	L_.str(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rcx
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rcx), %rax
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_18
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	16(%rax), %edi
	movq	%r13, %rsi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rax
	movl	$1, (%rax)
	movq	%r12, %rdi
	callq	_archive_strlen
	testq	%rax, %rax
	jle	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	16(%rbx), %rax
	movslq	24(%rbx), %rcx
	leaq	(%rax,%rcx), %rdx
	decq	%rdx
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rdx, %rcx
	cmpq	%rax, %rdx
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	leaq	-1(%rcx), %rdx
	cmpb	$47, (%rcx)
	jne	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%rcx), %edx
	cmpq	%rax, %rcx
	cmovbl	%ecx, %edx
	subl	%eax, %edx
	incl	%edx
	movl	%edx, 24(%rbx)
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rbx), %rcx
	cmpl	$0, (%rcx)
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	$0, -44(%rbp)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	leaq	-44(%rbp), %r8
	callq	_parse_file
	cmpl	$0, -44(%rbp)
	jne	LBB0_16
	jmp	LBB0_20
LBB0_18:
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_3:
	xorl	%eax, %eax
	callq	_archive_entry_linkresolver_new
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	_ARCHIVE_FORMAT_MTREE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_archive_entry_linkresolver_set_strategy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_read_mtree
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
	jmp	LBB0_20
LBB0_4:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_ARCHIVE_FORMAT_MTREE,4,2       ## @ARCHIVE_FORMAT_MTREE
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	w0, [x21]
	tbnz	w0, #31, LBB0_2
; %bb.1:
	bl	_close
	mov	w8, #-1
	str	w8, [x21]
LBB0_2:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_16
LBB0_3:
	ldr	d0, [x21, #32]
	str	d0, [x20]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_15
; %bb.4:
	add	x22, x21, #16
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	mov	w24, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x3, [x21, #8]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x3, #8]
	str	x8, [x21, #8]
	cbz	x8, LBB0_15
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	ldr	w0, [x8, #16]
	mov	x1, x23
	bl	_strcmp
	cbnz	x0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	str	w24, [x8]
	mov	x0, x22
	bl	_archive_strlen
	cmp	x0, #1
	b.lt	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #16]
	ldrsw	x9, [x21, #24]
	add	x9, x8, x9
	sub	x10, x9, #1
LBB0_10:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x9, x10
	cmp	x10, x8
	b.lo	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	mov	x10, x9
	ldrb	w11, [x10], #-1
	cmp	w11, #47
	b.ne	LBB0_10
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w10, w9, #1
	cmp	x9, x8
	csel	w9, w9, w10, lo
	sub	w8, w9, w8
	add	w8, w8, #1
	str	w8, [x21, #24]
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x3, [x21, #8]
	ldr	w8, [x3]
	cbnz	w8, LBB0_6
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	str	wzr, [sp, #12]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_parse_file
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_5
	b	LBB0_20
LBB0_15:
Lloh2:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
	b	LBB0_19
LBB0_16:
	bl	_archive_entry_linkresolver_new
	str	x0, [x21, #40]
	cbz	x0, LBB0_18
; %bb.17:
Lloh4:
	adrp	x8, _ARCHIVE_FORMAT_MTREE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ARCHIVE_FORMAT_MTREE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_archive_entry_linkresolver_set_strategy
	mov	x0, x20
	mov	x1, x21
	bl	_read_mtree
Lloh7:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_3
	b	LBB0_20
LBB0_18:
Lloh10:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
LBB0_19:
	ldr	w0, [x8]
LBB0_20:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_ARCHIVE_FORMAT_MTREE,4,2       ; @ARCHIVE_FORMAT_MTREE
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.no_dead_strip	_read_header
.subsections_via_symbols
