	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_spifi_read_reg
_nxp_spifi_read_reg:                    ## @nxp_spifi_read_reg
	.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
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_nxp_spifi_set_memory_mode_off
	testl	%eax, %eax
	je	LBB0_1
## %bb.5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, %edi
	callq	_SPIFI_CMD_DATALEN
	movl	%eax, %r13d
	movl	%r12d, %edi
	callq	_SPIFI_CMD_OPCODE
	orl	%eax, %r13d
	movq	_SPIFI_CMD_FIELDFORM_ALL_SERIAL@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_SPIFI_CMD_FRAMEFORM_OPCODE_ONLY@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movq	_SPIFI_CMD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r15), %rsi
	movl	%r13d, %edi
	callq	_writel
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	movl	%ebx, %r12d
	xorl	%ebx, %ebx
	movq	_SPIFI_DATA@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	addq	(%r15), %rdi
	callq	_readb
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpl	%ebx, %r12d
	jne	LBB0_3
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nxp_spifi_wait_for_cmd         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPIFI_CMD_FIELDFORM_ALL_SERIAL,4,2 ## @SPIFI_CMD_FIELDFORM_ALL_SERIAL
	.comm	_SPIFI_CMD_FRAMEFORM_OPCODE_ONLY,4,2 ## @SPIFI_CMD_FRAMEFORM_OPCODE_ONLY
	.comm	_SPIFI_CMD,8,3                  ## @SPIFI_CMD
	.comm	_SPIFI_DATA,8,3                 ## @SPIFI_DATA
	.no_dead_strip	_nxp_spifi_read_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_spifi_read_reg
_nxp_spifi_read_reg:                    ; @nxp_spifi_read_reg
	.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	x19, x3
	mov	x20, x2
	mov	x22, x1
	ldr	x21, [x0]
	mov	x0, x21
	bl	_nxp_spifi_set_memory_mode_off
	cbz	w0, LBB0_2
; %bb.1:
	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
LBB0_2:
	mov	x0, x19
	bl	_SPIFI_CMD_DATALEN
	mov	x23, x0
	mov	x0, x22
	bl	_SPIFI_CMD_OPCODE
Lloh0:
	adrp	x8, _SPIFI_CMD_FIELDFORM_ALL_SERIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPIFI_CMD_FIELDFORM_ALL_SERIAL@GOTPAGEOFF]
	orr	w9, w0, w23
Lloh2:
	ldr	w8, [x8]
	orr	w8, w9, w8
Lloh3:
	adrp	x9, _SPIFI_CMD_FRAMEFORM_OPCODE_ONLY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPIFI_CMD_FRAMEFORM_OPCODE_ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _SPIFI_CMD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SPIFI_CMD@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	cbz	w19, LBB0_5
; %bb.3:
Lloh9:
	adrp	x22, _SPIFI_DATA@GOTPAGE
Lloh10:
	ldr	x22, [x22, _SPIFI_DATA@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	ldr	x8, [x21]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readb
	str	w0, [x20], #4
	cbnz	w19, LBB0_4
LBB0_5:
	mov	x0, x21
	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	_nxp_spifi_wait_for_cmd
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SPIFI_CMD_FIELDFORM_ALL_SERIAL,4,2 ; @SPIFI_CMD_FIELDFORM_ALL_SERIAL
	.comm	_SPIFI_CMD_FRAMEFORM_OPCODE_ONLY,4,2 ; @SPIFI_CMD_FRAMEFORM_OPCODE_ONLY
	.comm	_SPIFI_CMD,8,3                  ; @SPIFI_CMD
	.comm	_SPIFI_DATA,8,3                 ; @SPIFI_DATA
	.no_dead_strip	_nxp_spifi_read_reg
.subsections_via_symbols
