	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function archive_write_cpio_header
_archive_write_cpio_header:             ## @archive_write_cpio_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_archive_entry_filetype
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%r14, %rdi
	callq	_get_sconv
	leaq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_archive_entry_pathname_l
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_archive_set_error
	movq	_ARCHIVE_FATAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_4:
	cmpq	$0, -24(%rbp)
	je	LBB0_11
## %bb.5:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.6:
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	callq	_archive_entry_size_is_set
	testl	%eax, %eax
	je	LBB0_12
## %bb.8:
	movq	%rbx, %rdi
	callq	_archive_entry_size
	testq	%rax, %rax
	js	LBB0_12
## %bb.9:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_write_header
	jmp	LBB0_15
LBB0_10:
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.3(%rip), %rdx
LBB0_13:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_archive_set_error
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Filetype required"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
	.comm	_errno,4,2                      ## @errno
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_FATAL,4,2              ## @ARCHIVE_FATAL
L_.str.2:                               ## @.str.2
	.asciz	"Pathname required"

L_.str.3:                               ## @.str.3
	.asciz	"Size required"

	.no_dead_strip	_archive_write_cpio_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function archive_write_cpio_header
_archive_write_cpio_header:             ; @archive_write_cpio_header
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_archive_entry_filetype
	cbz	x0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_get_sconv
	mov	x3, x0
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x20
	bl	_archive_entry_pathname_l
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_archive_set_error
Lloh8:
	adrp	x8, _ARCHIVE_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ARCHIVE_FATAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_4:
	ldr	x8, [sp]
	cbz	x8, LBB0_11
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_11
; %bb.6:
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
; %bb.7:
	mov	x0, x20
	bl	_archive_entry_size_is_set
	cbz	w0, LBB0_12
; %bb.8:
	mov	x0, x20
	bl	_archive_entry_size
	tbnz	x0, #63, LBB0_12
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_write_header
	b	LBB0_15
LBB0_10:
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_13
LBB0_11:
Lloh12:
	adrp	x2, l_.str.2@PAGE
Lloh13:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x2, l_.str.3@PAGE
Lloh15:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	w1, #-1
	bl	_archive_set_error
Lloh16:
	adrp	x8, _ARCHIVE_FAILED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ARCHIVE_FAILED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Filetype required"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
	.comm	_errno,4,2                      ; @errno
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"Can't allocate memory for Pathname"

	.comm	_ARCHIVE_FATAL,4,2              ; @ARCHIVE_FATAL
l_.str.2:                               ; @.str.2
	.asciz	"Pathname required"

l_.str.3:                               ; @.str.3
	.asciz	"Size required"

	.no_dead_strip	_archive_write_cpio_header
.subsections_via_symbols
