	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_get_nand_ecc_algo
_of_get_nand_ecc_algo:                  ## @of_get_nand_ecc_algo
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-32(%rbp), %rdx
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	-32(%rbp), %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcasecmp
	testl	%eax, %eax
	jne	LBB0_4
## %bb.10:
	movq	_NAND_ECC_BCH@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_NAND_ECC_HAMMING@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	_nand_ecc_algos@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %r14d
	jge	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-32(%rbp), %rdi
	movq	(%r15), %rbx
	movq	(%rbx,%r14,8), %rsi
	callq	_strcasecmp
	testl	%eax, %eax
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_6:
	movl	%eax, %r14d
	jmp	LBB0_12
LBB0_8:
	movq	_NAND_ECC_HAMMING@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %r14d
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nand-ecc-algo"

	.comm	_NAND_ECC_HAMMING,4,2           ## @NAND_ECC_HAMMING
	.comm	_nand_ecc_algos,8,3             ## @nand_ecc_algos
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"nand-ecc-mode"

L_.str.2:                               ## @.str.2
	.asciz	"soft"

L_.str.3:                               ## @.str.3
	.asciz	"soft_bch"

	.comm	_NAND_ECC_BCH,4,2               ## @NAND_ECC_BCH
	.no_dead_strip	_of_get_nand_ecc_algo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_get_nand_ecc_algo
_of_get_nand_ecc_algo:                  ; @of_get_nand_ecc_algo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_of_property_read_string
	cbz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x19
	bl	_of_property_read_string
	tbnz	w0, #31, LBB0_9
; %bb.2:
	ldr	x19, [sp, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbz	w0, LBB0_10
; %bb.3:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcasecmp
	cbnz	w0, LBB0_8
; %bb.4:
Lloh8:
	adrp	x8, _NAND_ECC_BCH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NAND_ECC_BCH@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
Lloh10:
	adrp	x8, _NAND_ECC_HAMMING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NAND_ECC_HAMMING@GOTPAGEOFF]
Lloh12:
	ldrsw	x19, [x8]
Lloh13:
	adrp	x21, _nand_ecc_algos@GOTPAGE
Lloh14:
	ldr	x21, [x21, _nand_ecc_algos@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w19, w0
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	x20, [x21]
	ldr	x1, [x20, x19, lsl #3]
	bl	_strcasecmp
	cbz	w0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #1
	mov	x0, x20
	bl	_ARRAY_SIZE
	cmp	x19, w0, sxtw
	b.lt	LBB0_6
LBB0_8:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_12
LBB0_9:
	mov	x19, x0
	b	LBB0_12
LBB0_10:
Lloh18:
	adrp	x8, _NAND_ECC_HAMMING@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NAND_ECC_HAMMING@GOTPAGEOFF]
LBB0_11:
	ldr	w19, [x8]
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nand-ecc-algo"

	.comm	_NAND_ECC_HAMMING,4,2           ; @NAND_ECC_HAMMING
	.comm	_nand_ecc_algos,8,3             ; @nand_ecc_algos
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"nand-ecc-mode"

l_.str.2:                               ; @.str.2
	.asciz	"soft"

l_.str.3:                               ; @.str.3
	.asciz	"soft_bch"

	.comm	_NAND_ECC_BCH,4,2               ; @NAND_ECC_BCH
	.no_dead_strip	_of_get_nand_ecc_algo
.subsections_via_symbols
