	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_partition_table
_make_partition_table:                  ## @make_partition_table
	.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	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movl	$2048, %esi                     ## imm = 0x800
	callq	_alloc_image_partition
	movq	%rdx, %r13
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r14
	addq	%rdx, %r14
	movl	$1024, (%rdx)                   ## imm = 0x400
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addq	$4, %r13
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	addq	$16, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %r13
	movq	(%rbx), %rcx
	addq	$16, %rbx
	testq	%rcx, %rcx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %r12
	subq	%r13, %r12
	movl	-8(%rbx), %r8d
	movl	-4(%rbx), %r9d
	movq	%r13, %rdi
	movq	%r12, %rsi
	leaq	L_.str.1(%rip), %rdx
	callq	_snprintf
	movq	%rax, %r15
	decq	%r12
	cmpq	%r12, %rax
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	leaq	L_.str.2(%rip), %rdx
	callq	_error
	jmp	LBB0_4
LBB0_5:
	incq	%r13
	subl	%r13d, %r14d
	movq	%r13, %rdi
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	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	"partition-table"

L_.str.1:                               ## @.str.1
	.asciz	"partition %s base 0x%05x size 0x%05x\n"

L_.str.2:                               ## @.str.2
	.asciz	"flash partition table overflow?"

	.no_dead_strip	_make_partition_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_partition_table
_make_partition_table:                  ; @make_partition_table
	.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
	mov	x22, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #2048
	bl	_alloc_image_partition
	mov	x19, x0
	mov	x20, x1
	add	x26, x1, w19, sxtw
	mov	w8, #1024
	mov	x21, x1
	str	w8, [x21], #4
	ldr	x3, [x22]
	cbz	x3, LBB0_5
; %bb.1:
	add	x27, x22, #16
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, x24
	ldr	x3, [x27], #16
	cbz	x3, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x25, x26, x21
	ldp	w4, w5, [x27, #-8]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x22
	bl	_snprintf
	mov	x24, x0
	sub	x8, x25, #1
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	w1, #0
	mov	x2, x23
	bl	_error
	b	LBB0_2
LBB0_5:
	add	x0, x21, #1
	sub	w2, w26, w0
	mov	w1, #255
	bl	_memset
	mov	x0, x19
	mov	x1, 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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"partition-table"

l_.str.1:                               ; @.str.1
	.asciz	"partition %s base 0x%05x size 0x%05x\n"

l_.str.2:                               ; @.str.2
	.asciz	"flash partition table overflow?"

	.no_dead_strip	_make_partition_table
.subsections_via_symbols
