	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pack_files
_pack_files:                            ## @pack_files
	.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	$584, %rsp                      ## imm = 0x248
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_o_isize@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	xorl	%ebx, %ebx
	movq	_o_images@GOTPCREL(%rip), %r14
	leaq	-624(%rbp), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	callq	_printf
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	_o_isize@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jae	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_calculate_digest
	movq	%rax, %r12
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rsi
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rdx
	callq	_verbose
	movq	%r13, %rdi
	callq	_rewind
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdx
	leaq	-560(%rbp), %r14
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_sprintf
	movq	%r14, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_fopen
	movq	%r15, %r14
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	movq	_o_meta@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_o_msize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rcx
	callq	_write_seama_header
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_write_checksum
	movq	_o_meta@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_o_msize@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_write_meta_data
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_copy_file
	movq	%r15, %rdi
	callq	_fclose
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_fclose
	movq	%r14, %r15
	movq	_o_images@GOTPCREL(%rip), %r14
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	addq	$584, %rsp                      ## imm = 0x248
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_o_isize,8,3                    ## @o_isize
	.comm	_o_images,8,3                   ## @o_images
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r+"

L_.str.1:                               ## @.str.1
	.asciz	"file size (%s) : %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s.seama"

L_.str.3:                               ## @.str.3
	.asciz	"w+"

	.comm	_o_meta,4,2                     ## @o_meta
	.comm	_o_msize,4,2                    ## @o_msize
L_.str.4:                               ## @.str.4
	.asciz	"Unable to open image file '%s'\n"

	.no_dead_strip	_pack_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pack_files
_pack_files:                            ; @pack_files
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #592
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x27, _o_isize@GOTPAGE
Lloh4:
	ldr	x27, [x27, _o_isize@GOTPAGEOFF]
	ldr	x8, [x27]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x28, #0
Lloh5:
	adrp	x20, _o_images@GOTPAGE
Lloh6:
	ldr	x20, [x20, _o_images@GOTPAGEOFF]
Lloh7:
	adrp	x19, l_.str@PAGE
Lloh8:
	add	x19, x19, l_.str@PAGEOFF
Lloh9:
	adrp	x21, _o_meta@GOTPAGE
Lloh10:
	ldr	x21, [x21, _o_meta@GOTPAGEOFF]
Lloh11:
	adrp	x22, _o_msize@GOTPAGE
Lloh12:
	ldr	x22, [x22, _o_msize@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.3@PAGE
Lloh14:
	add	x23, x23, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	ldr	x1, [x8, x28, lsl #3]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x28, x28, #1
	ldr	x8, [x27]
	cmp	x28, x8
	b.hs	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x0, [x8, x28, lsl #3]
	mov	x1, x19
	bl	_fopen
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	mov	x2, sp
	mov	w1, #0
	bl	_calculate_digest
	mov	x25, x0
	ldr	x8, [x20]
	lsl	x26, x28, #3
	ldr	x1, [x8, x26]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x25
	bl	_verbose
	mov	x0, x24
	bl	_rewind
	ldr	x8, [x20]
	ldr	x2, [x8, x26]
	add	x0, sp, #64
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_sprintf
	add	x0, sp, #64
	mov	x1, x23
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x3, x25
	bl	_write_seama_header
	mov	x1, sp
	mov	x0, x26
	bl	_write_checksum
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x26
	bl	_write_meta_data
	mov	x0, x26
	mov	x1, x24
	bl	_copy_file
	mov	x0, x26
	bl	_fclose
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_fclose
	b	LBB0_3
LBB0_8:
	ldur	x8, [x29, #-96]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	add	sp, sp, #592
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_o_isize,8,3                    ; @o_isize
	.comm	_o_images,8,3                   ; @o_images
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r+"

l_.str.1:                               ; @.str.1
	.asciz	"file size (%s) : %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s.seama"

l_.str.3:                               ; @.str.3
	.asciz	"w+"

	.comm	_o_meta,4,2                     ; @o_meta
	.comm	_o_msize,4,2                    ; @o_msize
l_.str.4:                               ; @.str.4
	.asciz	"Unable to open image file '%s'\n"

	.no_dead_strip	_pack_files
.subsections_via_symbols
