	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf610_nfc_init_controller
_vf610_nfc_init_controller:             ## @vf610_nfc_init_controller
	.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
	movq	%rdi, %rbx
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_NFC_FLASH_CONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_CONFIG_16BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vf610_nfc_set
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	callq	_vf610_nfc_clear
LBB0_3:
	movq	8(%rbx), %rax
	movq	_NAND_ECC_HW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	movq	_CONFIG_ECC_SRAM_ADDR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CONFIG_ECC_SRAM_ADDR_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ECC_SRAM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	sarl	$3, %r8d
	movq	%rbx, %rdi
	callq	_vf610_nfc_set_field
	movl	(%r14), %esi
	movq	_CONFIG_ECC_SRAM_REQ_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vf610_nfc_set                  ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NFC_FLASH_CONFIG,4,2           ## @NFC_FLASH_CONFIG
	.comm	_CONFIG_16BIT,4,2               ## @CONFIG_16BIT
	.comm	_NAND_ECC_HW,8,3                ## @NAND_ECC_HW
	.comm	_CONFIG_ECC_SRAM_ADDR_MASK,4,2  ## @CONFIG_ECC_SRAM_ADDR_MASK
	.comm	_CONFIG_ECC_SRAM_ADDR_SHIFT,4,2 ## @CONFIG_ECC_SRAM_ADDR_SHIFT
	.comm	_ECC_SRAM_ADDR,4,2              ## @ECC_SRAM_ADDR
	.comm	_CONFIG_ECC_SRAM_REQ_BIT,4,2    ## @CONFIG_ECC_SRAM_REQ_BIT
	.no_dead_strip	_vf610_nfc_init_controller
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf610_nfc_init_controller
_vf610_nfc_init_controller:             ; @vf610_nfc_init_controller
	.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	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh2:
	adrp	x20, _NFC_FLASH_CONFIG@GOTPAGE
Lloh3:
	ldr	x20, [x20, _NFC_FLASH_CONFIG@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ldr	w1, [x20]
Lloh5:
	adrp	x10, _CONFIG_16BIT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CONFIG_16BIT@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x10]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	bl	_vf610_nfc_set
	b	LBB0_3
LBB0_2:
	bl	_vf610_nfc_clear
LBB0_3:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _NAND_ECC_HW@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NAND_ECC_HW@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w1, [x20]
Lloh11:
	adrp	x8, _CONFIG_ECC_SRAM_ADDR_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CONFIG_ECC_SRAM_ADDR_MASK@GOTPAGEOFF]
Lloh13:
	adrp	x9, _CONFIG_ECC_SRAM_ADDR_SHIFT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CONFIG_ECC_SRAM_ADDR_SHIFT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	ldr	w3, [x9]
Lloh17:
	adrp	x8, _ECC_SRAM_ADDR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECC_SRAM_ADDR@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	asr	w4, w8, #3
	mov	x0, x19
	bl	_vf610_nfc_set_field
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _CONFIG_ECC_SRAM_REQ_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CONFIG_ECC_SRAM_REQ_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vf610_nfc_set
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NFC_FLASH_CONFIG,4,2           ; @NFC_FLASH_CONFIG
	.comm	_CONFIG_16BIT,4,2               ; @CONFIG_16BIT
	.comm	_NAND_ECC_HW,8,3                ; @NAND_ECC_HW
	.comm	_CONFIG_ECC_SRAM_ADDR_MASK,4,2  ; @CONFIG_ECC_SRAM_ADDR_MASK
	.comm	_CONFIG_ECC_SRAM_ADDR_SHIFT,4,2 ; @CONFIG_ECC_SRAM_ADDR_SHIFT
	.comm	_ECC_SRAM_ADDR,4,2              ; @ECC_SRAM_ADDR
	.comm	_CONFIG_ECC_SRAM_REQ_BIT,4,2    ; @CONFIG_ECC_SRAM_REQ_BIT
	.no_dead_strip	_vf610_nfc_init_controller
.subsections_via_symbols
