	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm63xx_parse_cfe_nor_partitions
_bcm63xx_parse_cfe_nor_partitions:      ## @bcm63xx_parse_cfe_nor_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_uint32_t@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	movq	_BCM963XX_CFE_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_max_t
	movl	%eax, %r15d
	movq	_SZ_1K@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%rbx), %edi
	movl	%r15d, %esi
	callq	_roundup
	movl	%eax, %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$102, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdx
	movq	%rdx, (%rax)
	movl	$0, 8(%rax)
	movl	%r15d, 12(%rax)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	(%r12), %eax
	movl	%eax, %ecx
	subl	%r13d, %ecx
	movl	%ecx, 32(%rbx)
	movl	%r13d, 36(%rbx)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 48(%rbx)
	movl	%r15d, 56(%rbx)
	addl	%r15d, %r13d
	subl	%r13d, %eax
	movl	%eax, 60(%rbx)
	movq	_bcm63xx_cfe_part_types@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rbx)
	leaq	L_.str.3(%rip), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_pr_info
	movq	24(%rbx), %rdx
	movl	32(%rbx), %ecx
	movl	36(%rbx), %r8d
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_pr_info
	movq	48(%rbx), %rdx
	movl	56(%rbx), %ecx
	movl	60(%rbx), %r8d
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_pr_info
	movq	%rbx, (%r14)
	movl	$3, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uint32_t,4,2                   ## @uint32_t
	.comm	_BCM963XX_CFE_BLOCK_SIZE,4,2    ## @BCM963XX_CFE_BLOCK_SIZE
	.comm	_SZ_1K,4,2                      ## @SZ_1K
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CFE"

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

L_.str.2:                               ## @.str.2
	.asciz	"linux"

	.comm	_bcm63xx_cfe_part_types,4,2     ## @bcm63xx_cfe_part_types
L_.str.3:                               ## @.str.3
	.asciz	"Partition %d is %s offset %llx and length %llx\n"

	.no_dead_strip	_bcm63xx_parse_cfe_nor_partitions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm63xx_parse_cfe_nor_partitions
_bcm63xx_parse_cfe_nor_partitions:      ; @bcm63xx_parse_cfe_nor_partitions
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _uint32_t@GOTPAGE
Lloh1:
	ldr	x8, [x8, _uint32_t@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x22, #4]
Lloh3:
	adrp	x8, _BCM963XX_CFE_BLOCK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BCM963XX_CFE_BLOCK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_max_t
	mov	x21, x0
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _SZ_1K@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SZ_1K@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w0, w9, w8
	mov	x1, x21
	bl	_roundup
	mov	x23, x0
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #102
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	str	x2, [x0]
	stp	wzr, w21, [x0, #8]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0, #24]
	ldr	w8, [x22]
	sub	w9, w8, w23
	stp	w9, w23, [x0, #32]
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	str	x9, [x0, #48]
	add	w9, w23, w21
	sub	w8, w8, w9
	stp	w21, w8, [x0, #56]
Lloh18:
	adrp	x8, _bcm63xx_cfe_part_types@GOTPAGE
Lloh19:
	ldr	x8, [x8, _bcm63xx_cfe_part_types@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x0, #64]
Lloh21:
	adrp	x22, l_.str.3@PAGE
Lloh22:
	add	x22, x22, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	x4, x21
	bl	_pr_info
	ldr	x2, [x20, #24]
	ldp	w3, w4, [x20, #32]
	mov	x0, x22
	mov	w1, #1
	bl	_pr_info
	ldr	x2, [x20, #48]
	ldp	w3, w4, [x20, #56]
	mov	x0, x22
	mov	w1, #2
	bl	_pr_info
	str	x20, [x19]
	mov	w0, #3
	b	LBB0_3
LBB0_2:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_uint32_t,4,2                   ; @uint32_t
	.comm	_BCM963XX_CFE_BLOCK_SIZE,4,2    ; @BCM963XX_CFE_BLOCK_SIZE
	.comm	_SZ_1K,4,2                      ; @SZ_1K
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CFE"

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

l_.str.2:                               ; @.str.2
	.asciz	"linux"

	.comm	_bcm63xx_cfe_part_types,4,2     ; @bcm63xx_cfe_part_types
l_.str.3:                               ; @.str.3
	.asciz	"Partition %d is %s offset %llx and length %llx\n"

	.no_dead_strip	_bcm63xx_parse_cfe_nor_partitions
.subsections_via_symbols
