	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_read_format_cpio_read_header
_archive_read_format_cpio_read_header:  ## @archive_read_format_cpio_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, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	movq	40(%rbx), %r13
	testq	%r13, %r13
	jne	LBB0_4
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movq	32(%rbx), %r13
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_archive_string_default_conversion_for_read
	movq	%rax, %r13
	movq	%rax, 32(%rbx)
	movl	$1, (%rbx)
LBB0_4:
	leaq	-48(%rbp), %rcx
	leaq	-56(%rbp), %r8
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	*8(%rbx)
	movl	%eax, %r12d
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jl	LBB0_26
## %bb.5:
	movq	-56(%rbp), %rsi
	addq	-48(%rbp), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_24
## %bb.6:
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rsi
	movq	%r13, %rcx
	callq	_archive_entry_copy_pathname_l
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_10
## %bb.8:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_9
LBB0_10:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	%r13, %rdi
	callq	_archive_string_conversion_charset_name
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movq	$0, 24(%rbx)
	movq	-56(%rbp), %rsi
	addq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	___archive_read_consume
	movq	%r14, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFLNK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.12:
	movslq	16(%rbx), %rsi
	cmpq	$1048577, %rsi                  ## imm = 0x100001
	jl	LBB0_14
## %bb.13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdx
LBB0_9:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_archive_set_error
	jmp	LBB0_24
LBB0_14:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	___archive_read_ahead
	testq	%rax, %rax
	je	LBB0_24
## %bb.15:
	movslq	16(%rbx), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r13, %rcx
	callq	_archive_entry_copy_symlink_l
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_9
LBB0_18:
	movq	_ARCHIVE_ERRNO_FILE_FORMAT@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movq	%r13, %rdi
	callq	_archive_string_conversion_charset_name
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_archive_set_error
	movq	_ARCHIVE_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_19:
	movslq	16(%rbx), %rsi
	movq	%r15, %rdi
	callq	___archive_read_consume
	movl	$0, 16(%rbx)
LBB0_20:
	cmpq	$11, -48(%rbp)
	jne	LBB0_23
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$11, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_22
LBB0_23:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_record_hardlink
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_26
LBB0_24:
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %r12d
LBB0_26:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	%r15, %rdi
	callq	_archive_clear_error
	movq	_ARCHIVE_EOF@GOTPCREL(%rip), %rax
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_ARCHIVE_WARN,4,2               ## @ARCHIVE_WARN
	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ## @ARCHIVE_ERRNO_FILE_FORMAT
L_.str.1:                               ## @.str.1
	.asciz	"Pathname can't be converted from %s to current locale."

	.comm	_AE_IFLNK,8,3                   ## @AE_IFLNK
L_.str.2:                               ## @.str.2
	.asciz	"Rejecting malformed cpio archive: symlink contents exceed 1 megabyte"

L_.str.3:                               ## @.str.3
	.asciz	"Can't allocate memory for Linkname"

L_.str.4:                               ## @.str.4
	.asciz	"Linkname can't be converted from %s to current locale."

L_.str.5:                               ## @.str.5
	.asciz	"TRAILER!!!"

	.comm	_ARCHIVE_EOF,4,2                ## @ARCHIVE_EOF
	.comm	_ARCHIVE_OK,8,3                 ## @ARCHIVE_OK
	.no_dead_strip	_archive_read_format_cpio_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_cpio_read_header
_archive_read_format_cpio_read_header:  ; @archive_read_format_cpio_read_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8]
	ldr	x23, [x21, #40]
	cbnz	x23, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x23, [x21, #32]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_archive_string_default_conversion_for_read
	mov	x23, x0
	str	x0, [x21, #32]
	mov	w8, #1
	str	w8, [x21]
LBB0_4:
	ldr	x8, [x21, #8]
	add	x3, sp, #24
	add	x4, sp, #16
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	blr	x8
	mov	x22, x0
Lloh0:
	adrp	x25, _ARCHIVE_WARN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ARCHIVE_WARN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w0, w8
	b.lt	LBB0_24
; %bb.5:
	ldp	x9, x8, [sp, #16]
	add	x1, x9, x8
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_14
; %bb.6:
	mov	x24, x0
	ldr	x2, [sp, #24]
	mov	x0, x20
	mov	x1, x24
	mov	x3, x23
	bl	_archive_entry_copy_pathname_l
	cbz	x0, LBB0_10
; %bb.7:
Lloh2:
	adrp	x8, _errno@GOTPAGE
Lloh3:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.8:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_9:
Lloh10:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh12:
	ldrsw	x22, [x8]
	mov	x0, x23
	bl	_archive_string_conversion_charset_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_archive_set_error
	ldr	w22, [x25]
LBB0_10:
	str	xzr, [x21, #24]
	ldp	x9, x8, [sp, #16]
	add	x1, x9, x8
	mov	x0, x19
	bl	___archive_read_consume
	mov	x0, x20
	bl	_archive_entry_filetype
Lloh15:
	adrp	x8, _AE_IFLNK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AE_IFLNK@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_21
; %bb.11:
	ldrsw	x1, [x21, #16]
	cmp	w1, #256, lsl #12               ; =1048576
	b.le	LBB0_15
; %bb.12:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
Lloh21:
	adrp	x2, l_.str.2@PAGE
Lloh22:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_archive_set_error
LBB0_14:
Lloh23:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh25:
	ldr	w22, [x8]
	b	LBB0_24
LBB0_15:
	mov	x0, x19
	mov	x2, #0
	bl	___archive_read_ahead
	cbz	x0, LBB0_14
; %bb.16:
	mov	x1, x0
	ldrsw	x2, [x21, #16]
	mov	x0, x20
	mov	x3, x23
	bl	_archive_entry_copy_symlink_l
	cbz	x0, LBB0_20
; %bb.17:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	x1, [x8]
Lloh29:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_19
; %bb.18:
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_19:
Lloh34:
	adrp	x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ARCHIVE_ERRNO_FILE_FORMAT@GOTPAGEOFF]
Lloh36:
	ldrsw	x22, [x8]
	mov	x0, x23
	bl	_archive_string_conversion_charset_name
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh37:
	adrp	x2, l_.str.4@PAGE
Lloh38:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_archive_set_error
	ldr	w22, [x25]
LBB0_20:
	ldrsw	x1, [x21, #16]
	mov	x0, x19
	bl	___archive_read_consume
	str	wzr, [x21, #16]
LBB0_21:
	ldr	x8, [sp, #24]
	cmp	x8, #11
	b.ne	LBB0_23
; %bb.22:
Lloh39:
	adrp	x1, l_.str.5@PAGE
Lloh40:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	mov	w2, #11
	bl	_strncmp
	cbz	x0, LBB0_25
LBB0_23:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_record_hardlink
Lloh41:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh42:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh43:
	ldr	x8, [x8]
Lloh44:
	adrp	x9, _ARCHIVE_FATAL@GOTPAGE
Lloh45:
	ldr	x9, [x9, _ARCHIVE_FATAL@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	cmp	x0, x8
	csel	w22, w22, w9, eq
LBB0_24:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_25:
	mov	x0, x19
	bl	_archive_clear_error
Lloh47:
	adrp	x8, _ARCHIVE_EOF@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ARCHIVE_EOF@GOTPAGEOFF]
Lloh49:
	ldr	w22, [x8]
	b	LBB0_24
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_ARCHIVE_WARN,4,2               ; @ARCHIVE_WARN
	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_ERRNO_FILE_FORMAT,4,2  ; @ARCHIVE_ERRNO_FILE_FORMAT
l_.str.1:                               ; @.str.1
	.asciz	"Pathname can't be converted from %s to current locale."

	.comm	_AE_IFLNK,8,3                   ; @AE_IFLNK
l_.str.2:                               ; @.str.2
	.asciz	"Rejecting malformed cpio archive: symlink contents exceed 1 megabyte"

l_.str.3:                               ; @.str.3
	.asciz	"Can't allocate memory for Linkname"

l_.str.4:                               ; @.str.4
	.asciz	"Linkname can't be converted from %s to current locale."

l_.str.5:                               ; @.str.5
	.asciz	"TRAILER!!!"

	.comm	_ARCHIVE_EOF,4,2                ; @ARCHIVE_EOF
	.comm	_ARCHIVE_OK,8,3                 ; @ARCHIVE_OK
	.no_dead_strip	_archive_read_format_cpio_read_header
.subsections_via_symbols
