	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_nand_get_strength
_tegra_nand_get_strength:               ## @tegra_nand_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movl	%edx, %ebx
	movq	%rdi, %r13
	movq	_NAND_ECC_MAXIMIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	(%rdi), %r15d
	movl	%edx, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	decl	%ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edi
	imull	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_DIV_ROUND_UP
	imull	4(%r13), %eax
	movl	%eax, %edi
	movl	$4, %esi
	callq	_round_up
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	_SKIP_SPARE_BYTES@GOTPCREL(%rip), %rdx
	subl	(%rdx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	decl	%ebx
	cmpq	%r12, -64(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %r14d
	cmpl	8(%r13), %r14d
	jge	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_ECC_MAXIMIZE,4,2          ## @NAND_ECC_MAXIMIZE
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_SKIP_SPARE_BYTES,4,2           ## @SKIP_SPARE_BYTES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tegra_nand_get_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_get_strength
_tegra_nand_get_strength:               ; @tegra_nand_get_strength
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _NAND_ECC_MAXIMIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_ECC_MAXIMIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x0]
	and	w24, w8, w9
	mov	w25, w2
Lloh3:
	adrp	x26, _BITS_PER_BYTE@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BITS_PER_BYTE@GOTPAGEOFF]
Lloh5:
	adrp	x27, _SKIP_SPARE_BYTES@GOTPAGE
Lloh6:
	ldr	x27, [x27, _SKIP_SPARE_BYTES@GOTPAGEOFF]
	mov	x28, x1
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w8, w25, #1
	ldr	w23, [x21, w8, sxtw #2]
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mul	w0, w23, w20
	ldr	w1, [x26]
	bl	_DIV_ROUND_UP
	ldr	w8, [x22, #4]
	mul	w0, w8, w0
	mov	w1, #4
	bl	_round_up
	ldr	w8, [x27]
	sub	w8, w19, w8
	cmp	w0, w8
	b.lt	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #4
	subs	x25, x25, #1
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w24, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w23, [x28]
	ldr	w8, [x22, #8]
	cmp	w23, w8
	b.ge	LBB0_3
	b	LBB0_4
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_ECC_MAXIMIZE,4,2          ; @NAND_ECC_MAXIMIZE
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_SKIP_SPARE_BYTES,4,2           ; @SKIP_SPARE_BYTES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tegra_nand_get_strength
.subsections_via_symbols
