	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_tar_read_header
_archive_read_format_tar_read_header:   ## @archive_read_format_tar_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
	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, %r15
	movq	$0, -56(%rbp)
	movl	_archive_read_format_tar_read_header.default_dev(%rip), %esi
	incl	%esi
	movq	%r12, %rdi
	callq	_archive_entry_set_dev
	movl	_archive_read_format_tar_read_header.default_inode(%rip), %esi
	incl	%esi
	movl	%esi, _archive_read_format_tar_read_header.default_inode(%rip)
	movq	%r12, %rdi
	callq	_archive_entry_set_ino
	cmpl	$65535, _archive_read_format_tar_read_header.default_inode(%rip) ## imm = 0xFFFF
	jl	LBB0_2
## %bb.1:
	incl	_archive_read_format_tar_read_header.default_dev(%rip)
	movl	$0, _archive_read_format_tar_read_header.default_inode(%rip)
LBB0_2:
	movq	8(%r15), %rax
	movq	(%rax), %r14
	movq	$0, 56(%r14)
	movq	%r14, %rdi
	callq	_gnu_clear_sparse_list
	movl	$-1, (%r14)
	movq	$0, 48(%r14)
	movq	40(%r14), %rax
	movq	%rax, 32(%r14)
	testq	%rax, %rax
	jne	LBB0_7
## %bb.3:
	cmpl	$0, 4(%r14)
	je	LBB0_5
## %bb.4:
	movq	24(%r14), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_archive_string_default_conversion_for_read
	movq	%rax, 24(%r14)
	movl	$1, 4(%r14)
LBB0_6:
	movq	%rax, 32(%r14)
LBB0_7:
	leaq	-56(%rbp), %r13
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	callq	_tar_read_header
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_tar_flush_unconsumed
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.8:
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 8(%rbx)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_archive_entry_sparse_add_entry
	jmp	LBB0_11
LBB0_12:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_13
LBB0_18:
	movl	16(%r14), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_gnu_add_sparse_entry
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jne	LBB0_19
LBB0_13:
	cmpl	%eax, %r14d
	jne	LBB0_24
## %bb.14:
	movq	%r12, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFREG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_24
## %bb.15:
	movq	%r12, %rdi
	callq	_archive_entry_pathname_w
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_wcslen
	testq	%rax, %rax
	je	LBB0_24
## %bb.17:
	cmpl	$47, -4(%rbx,%rax,4)
	je	LBB0_23
	jmp	LBB0_24
LBB0_19:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_20:
	movq	%r12, %rdi
	callq	_archive_entry_pathname
	testq	%rax, %rax
	je	LBB0_24
## %bb.21:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	cmpb	$47, -1(%rax,%rbx)
	jne	LBB0_24
LBB0_23:
	movq	_AE_IFDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_archive_entry_set_filetype
LBB0_24:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_archive_read_format_tar_read_header.default_inode,4,2 ## @archive_read_format_tar_read_header.default_inode
.zerofill __DATA,__bss,_archive_read_format_tar_read_header.default_dev,4,2 ## @archive_read_format_tar_read_header.default_dev
	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_AE_IFREG,8,3                   ## @AE_IFREG
	.comm	_AE_IFDIR,4,2                   ## @AE_IFDIR
	.no_dead_strip	_archive_read_format_tar_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_read_format_tar_read_header
_archive_read_format_tar_read_header:   ; @archive_read_format_tar_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	x21, x0
	str	xzr, [sp, #8]
	adrp	x20, _archive_read_format_tar_read_header.default_dev@PAGE
	ldr	w8, [x20, _archive_read_format_tar_read_header.default_dev@PAGEOFF]
	add	w1, w8, #1
	mov	x0, x19
	bl	_archive_entry_set_dev
	adrp	x22, _archive_read_format_tar_read_header.default_inode@PAGE
	ldr	w8, [x22, _archive_read_format_tar_read_header.default_inode@PAGEOFF]
	add	w1, w8, #1
	str	w1, [x22, _archive_read_format_tar_read_header.default_inode@PAGEOFF]
	mov	x0, x19
	bl	_archive_entry_set_ino
	ldr	w8, [x22, _archive_read_format_tar_read_header.default_inode@PAGEOFF]
	mov	w9, #65535
	cmp	w8, w9
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x20, _archive_read_format_tar_read_header.default_dev@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x20, _archive_read_format_tar_read_header.default_dev@PAGEOFF]
	str	wzr, [x22, _archive_read_format_tar_read_header.default_inode@PAGEOFF]
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x22, [x8]
	str	xzr, [x22, #56]
	mov	x0, x22
	bl	_gnu_clear_sparse_list
	mov	w8, #-1
	str	w8, [x22]
	str	xzr, [x22, #48]
	ldr	x8, [x22, #40]
	str	x8, [x22, #32]
	cbnz	x8, LBB0_7
; %bb.3:
	ldr	w8, [x22, #4]
	cbz	w8, LBB0_5
; %bb.4:
	ldr	x0, [x22, #24]
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_archive_string_default_conversion_for_read
	str	x0, [x22, #24]
	mov	w8, #1
	str	w8, [x22, #4]
LBB0_6:
	str	x0, [x22, #32]
LBB0_7:
	add	x3, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	bl	_tar_read_header
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_tar_flush_unconsumed
	ldr	x23, [x22, #8]
	cbnz	x23, LBB0_11
; %bb.8:
	ldr	w3, [x22, #16]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	bl	_gnu_add_sparse_entry
Lloh0:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_14
; %bb.9:
Lloh3:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	b	LBB0_23
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x23, [x23, #16]
	cbz	x23, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23, #8]
	cbnz	w8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldp	w2, w1, [x23]
	mov	x0, x19
	bl	_archive_entry_sparse_add_entry
	b	LBB0_10
LBB0_13:
Lloh6:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_14:
	cmp	w20, w0
	b.ne	LBB0_23
; %bb.15:
	mov	x0, x19
	bl	_archive_entry_filetype
Lloh9:
	adrp	x8, _AE_IFREG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AE_IFREG@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_23
; %bb.16:
	mov	x0, x19
	bl	_archive_entry_pathname_w
	cbz	x0, LBB0_19
; %bb.17:
	mov	x21, x0
	bl	_wcslen
	cbz	x0, LBB0_23
; %bb.18:
	add	x8, x21, x0, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w8, #47
	b.eq	LBB0_22
	b	LBB0_23
LBB0_19:
	mov	x0, x19
	bl	_archive_entry_pathname
	cbz	x0, LBB0_23
; %bb.20:
	mov	x21, x0
	bl	_strlen
	cbz	x0, LBB0_23
; %bb.21:
	add	x8, x0, x21
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.ne	LBB0_23
LBB0_22:
Lloh12:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_archive_entry_set_filetype
LBB0_23:
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_archive_read_format_tar_read_header.default_inode,4,2 ; @archive_read_format_tar_read_header.default_inode
.zerofill __DATA,__bss,_archive_read_format_tar_read_header.default_dev,4,2 ; @archive_read_format_tar_read_header.default_dev
	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_AE_IFREG,8,3                   ; @AE_IFREG
	.comm	_AE_IFDIR,4,2                   ; @AE_IFDIR
	.no_dead_strip	_archive_read_format_tar_read_header
.subsections_via_symbols
