	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meson_nfc_cmd_access
_meson_nfc_cmd_access:                  ## @meson_nfc_cmd_access
	.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	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r13
	callq	_nand_to_mtd
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mtd_to_nand
	movl	%eax, %edi
	callq	_nand_get_controller_data
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_to_meson_nand
	movl	(%rbx), %r14d
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	addl	4(%rbx), %r14d
	movl	$5, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, %ebx
	andl	%r14d, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%r12d, %edi
	callq	_DMA_DIR
	orl	%ebx, %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%r13), %ebx
	movl	(%rax), %r15d
	movl	%r14d, %eax
	cltd
	idivl	%ebx
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_DMA_DIR
	movq	_NFC_CMD_SHORTMODE_DISABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	callq	_CMDRWGEN
LBB0_3:
	movq	_NFC_REG_CMD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	(%rcx), %rsi
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NFC_REG_CMD,8,3                ## @NFC_REG_CMD
	.comm	_NFC_CMD_SHORTMODE_DISABLE,4,2  ## @NFC_CMD_SHORTMODE_DISABLE
	.no_dead_strip	_meson_nfc_cmd_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meson_nfc_cmd_access
_meson_nfc_cmd_access:                  ; @meson_nfc_cmd_access
	.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	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x22, x0
	bl	_nand_to_mtd
	mov	x23, x0
	bl	_mtd_to_nand
	bl	_nand_get_controller_data
	mov	x19, x0
	mov	x0, x22
	bl	_to_meson_nand
	ldr	w8, [x23]
	cbz	w24, LBB0_2
; %bb.1:
	ldr	w9, [x23, #4]
	add	w22, w9, w8
	mov	w0, #5
	mov	w1, #0
	bl	_GENMASK
	and	w8, w22, w0
	orr	w20, w8, w20
	mov	x0, x21
	bl	_DMA_DIR
	orr	w0, w20, w0
	b	LBB0_3
LBB0_2:
	ldr	w22, [x22]
	ldr	w23, [x0]
	sdiv	w24, w8, w22
	mov	x0, x21
	bl	_DMA_DIR
Lloh0:
	adrp	x8, _NFC_CMD_SHORTMODE_DISABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFC_CMD_SHORTMODE_DISABLE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x23
	mov	x4, x22
	mov	x5, x24
	bl	_CMDRWGEN
LBB0_3:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _NFC_REG_CMD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFC_REG_CMD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	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
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NFC_REG_CMD,8,3                ; @NFC_REG_CMD
	.comm	_NFC_CMD_SHORTMODE_DISABLE,4,2  ; @NFC_CMD_SHORTMODE_DISABLE
	.no_dead_strip	_meson_nfc_cmd_access
.subsections_via_symbols
