	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_partitions
_put_partitions:                        ## @put_partitions
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdx), %r13
	testq	%r13, %r13
	je	LBB0_16
## %bb.1:
	movq	%rdx, %r15
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	2048(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	$2048, %r12d                    ## imm = 0x800
	movq	%rdx, %rsi
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r15,%rax,8), %rax
	addq	$8, %rax
	addq	%r12, %r14
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	addq	(%rax), %r12
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rax,2), %rax
	leaq	(%r15,%rax,8), %rsi
	movq	(%r15,%rax,8), %r13
	testq	%r13, %r13
	movq	%r14, %rbx
	je	LBB0_16
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r14
	testq	%r14, %r14
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_10 Depth=2
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_strcmp
	addq	$16, %rbx
	incq	%r15
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	xorl	%r15d, %r15d
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	leaq	(,%r13,2), %rax
	addq	%r13, %rax
	shlq	$4, %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx,%r15), %r8
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	cmpq	%r8, 8(%r15,%rax,8)
	jle	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	callq	_error
	movq	(%rbx), %r14
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_assert
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %rdi
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r13,%r13,2), %r13
	movl	16(%r15,%r13,8), %esi
	movq	8(%r15,%r13,8), %rdx
	callq	_memcpy
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	subq	%r14, %rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	8(%r15,%r13,8), %r9d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %r8d
	callq	_snprintf
	movq	%rax, %r12
	decq	%rbx
	cmpq	%rbx, %rax
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	xorl	%esi, %esi
	leaq	L_.str.2(%rip), %rdx
	xorl	%eax, %eax
	callq	_error
	jmp	LBB0_15
LBB0_16:
	addq	$72, %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	"%s partition too big (more than %u bytes)"

L_.str.1:                               ## @.str.1
	.asciz	"fwup-ptn %s base 0x%05x size 0x%05x\t\r\n"

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

	.no_dead_strip	_put_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_partitions
_put_partitions:                        ; @put_partitions
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x0, [sp, #32]                   ; 8-byte Folded Spill
	ldr	x27, [x2]
	cbz	x27, LBB0_16
; %bb.1:
	mov	x24, x2
	mov	x21, x1
	mov	x26, #0
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	add	x8, x25, #2048
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	mov	w22, #2048
	mov	w23, #24
	mov	x19, x2
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x25, x25, x27
	ldr	x8, [x20]
	add	x22, x8, x22
	add	x26, x26, #1
	madd	x19, x26, x23, x24
	ldr	x27, [x19]
	cbz	x27, LBB0_16
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x28, [x21]
	cbz	x28, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	mov	x1, x27
	bl	_strcmp
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x21
	mov	w21, #24
	mov	x23, #0
	mov	x24, x20
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x28, [x20, #16]
	cbz	x28, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x28
	mov	x1, x27
	bl	_strcmp
	add	x20, x20, #16
	add	x23, x23, #1
	cbnz	w0, LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x21
	mov	w21, #24
	mov	x23, #0
	mov	x20, x24
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	madd	x8, x26, x21, x8
	ldr	x9, [x8, #8]
	add	x8, x24, x23, lsl #4
	ldr	x8, [x8, #8]
	cmp	x9, x8
	mov	x21, x24
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	stp	x28, x8, [sp]
	mov	w0, #1
	mov	w1, #0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	bl	_error
	ldr	x28, [x20]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #24
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w23, #24
	mov	x21, x24
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x28
	bl	_assert
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x0, x8, x22, lsl #2
	madd	x20, x26, x23, x24
	ldr	x2, [x20, #8]!
	ldr	w1, [x20, #8]
	bl	_memcpy
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	sub	x28, x8, x25
	ldr	x3, [x19]
	ldr	w5, [x20]
	mov	x0, x25
	mov	x1, x28
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, x22
	bl	_snprintf
	mov	x27, x0
	sub	x8, x28, #1
	cmp	x0, x8
	b.ls	LBB0_2
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	w1, #0
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	bl	_error
	b	LBB0_2
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s partition too big (more than %u bytes)"

l_.str.1:                               ; @.str.1
	.asciz	"fwup-ptn %s base 0x%05x size 0x%05x\t\r\n"

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

	.no_dead_strip	_put_partitions
.subsections_via_symbols
