	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpc5121_nfc_read_hw_config
_mpc5121_nfc_read_hw_config:            ## @mpc5121_nfc_read_hw_config
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_mtd_to_nand
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nand_get_controller_data
	movq	%rax, %r14
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_of_find_compatible_node
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_of_iomap
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_in_be32
	movl	%eax, %ecx
	shrl	$21, %ecx
	andl	$3, %ecx
	movl	%eax, %edx
	shrl	$5, %edx
	andl	$4, %edx
	orl	%ecx, %edx
	leaq	l_switch.table.mpc5121_nfc_read_hw_config(%rip), %rcx
	movl	(%rcx,%rdx,4), %r8d
	leaq	l_switch.table.mpc5121_nfc_read_hw_config.4(%rip), %rcx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, (%r13)
	movl	%r8d, 4(%r13)
	movl	$8, %edx
	testb	$64, %al
	je	LBB0_6
## %bb.5:
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	$16, %edx
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_notice
	movq	%r14, %rdi
	callq	_iounmap
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_of_node_put
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl,mpc5121-reset"

L_.str.1:                               ## @.str.1
	.asciz	"Missing 'fsl,mpc5121-reset' node in device tree!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"Error mapping reset module node!\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
L_.str.3:                               ## @.str.3
	.asciz	"Configured for %u-bit NAND, page size %u with %u spare.\n"

	.no_dead_strip	_mpc5121_nfc_read_hw_config
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.mpc5121_nfc_read_hw_config
l_switch.table.mpc5121_nfc_read_hw_config:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	128                             ## 0x80
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	218                             ## 0xda
	.long	218                             ## 0xda

	.p2align	2                               ## @switch.table.mpc5121_nfc_read_hw_config.4
l_switch.table.mpc5121_nfc_read_hw_config.4:
	.long	512                             ## 0x200
	.long	512                             ## 0x200
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000
	.long	2048                            ## 0x800
	.long	2048                            ## 0x800
	.long	4096                            ## 0x1000
	.long	4096                            ## 0x1000

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpc5121_nfc_read_hw_config
_mpc5121_nfc_read_hw_config:            ; @mpc5121_nfc_read_hw_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	bl	_mtd_to_nand
	mov	x21, x0
	bl	_nand_get_controller_data
	mov	x20, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	mov	x1, #0
	bl	_of_find_compatible_node
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	mov	w1, #0
	bl	_of_iomap
	cbz	x0, LBB0_5
; %bb.2:
	mov	x23, x0
	bl	_in_be32
	lsr	w8, w0, #5
	and	w8, w8, #0x4
	bfxil	w8, w0, #21, #2
	lsl	x8, x8, #2
Lloh2:
	adrp	x9, l_switch.table.mpc5121_nfc_read_hw_config@PAGE
Lloh3:
	add	x9, x9, l_switch.table.mpc5121_nfc_read_hw_config@PAGEOFF
	ldr	w4, [x9, x8]
Lloh4:
	adrp	x9, l_switch.table.mpc5121_nfc_read_hw_config.4@PAGE
Lloh5:
	add	x9, x9, l_switch.table.mpc5121_nfc_read_hw_config.4@PAGEOFF
	ldr	w3, [x9, x8]
	stp	w3, w4, [x22]
	tbnz	w0, #6, LBB0_6
; %bb.3:
	mov	w2, #8
	b	LBB0_7
LBB0_4:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_5:
	ldr	w0, [x20]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh13:
	adrp	x8, _EBUSY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
Lloh16:
	adrp	x8, _NAND_BUSWIDTH_16@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	w2, #16
LBB0_7:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_notice
	mov	x0, x23
	bl	_iounmap
	mov	w20, #0
LBB0_8:
	mov	x0, x19
	bl	_of_node_put
LBB0_9:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,mpc5121-reset"

l_.str.1:                               ; @.str.1
	.asciz	"Missing 'fsl,mpc5121-reset' node in device tree!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"Error mapping reset module node!\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
l_.str.3:                               ; @.str.3
	.asciz	"Configured for %u-bit NAND, page size %u with %u spare.\n"

	.no_dead_strip	_mpc5121_nfc_read_hw_config
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.mpc5121_nfc_read_hw_config
l_switch.table.mpc5121_nfc_read_hw_config:
	.long	16                              ; 0x10
	.long	16                              ; 0x10
	.long	128                             ; 0x80
	.long	128                             ; 0x80
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	218                             ; 0xda
	.long	218                             ; 0xda

	.p2align	2                               ; @switch.table.mpc5121_nfc_read_hw_config.4
l_switch.table.mpc5121_nfc_read_hw_config.4:
	.long	512                             ; 0x200
	.long	512                             ; 0x200
	.long	4096                            ; 0x1000
	.long	4096                            ; 0x1000
	.long	2048                            ; 0x800
	.long	2048                            ; 0x800
	.long	4096                            ; 0x1000
	.long	4096                            ; 0x1000

.subsections_via_symbols
