	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_nand_select_strength
_tegra_nand_select_strength:            ## @tegra_nand_select_strength
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	4(%rdi), %eax
	cmpl	$129, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_11
## %bb.2:
	movq	_NAND_IS_BOOT_MEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_3
## %bb.4:
	movq	_rs_strength@GOTPCREL(%rip), %rax
	movq	_BITS_PER_STEP_RS@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_6:
	movq	_NAND_IS_BOOT_MEDIUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	jne	LBB0_7
## %bb.8:
	movq	_bch_strength@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_rs_strength_bootable@GOTPCREL(%rip), %rax
	movq	_BITS_PER_STEP_RS@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_7:
	movq	_bch_strength_bootable@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_BITS_PER_STEP_BCH@GOTPCREL(%rip), %rcx
LBB0_10:
	movl	(%rcx), %r15d
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tegra_nand_get_strength        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS_PER_STEP_RS,4,2           ## @BITS_PER_STEP_RS
	.comm	_NAND_IS_BOOT_MEDIUM,4,2        ## @NAND_IS_BOOT_MEDIUM
	.comm	_rs_strength_bootable,8,3       ## @rs_strength_bootable
	.comm	_rs_strength,8,3                ## @rs_strength
	.comm	_BITS_PER_STEP_BCH,4,2          ## @BITS_PER_STEP_BCH
	.comm	_bch_strength_bootable,8,3      ## @bch_strength_bootable
	.comm	_bch_strength,8,3               ## @bch_strength
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_nand_select_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_nand_select_strength
_tegra_nand_select_strength:            ; @tegra_nand_select_strength
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #4]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NAND_IS_BOOT_MEDIUM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_IS_BOOT_MEDIUM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _rs_strength_bootable@GOTPAGE
Lloh4:
	ldr	x10, [x10, _rs_strength_bootable@GOTPAGEOFF]
Lloh5:
	adrp	x11, _rs_strength@GOTPAGE
Lloh6:
	ldr	x11, [x11, _rs_strength@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
Lloh7:
	adrp	x9, _BITS_PER_STEP_RS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _BITS_PER_STEP_RS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _NAND_IS_BOOT_MEDIUM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NAND_IS_BOOT_MEDIUM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _bch_strength_bootable@GOTPAGE
Lloh13:
	ldr	x10, [x10, _bch_strength_bootable@GOTPAGEOFF]
Lloh14:
	adrp	x11, _bch_strength@GOTPAGE
Lloh15:
	ldr	x11, [x11, _bch_strength@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
Lloh16:
	adrp	x9, _BITS_PER_STEP_BCH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BITS_PER_STEP_BCH@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x9]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	x3, x21
	mov	x4, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tegra_nand_get_strength
LBB0_5:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS_PER_STEP_RS,4,2           ; @BITS_PER_STEP_RS
	.comm	_NAND_IS_BOOT_MEDIUM,4,2        ; @NAND_IS_BOOT_MEDIUM
	.comm	_rs_strength_bootable,8,3       ; @rs_strength_bootable
	.comm	_rs_strength,8,3                ; @rs_strength
	.comm	_BITS_PER_STEP_BCH,4,2          ; @BITS_PER_STEP_BCH
	.comm	_bch_strength_bootable,8,3      ; @bch_strength_bootable
	.comm	_bch_strength,8,3               ; @bch_strength
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_nand_select_strength
.subsections_via_symbols
