	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function file_to_archive
_file_to_archive:                       ## @file_to_archive
	.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
	xorl	%eax, %eax
	callq	_archive_entry_new
	movq	%rax, %rbx
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_2:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_entry_copy_sourcepath
	movl	64(%r15), %edi
	movq	%rbx, %rsi
	movl	$-1, %edx
	xorl	%ecx, %ecx
	callq	_archive_read_disk_entry_from_file
	movl	%eax, %r14d
	movq	_ARCHIVE_FAILED@GOTPCREL(%rip), %r13
	cmpl	(%r13), %eax
	jge	LBB0_4
## %bb.3:
	movl	64(%r15), %edi
	callq	_archive_error_string
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_4:
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_6
## %bb.5:
	movl	64(%r15), %edi
	callq	_archive_error_string
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	movl	%eax, %edx
	callq	_lafe_warnc
LBB0_6:
	cmpl	(%r13), %r14d
	jle	LBB0_7
## %bb.8:
	movl	60(%r15), %esi
	testl	%esi, %esi
	js	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_archive_entry_set_uid
	movl	56(%r15), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_uname
LBB0_10:
	movl	52(%r15), %esi
	testl	%esi, %esi
	js	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_archive_entry_set_gid
	movl	48(%r15), %esi
	movq	%rbx, %rdi
	callq	_archive_entry_set_gname
LBB0_12:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.13:
	callq	_strlen
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%r13d, %eax
	addl	$8, %eax
	movslq	%eax, %rcx
	movq	16(%r15), %rax
	cmpq	%rcx, %rax
	ja	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	%rax, %rax
	addq	$1024, %rax                     ## imm = 0x400
	cmpq	%rcx, %rax
	jbe	LBB0_14
## %bb.15:
	movq	%rax, 16(%r15)
	movq	24(%r15), %rdi
	callq	_free
	movl	16(%r15), %edi
	callq	_malloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_17:
	movq	8(%r15), %rsi
	movq	24(%r15), %rdi
	callq	_strcpy
	movq	24(%r15), %r13
	movq	%r12, %rdi
	callq	_remove_leading_slash
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_strcat
	movq	24(%r15), %r12
LBB0_18:
	cmpq	$0, 40(%r15)
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	callq	_cpio_rename
	movq	%rax, %r12
LBB0_20:
	testq	%r12, %r12
	je	LBB0_21
## %bb.22:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_archive_entry_copy_pathname
	movq	$0, -48(%rbp)
	cmpq	$0, 32(%r15)
	je	LBB0_25
## %bb.23:
	movq	%rbx, %rdi
	callq	_archive_entry_filetype
	movq	_AE_IFDIR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movq	32(%r15), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	callq	_archive_entry_linkify
	movq	-56(%rbp), %rbx
LBB0_25:
	testq	%rbx, %rbx
	je	LBB0_30
## %bb.26:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_entry_to_archive
	movl	%eax, %r14d
	movq	-56(%rbp), %rdi
	callq	_archive_entry_free
	movq	-48(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_30
## %bb.27:
	testl	%r14d, %r14d
	jne	LBB0_29
## %bb.28:
	movq	%r15, %rdi
	callq	_entry_to_archive
	movl	%eax, %r14d
	movq	-48(%rbp), %rsi
LBB0_29:
	movq	%rsi, %rdi
	callq	_archive_entry_free
	jmp	LBB0_30
LBB0_7:
	movq	%rbx, %rdi
	callq	_archive_entry_free
	movl	$1, (%r15)
	jmp	LBB0_30
LBB0_21:
	movq	%rbx, %rdi
	callq	_archive_entry_free
	xorl	%r14d, %r14d
LBB0_30:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Couldn't allocate entry"

	.comm	_ARCHIVE_FAILED,4,2             ## @ARCHIVE_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"%s"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"Can't allocate path buffer"

	.comm	_AE_IFDIR,8,3                   ## @AE_IFDIR
	.no_dead_strip	_file_to_archive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function file_to_archive
_file_to_archive:                       ; @file_to_archive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
	bl	_archive_entry_new
	mov	x21, x0
	str	x0, [sp, #24]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_2:
	mov	x0, x21
	mov	x1, x22
	bl	_archive_entry_copy_sourcepath
	ldr	w0, [x19, #64]
	mov	x1, x21
	mov	w2, #-1
	mov	x3, #0
	bl	_archive_read_disk_entry_from_file
	mov	x20, x0
Lloh2:
	adrp	x23, _ARCHIVE_FAILED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ARCHIVE_FAILED@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w0, w8
	b.ge	LBB0_4
; %bb.3:
	ldr	w0, [x19, #64]
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_4:
Lloh6:
	adrp	x8, _ARCHIVE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ARCHIVE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_6
; %bb.5:
	ldr	w0, [x19, #64]
	bl	_archive_error_string
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	bl	_lafe_warnc
LBB0_6:
	ldr	w8, [x23]
	cmp	w20, w8
	b.le	LBB0_28
; %bb.7:
	ldr	w1, [x19, #60]
	tbnz	w1, #31, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_archive_entry_set_uid
	ldr	w1, [x19, #56]
	mov	x0, x21
	bl	_archive_entry_set_uname
LBB0_9:
	ldr	w1, [x19, #52]
	tbnz	w1, #31, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_archive_entry_set_gid
	ldr	w1, [x19, #48]
	mov	x0, x21
	bl	_archive_entry_set_gname
LBB0_11:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_17
; %bb.12:
	bl	_strlen
	mov	x23, x0
	mov	x0, x22
	bl	_strlen
	add	w8, w23, w0
	add	w8, w8, #8
	sxtw	x8, w8
	ldr	x9, [x19, #16]
	cmp	x9, x8
	b.hi	LBB0_16
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x9, x9, #1
	add	x9, x9, #1024
	cmp	x9, x8
	b.ls	LBB0_13
; %bb.14:
	str	x9, [x19, #16]
	ldr	x0, [x19, #24]
	bl	_free
	ldr	w0, [x19, #16]
	bl	_malloc
	str	x0, [x19, #24]
	cbnz	x0, LBB0_16
; %bb.15:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_lafe_errc
LBB0_16:
	ldr	x0, [x19, #24]
	ldr	x1, [x19, #8]
	bl	_strcpy
	ldr	x23, [x19, #24]
	mov	x0, x22
	bl	_remove_leading_slash
	mov	x1, x0
	mov	x0, x23
	bl	_strcat
	ldr	x22, [x19, #24]
LBB0_17:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_19
; %bb.18:
	mov	x0, x22
	bl	_cpio_rename
	mov	x22, x0
LBB0_19:
	cbz	x22, LBB0_29
; %bb.20:
	mov	x0, x21
	mov	x1, x22
	bl	_archive_entry_copy_pathname
	str	xzr, [sp, #16]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_23
; %bb.21:
	mov	x0, x21
	bl	_archive_entry_filetype
Lloh16:
	adrp	x8, _AE_IFDIR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AE_IFDIR@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.22:
	ldr	x0, [x19, #32]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_archive_entry_linkify
	ldr	x21, [sp, #24]
LBB0_23:
	cbz	x21, LBB0_30
; %bb.24:
	mov	x0, x19
	mov	x1, x21
	bl	_entry_to_archive
	mov	x20, x0
	ldr	x0, [sp, #24]
	bl	_archive_entry_free
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_30
; %bb.25:
	cbnz	w20, LBB0_27
; %bb.26:
	mov	x0, x19
	bl	_entry_to_archive
	mov	x20, x0
	ldr	x1, [sp, #16]
LBB0_27:
	mov	x0, x1
	bl	_archive_entry_free
	b	LBB0_30
LBB0_28:
	mov	x0, x21
	bl	_archive_entry_free
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_30
LBB0_29:
	mov	x0, x21
	bl	_archive_entry_free
	mov	w20, #0
LBB0_30:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Couldn't allocate entry"

	.comm	_ARCHIVE_FAILED,4,2             ; @ARCHIVE_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"%s"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"Can't allocate path buffer"

	.comm	_AE_IFDIR,8,3                   ; @AE_IFDIR
	.no_dead_strip	_file_to_archive
.subsections_via_symbols
