	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function marvell_nfc_force_byte_access
_marvell_nfc_force_byte_access:         ## @marvell_nfc_force_byte_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_to_marvell_nfc
	movq	%rax, %r15
	movq	_NAND_BUSWIDTH_16@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_NDCR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_readl_relaxed
	movq	_NDCR_DWIDTH_M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_NDCR_DWIDTH_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	orl	%edx, %ecx
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	orl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, %eax
LBB0_4:
	movq	(%rbx), %rsi
	addq	(%r15), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ## @NAND_BUSWIDTH_16
	.comm	_NDCR,8,3                       ## @NDCR
	.comm	_NDCR_DWIDTH_M,4,2              ## @NDCR_DWIDTH_M
	.comm	_NDCR_DWIDTH_C,4,2              ## @NDCR_DWIDTH_C
	.no_dead_strip	_marvell_nfc_force_byte_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function marvell_nfc_force_byte_access
_marvell_nfc_force_byte_access:         ; @marvell_nfc_force_byte_access
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_to_marvell_nfc
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _NAND_BUSWIDTH_16@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_BUSWIDTH_16@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x21, _NDCR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _NDCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh5:
	adrp	x8, _NDCR_DWIDTH_M@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NDCR_DWIDTH_M@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _NDCR_DWIDTH_C@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NDCR_DWIDTH_C@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w10, w8, w0
	orr	w10, w10, w9
	orr	w8, w9, w8
	bic	w8, w0, w8
	cmp	w19, #0
	csel	w0, w10, w8, eq
	ldr	x8, [x20]
	ldr	x9, [x21]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_writel_relaxed
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BUSWIDTH_16,4,2           ; @NAND_BUSWIDTH_16
	.comm	_NDCR,8,3                       ; @NDCR
	.comm	_NDCR_DWIDTH_M,4,2              ; @NDCR_DWIDTH_M
	.comm	_NDCR_DWIDTH_C,4,2              ; @NDCR_DWIDTH_C
	.no_dead_strip	_marvell_nfc_force_byte_access
.subsections_via_symbols
