	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm47xxpart_bootpartition
_bcm47xxpart_bootpartition:             ## @bcm47xxpart_bootpartition
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	leaq	-16(%rbp), %rsi
	movl	$4, %edx
	callq	_bcm47xx_nvram_getenv
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	leaq	-16(%rbp), %rdi
	xorl	%ebx, %ebx
	leaq	-12(%rbp), %rdx
	xorl	%esi, %esi
	callq	_kstrtoint
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-12(%rbp), %ebx
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bootpartition"

	.no_dead_strip	_bcm47xxpart_bootpartition
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm47xxpart_bootpartition
_bcm47xxpart_bootpartition:             ; @bcm47xxpart_bootpartition
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	sub	x1, x29, #4
	mov	w2, #4
	bl	_bcm47xx_nvram_getenv
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	sub	x0, x29, #4
	add	x2, sp, #8
	mov	w1, #0
	bl	_kstrtoint
	ldr	w8, [sp, #8]
	cmp	w0, #0
	csel	w0, w8, wzr, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bootpartition"

	.no_dead_strip	_bcm47xxpart_bootpartition
.subsections_via_symbols
