	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_partitions             ## -- Begin function process_partitions
	.p2align	4, 0x90
_process_partitions:                    ## @process_partitions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_fw_num_partitions@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	_fw_parts@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	_flash_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$4, %r8
	xorl	%eax, %eax
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %r9
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r10,%rax), %rdx
	cmpq	%rdi, %rdx
	jg	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r10,%rax), %rcx
	addq	%rdx, %rcx
	cmpq	%rdi, %rcx
	jg	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %rax
	cmpq	%rax, %r8
	jne	LBB0_2
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	%r9, %rsi
LBB0_8:
	xorl	%edi, %edi
	callq	_errmsg
	movl	$-1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fw_num_partitions,4,2          ## @fw_num_partitions
	.comm	_fw_parts,8,3                   ## @fw_parts
	.comm	_flash_size,8,3                 ## @flash_size
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid partition at 0x%08X"

L_.str.1:                               ## @.str.1
	.asciz	"partition at 0x%08X is too big"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_partitions             ; -- Begin function process_partitions
	.p2align	2
_process_partitions:                    ; @process_partitions
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _fw_num_partitions@GOTPAGE
Lloh1:
	ldr	x8, [x8, _fw_num_partitions@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x9, _fw_parts@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fw_parts@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x9]
Lloh6:
	adrp	x9, _flash_size@GOTPAGE
Lloh7:
	ldr	x9, [x9, _flash_size@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x10, x10, #8
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
Lloh11:
	adrp	x11, l_.str.1@PAGE
Lloh12:
	add	x11, x11, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x2, [x10, #-8]
	cmp	x2, x9
	b.gt	LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x12, [x10]
	add	x12, x12, x2
	cmp	x12, x9
	b.gt	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x10, x10, #16
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x1, x11
LBB0_7:
	mov	w0, #0
	bl	_errmsg
	mov	w0, #-1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_fw_num_partitions,4,2          ; @fw_num_partitions
	.comm	_fw_parts,8,3                   ; @fw_parts
	.comm	_flash_size,8,3                 ; @flash_size
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid partition at 0x%08X"

l_.str.1:                               ; @.str.1
	.asciz	"partition at 0x%08X is too big"

.subsections_via_symbols
