	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mode_pass
_mode_pass:                             ## @mode_pass
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_strlen
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	callq	_malloc
	movq	%rax, (%r14)
	movq	%rax, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	cmpb	$47, -1(%rbx,%r15)
	je	LBB0_3
LBB0_2:
	movq	(%r14), %rax
	movb	$47, (%rax,%rbx)
	incq	%rbx
LBB0_3:
	movq	(%r14), %rax
	movb	$0, (%rax,%rbx)
	xorl	%eax, %eax
	callq	_archive_write_disk_new
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
	movq	16(%r14), %rax
LBB0_5:
	movl	64(%r14), %esi
	movq	%rax, %rdi
	callq	_archive_write_disk_set_options
	movq	_ARCHIVE_OK@GOTPCREL(%rip), %r15
	cmpl	(%r15), %eax
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rdi
	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_7:
	xorl	%eax, %eax
	callq	_archive_entry_linkresolver_new
	movl	%eax, 40(%r14)
	movq	16(%r14), %rdi
	callq	_archive_write_disk_set_standard_lookup
	xorl	%eax, %eax
	callq	_archive_read_disk_new
	movq	%rax, 48(%r14)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdx
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_lafe_errc
LBB0_9:
	cmpq	$0, 56(%r14)
	movq	48(%r14), %rdi
	je	LBB0_11
## %bb.10:
	callq	_archive_read_disk_set_symlink_logical
	jmp	LBB0_12
LBB0_11:
	callq	_archive_read_disk_set_symlink_physical
LBB0_12:
	movq	48(%r14), %rdi
	callq	_archive_read_disk_set_standard_lookup
	movl	44(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_lafe_line_reader
	movq	%rax, %rbx
	movq	%rax, %rdi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	callq	_lafe_line_reader_next
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_file_to_archive
	movq	%rbx, %rdi
	jmp	LBB0_14
LBB0_15:
	movq	%rbx, %rdi
	callq	_lafe_line_reader_free
	movl	40(%r14), %edi
	callq	_archive_entry_linkresolver_free
	movq	16(%r14), %rdi
	callq	_archive_write_close
	movl	%eax, %ebx
	cmpq	$0, 32(%r14)
	je	LBB0_17
## %bb.16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_17:
	cmpl	(%r15), %ebx
	je	LBB0_19
## %bb.18:
	movq	16(%r14), %rdi
	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_19:
	cmpl	$0, 24(%r14)
	jne	LBB0_21
## %bb.20:
	movq	16(%r14), %rdi
	xorl	%esi, %esi
	callq	_archive_filter_bytes
                                        ## kill: def $eax killed $eax def $rax
	leal	511(%rax), %ecx
	leal	1022(%rax), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$9, %edx
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movslq	%edx, %rdx
	decl	%eax
	cmpl	$512, %eax                      ## imm = 0x200
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rcx
	cmovbq	%rax, %rcx
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_21:
	movq	16(%r14), %rdi
	callq	_archive_write_free
	movl	8(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate archive object"

	.comm	_ARCHIVE_OK,4,2                 ## @ARCHIVE_OK
L_.str.1:                               ## @.str.1
	.asciz	"%s"

L_.str.2:                               ## @.str.2
	.asciz	"-"

	.comm	_stderr,4,2                     ## @stderr
L_.str.3:                               ## @.str.3
	.asciz	"\n"

L_.str.4:                               ## @.str.4
	.asciz	"%lu %s\n"

L_.str.5:                               ## @.str.5
	.asciz	"block"

L_.str.6:                               ## @.str.6
	.asciz	"blocks"

	.no_dead_strip	_mode_pass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mode_pass
_mode_pass:                             ; @mode_pass
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
	mov	x20, x0
	add	x0, x0, #8
	bl	_malloc
	str	x0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	cbz	x20, LBB0_2
; %bb.1:
	add	x8, x20, x21
	ldurb	w8, [x8, #-1]
	cmp	w8, #47
	b.eq	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	mov	w9, #47
	strb	w9, [x8, x20]
	add	x20, x20, #1
LBB0_3:
	ldr	x8, [x19]
	strb	wzr, [x8, x20]
	bl	_archive_write_disk_new
	str	x0, [x19, #16]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
	ldr	x0, [x19, #16]
LBB0_5:
	ldr	w1, [x19, #64]
	bl	_archive_write_disk_set_options
Lloh2:
	adrp	x21, _ARCHIVE_OK@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ARCHIVE_OK@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x19, #16]
	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_7:
	bl	_archive_entry_linkresolver_new
	str	w0, [x19, #40]
	ldr	x0, [x19, #16]
	bl	_archive_write_disk_set_standard_lookup
	bl	_archive_read_disk_new
	str	x0, [x19, #48]
	cbz	x0, LBB0_10
; %bb.8:
	ldp	x0, x8, [x19, #48]
	cbz	x8, LBB0_11
LBB0_9:
	bl	_archive_read_disk_set_symlink_logical
	b	LBB0_12
LBB0_10:
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
	ldp	x0, x8, [x19, #48]
	cbnz	x8, LBB0_9
LBB0_11:
	bl	_archive_read_disk_set_symlink_physical
LBB0_12:
	ldr	x0, [x19, #48]
	bl	_archive_read_disk_set_standard_lookup
	ldr	w1, [x19, #44]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_lafe_line_reader
	mov	x20, x0
	bl	_lafe_line_reader_next
	cbz	x0, LBB0_15
; %bb.13:
	mov	x1, x0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_file_to_archive
	mov	x0, x20
	bl	_lafe_line_reader_next
	mov	x1, x0
	cbnz	x0, LBB0_14
LBB0_15:
	mov	x0, x20
	bl	_lafe_line_reader_free
	ldr	w0, [x19, #40]
	bl	_archive_entry_linkresolver_free
	ldr	x0, [x19, #16]
	bl	_archive_write_close
	mov	x20, x0
	ldr	x8, [x19, #32]
Lloh10:
	adrp	x22, _stderr@GOTPAGE
Lloh11:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w0, [x22]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_17:
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_19
; %bb.18:
	ldr	x0, [x19, #16]
	bl	_archive_error_string
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	w1, #0
	bl	_lafe_errc
LBB0_19:
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_21
; %bb.20:
	ldr	x0, [x19, #16]
	mov	w1, #0
	bl	_archive_filter_bytes
	add	w8, w0, #511
	add	w9, w0, #1022
	cmp	w8, #0
	csel	w9, w9, w8, lt
	ldr	w8, [x22]
	sbfx	x9, x9, #9, #23
	sub	w10, w0, #1
Lloh16:
	adrp	x11, l_.str.6@PAGE
Lloh17:
	add	x11, x11, l_.str.6@PAGEOFF
Lloh18:
	adrp	x12, l_.str.5@PAGE
Lloh19:
	add	x12, x12, l_.str.5@PAGEOFF
	cmp	w10, #512
	csel	x10, x12, x11, lo
	stp	x9, x10, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x8
	bl	_fprintf
LBB0_21:
	ldr	x0, [x19, #16]
	bl	_archive_write_free
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_free
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate archive object"

	.comm	_ARCHIVE_OK,4,2                 ; @ARCHIVE_OK
l_.str.1:                               ; @.str.1
	.asciz	"%s"

l_.str.2:                               ; @.str.2
	.asciz	"-"

	.comm	_stderr,4,2                     ; @stderr
l_.str.3:                               ; @.str.3
	.asciz	"\n"

l_.str.4:                               ; @.str.4
	.asciz	"%lu %s\n"

l_.str.5:                               ; @.str.5
	.asciz	"block"

l_.str.6:                               ; @.str.6
	.asciz	"blocks"

	.no_dead_strip	_mode_pass
.subsections_via_symbols
