	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxic_nfc_hw_init
_mxic_nfc_hw_init:                      ## @mxic_nfc_hw_init
	.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, %r14
	movl	$8, %edi
	callq	_HC_CFG_NIO
	movl	%eax, %ebx
	movq	_HC_CFG_TYPE_RAW_NAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	callq	_HC_CFG_TYPE
	movl	%eax, %r15d
	xorl	%edi, %edi
	callq	_HC_CFG_SLV_ACT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_HC_CFG_MAN_CS_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$1, %edi
	callq	_HC_CFG_IDLE_SIO_LVL
	orl	%eax, %ebx
	movq	_HC_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_INT_STS_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INT_STS_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	_INT_RDY_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_INT_SIG_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	movq	(%r14), %rbx
	xorl	%edi, %edi
	callq	_ONFI_DIN_CNT
	addq	%rax, %rbx
	xorl	%edi, %edi
	movq	%rbx, %rsi
	callq	_writel
	movq	_LRD_CFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_LRD_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_HC_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HC_CFG_TYPE_RAW_NAND,4,2       ## @HC_CFG_TYPE_RAW_NAND
	.comm	_HC_CFG_MAN_CS_EN,4,2           ## @HC_CFG_MAN_CS_EN
	.comm	_HC_CFG,8,3                     ## @HC_CFG
	.comm	_INT_STS_ALL,4,2                ## @INT_STS_ALL
	.comm	_INT_STS_EN,8,3                 ## @INT_STS_EN
	.comm	_INT_RDY_PIN,4,2                ## @INT_RDY_PIN
	.comm	_INT_SIG_EN,8,3                 ## @INT_SIG_EN
	.comm	_LRD_CFG,8,3                    ## @LRD_CFG
	.comm	_LRD_CTRL,8,3                   ## @LRD_CTRL
	.comm	_HC_EN,8,3                      ## @HC_EN
	.no_dead_strip	_mxic_nfc_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxic_nfc_hw_init
_mxic_nfc_hw_init:                      ; @mxic_nfc_hw_init
	.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
	mov	w0, #8
	bl	_HC_CFG_NIO
	mov	x20, x0
Lloh0:
	adrp	x8, _HC_CFG_TYPE_RAW_NAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HC_CFG_TYPE_RAW_NAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #1
	bl	_HC_CFG_TYPE
	orr	w20, w0, w20
	mov	w0, #0
	bl	_HC_CFG_SLV_ACT
	orr	w8, w20, w0
Lloh3:
	adrp	x9, _HC_CFG_MAN_CS_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HC_CFG_MAN_CS_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w8, w9
	mov	w0, #1
	bl	_HC_CFG_IDLE_SIO_LVL
	orr	w0, w20, w0
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _HC_CFG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HC_CFG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh9:
	adrp	x8, _INT_STS_ALL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INT_STS_ALL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _INT_STS_EN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INT_STS_EN@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh15:
	adrp	x8, _INT_RDY_PIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _INT_RDY_PIN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _INT_SIG_EN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _INT_SIG_EN@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x20, [x19]
	mov	w0, #0
	bl	_ONFI_DIN_CNT
	add	x1, x0, x20
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh21:
	adrp	x9, _LRD_CFG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _LRD_CFG@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _LRD_CTRL@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LRD_CTRL@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _HC_EN@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HC_EN@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HC_CFG_TYPE_RAW_NAND,4,2       ; @HC_CFG_TYPE_RAW_NAND
	.comm	_HC_CFG_MAN_CS_EN,4,2           ; @HC_CFG_MAN_CS_EN
	.comm	_HC_CFG,8,3                     ; @HC_CFG
	.comm	_INT_STS_ALL,4,2                ; @INT_STS_ALL
	.comm	_INT_STS_EN,8,3                 ; @INT_STS_EN
	.comm	_INT_RDY_PIN,4,2                ; @INT_RDY_PIN
	.comm	_INT_SIG_EN,8,3                 ; @INT_SIG_EN
	.comm	_LRD_CFG,8,3                    ; @LRD_CFG
	.comm	_LRD_CTRL,8,3                   ; @LRD_CTRL
	.comm	_HC_EN,8,3                      ; @HC_EN
	.no_dead_strip	_mxic_nfc_hw_init
.subsections_via_symbols
