	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_decode_bbm_options
_nand_decode_bbm_options:               ## @nand_decode_bbm_options
	.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
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	cmpl	$512, (%rax)                    ## imm = 0x200
	jg	LBB0_4
## %bb.2:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_NAND_BBM_POS_SMALL@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_4:
	movq	_NAND_BBM_POS_LARGE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NAND_BBM_POS_LARGE,4,2         ## @NAND_BBM_POS_LARGE
	.comm	_NAND_BBM_POS_SMALL,4,2         ## @NAND_BBM_POS_SMALL
	.no_dead_strip	_nand_decode_bbm_options
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_decode_bbm_options
_nand_decode_bbm_options:               ; @nand_decode_bbm_options
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_nand_to_mtd
	ldr	w9, [x0]
Lloh0:
	adrp	x8, _NAND_BBM_POS_LARGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_BBM_POS_LARGE@GOTPAGEOFF]
	cmp	w9, #512
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x11, _NAND_BBM_POS_SMALL@GOTPAGE
Lloh6:
	ldr	x11, [x11, _NAND_BBM_POS_SMALL@GOTPAGEOFF]
	tst	w9, w10
	csel	x8, x11, x8, eq
LBB0_2:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NAND_BBM_POS_LARGE,4,2         ; @NAND_BBM_POS_LARGE
	.comm	_NAND_BBM_POS_SMALL,4,2         ; @NAND_BBM_POS_SMALL
	.no_dead_strip	_nand_decode_bbm_options
.subsections_via_symbols
