	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function brcmnand_ecc_level_mask
_brcmnand_ecc_level_mask:               ## @brcmnand_ecc_level_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edx
	xorl	%esi, %esi
	cmpl	$1536, %edx                     ## imm = 0x600
	setge	%sil
	shll	$4, %esi
	orl	$15, %esi
	movq	_NAND_ACC_CONTROL_ECC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_NAND_ACC_CONTROL_ECC_EXT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$7, %edi
	shll	%cl, %edi
	xorl	%eax, %eax
	cmpl	$1794, %edx                     ## imm = 0x702
	cmovgel	%edi, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ACC_CONTROL_ECC_SHIFT,4,2 ## @NAND_ACC_CONTROL_ECC_SHIFT
	.comm	_NAND_ACC_CONTROL_ECC_EXT_SHIFT,4,2 ## @NAND_ACC_CONTROL_ECC_EXT_SHIFT
	.no_dead_strip	_brcmnand_ecc_level_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function brcmnand_ecc_level_mask
_brcmnand_ecc_level_mask:               ; @brcmnand_ecc_level_mask
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	mov	w9, #15
	mov	w10, #31
Lloh0:
	adrp	x11, _NAND_ACC_CONTROL_ECC_SHIFT@GOTPAGE
Lloh1:
	ldr	x11, [x11, _NAND_ACC_CONTROL_ECC_SHIFT@GOTPAGEOFF]
	cmp	w8, #1535
	csel	w9, w10, w9, gt
Lloh2:
	ldr	w10, [x11]
	lsl	w9, w9, w10
Lloh3:
	adrp	x10, _NAND_ACC_CONTROL_ECC_EXT_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NAND_ACC_CONTROL_ECC_EXT_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	mov	w11, #7
	lsl	w10, w11, w10
	cmp	w8, #1793
	csel	w8, w10, wzr, gt
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ACC_CONTROL_ECC_SHIFT,4,2 ; @NAND_ACC_CONTROL_ECC_SHIFT
	.comm	_NAND_ACC_CONTROL_ECC_EXT_SHIFT,4,2 ; @NAND_ACC_CONTROL_ECC_EXT_SHIFT
	.no_dead_strip	_brcmnand_ecc_level_mask
.subsections_via_symbols
