	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_nor_spimem_xfer_data
_spi_nor_spimem_xfer_data:              ## @spi_nor_spimem_xfer_data
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rsi), %rax
	movq	_SPI_MEM_DATA_IN@GOTPCREL(%rip), %r12
	xorl	%ecx, %ecx
	cmpq	(%r12), %rax
	setne	%cl
	movq	16(%rsi,%rcx,8), %r15
	movq	%r15, %rdi
	callq	_object_is_on_stack
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	8(%rbx), %edx
	movl	(%r14), %eax
	cmpl	%eax, %edx
	jle	LBB0_5
## %bb.4:
	movl	%eax, 8(%rbx)
	movl	%eax, %edx
LBB0_5:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_7
## %bb.6:
	movq	16(%rbx), %r15
	movq	8(%r14), %rax
	movq	%rax, 16(%rbx)
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_7:
	movq	8(%r14), %rdi
	movq	%rdi, 24(%rbx)
	movq	%r15, %rsi
	callq	_memcpy
	xorl	%r13d, %r13d
	jmp	LBB0_8
LBB0_1:
	movq	%r15, %rdi
	callq	_virt_addr_valid
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movb	$1, %r13b
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_spi_mem_adjust_op_size
	testl	%eax, %eax
	jne	LBB0_15
## %bb.10:
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_spi_mem_exec_op
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	testb	%r13b, %r13b
	jne	LBB0_14
## %bb.12:
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jne	LBB0_14
## %bb.13:
	movq	8(%r14), %rsi
	movl	8(%rbx), %edx
	movq	%r15, %rdi
	callq	_memcpy
LBB0_14:
	movl	8(%rbx), %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MEM_DATA_IN,8,3            ## @SPI_MEM_DATA_IN
	.no_dead_strip	_spi_nor_spimem_xfer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_nor_spimem_xfer_data
_spi_nor_spimem_xfer_data:              ; @spi_nor_spimem_xfer_data
	.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, x1
	mov	x20, x0
	ldr	x8, [x1]
Lloh0:
	adrp	x22, _SPI_MEM_DATA_IN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SPI_MEM_DATA_IN@GOTPAGEOFF]
	ldr	x9, [x22]
	mov	w10, #24
	mov	w11, #16
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	x21, [x1, x8]
	mov	x0, x21
	bl	_object_is_on_stack
	cbz	x0, LBB0_6
LBB0_1:
	ldr	w2, [x19, #8]
	ldr	w8, [x20]
	cmp	w2, w8
	b.le	LBB0_3
; %bb.2:
	str	w8, [x19, #8]
	mov	x2, x8
LBB0_3:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	mov	w23, #0
	ldr	x21, [x19, #16]
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	b	LBB0_8
LBB0_5:
	ldr	x0, [x20, #8]
	str	x0, [x19, #24]
	mov	x1, x21
	bl	_memcpy
	mov	w23, #0
	mov	x21, #0
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_virt_addr_valid
	cbz	w0, LBB0_1
; %bb.7:
	mov	x21, #0
	mov	w23, #1
LBB0_8:
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_spi_mem_adjust_op_size
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	w0, [x20, #16]
	mov	x1, x19
	bl	_spi_mem_exec_op
	cbnz	w0, LBB0_14
; %bb.10:
	tbnz	w23, #0, LBB0_13
; %bb.11:
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	ldr	x1, [x20, #8]
	ldr	w2, [x19, #8]
	mov	x0, x21
	bl	_memcpy
LBB0_13:
	ldr	w0, [x19, #8]
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MEM_DATA_IN,8,3            ; @SPI_MEM_DATA_IN
	.no_dead_strip	_spi_nor_spimem_xfer_data
.subsections_via_symbols
