	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hynix_nand_extract_scrambling_requirements
_hynix_nand_extract_scrambling_requirements: ## @hynix_nand_extract_scrambling_requirements
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	addq	$16, %rdi
	callq	_nanddev_bits_per_cell
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	movq	_NAND_NEED_SCRAMBLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_2:
	movq	8(%rbx), %rax
	movl	20(%rax), %eax
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	cmpl	$15, %eax
	jle	LBB0_6
LBB0_5:
	movq	_NAND_NEED_SCRAMBLING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	andl	$7, %eax
	cmpl	$3, %eax
	jae	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_NEED_SCRAMBLING,4,2       ## @NAND_NEED_SCRAMBLING
	.no_dead_strip	_hynix_nand_extract_scrambling_requirements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hynix_nand_extract_scrambling_requirements
_hynix_nand_extract_scrambling_requirements: ; @hynix_nand_extract_scrambling_requirements
	.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	x20, x1
	mov	x19, x0
	add	x0, x0, #16
	bl	_nanddev_bits_per_cell
	cmp	w0, #3
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NAND_NEED_SCRAMBLING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_NEED_SCRAMBLING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w8, [x8, #20]
	cbz	w20, LBB0_6
; %bb.3:
	cmp	w8, #15
	b.le	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _NAND_NEED_SCRAMBLING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_NEED_SCRAMBLING@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	and	w8, w8, #0x7
	cmp	w8, #3
	b.hs	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_NEED_SCRAMBLING,4,2       ; @NAND_NEED_SCRAMBLING
	.no_dead_strip	_hynix_nand_extract_scrambling_requirements
.subsections_via_symbols
