	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_image_layout
_create_image_layout:                   ## @create_image_layout
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdx), %r13
	movq	16(%rdx), %rbx
	movq	(%r13), %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	28(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcpy
	movl	$1, (%rbx)
	movl	8(%r13), %eax
	movl	%eax, 4(%rbx)
	movq	%r12, %rdi
	callq	_filelength
	movq	%rax, 8(%rbx)
	cmpq	$-1, %rax
	je	LBB0_1
## %bb.2:
	movl	12(%r13), %eax
	movl	%eax, 16(%rbx)
	movl	%eax, 20(%rbx)
	movl	24(%rbx), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	%r14, %rdi
	callq	_filelength
	movq	8(%rbx), %r8
	addq	%rax, %r8
	movq	16(%r13), %rcx
	subq	%rcx, %r8
	jle	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_ERROR
	movl	$-2, %r14d
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	60(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcpy
	movl	$2, 32(%rbx)
	movq	8(%rbx), %rax
	movl	4(%rbx), %ecx
	addl	%eax, %ecx
	movl	%ecx, 36(%rbx)
	movq	16(%r13), %rcx
	subq	%rax, %rcx
	movq	%rcx, 40(%rbx)
	movq	$0, 48(%rbx)
	movl	56(%rbx), %edi
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_strncpy
	movq	8(%rbx), %rsi
	movl	4(%rbx), %edx
	leaq	L_.str.4(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_printf
	movq	40(%rbx), %rsi
	movl	36(%rbx), %edx
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$2, (%r15)
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %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	"board = %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"kernel"

L_.str.2:                               ## @.str.2
	.asciz	"File '%s' too big (0x%08X) - max size: 0x%08X (exceeds %u bytes)\n"

L_.str.3:                               ## @.str.3
	.asciz	"rootfs"

L_.str.4:                               ## @.str.4
	.asciz	"kernel: %d 0x%08x\n"

L_.str.5:                               ## @.str.5
	.asciz	"root: %d 0x%08x\n"

	.no_dead_strip	_create_image_layout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_image_layout
_create_image_layout:                   ; @create_image_layout
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	x23, x22, [x2, #8]
	ldr	x8, [x23]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w0, [x22, #28]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcpy
	mov	w8, #1
	ldr	w9, [x23, #8]
	stp	w8, w9, [x22]
	mov	x0, x21
	bl	_filelength
	str	x0, [x22, #8]
	cmn	x0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [x23, #12]
	stp	w8, w8, [x22, #16]
	ldr	w0, [x22, #24]
	mov	x1, x21
	mov	w2, #4
	bl	_strncpy
	mov	x0, x20
	bl	_filelength
	ldr	x8, [x22, #8]
	ldr	x3, [x23, #16]
	add	x8, x8, x0
	subs	x4, x8, x3
	b.le	LBB0_4
; %bb.2:
	mov	x2, x0
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_ERROR
	mov	w0, #-2
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	ldr	w0, [x22, #60]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcpy
	mov	w21, #2
	ldr	w8, [x22, #4]
	ldr	x9, [x22, #8]
	add	w8, w8, w9
	stp	w21, w8, [x22, #32]
	ldr	x8, [x23, #16]
	sub	x8, x8, x9
	stp	x8, xzr, [x22, #40]
	ldr	w0, [x22, #56]
	mov	x1, x20
	mov	w2, #4
	bl	_strncpy
	ldr	x8, [x22, #8]
	ldr	w9, [x22, #4]
	stp	x8, x9, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [x22, #40]
	ldr	w9, [x22, #36]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	mov	w0, #0
	str	w21, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"board = %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"kernel"

l_.str.2:                               ; @.str.2
	.asciz	"File '%s' too big (0x%08X) - max size: 0x%08X (exceeds %u bytes)\n"

l_.str.3:                               ; @.str.3
	.asciz	"rootfs"

l_.str.4:                               ; @.str.4
	.asciz	"kernel: %d 0x%08x\n"

l_.str.5:                               ; @.str.5
	.asciz	"root: %d 0x%08x\n"

	.no_dead_strip	_create_image_layout
.subsections_via_symbols
