	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_nor_spimem_read_data
_spi_nor_spimem_read_data:              ## @spi_nor_spimem_read_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_CMD
	movl	%eax, %r13d
	movl	8(%rbx), %edi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_SPI_MEM_OP_ADDR
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_DUMMY
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$1, %edx
	callq	_SPI_MEM_OP_DATA_IN
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_SPI_MEM_OP
	movl	4(%rbx), %edi
	callq	_spi_nor_get_protocol_inst_nbits
	movl	%eax, -48(%rbp)
	movl	4(%rbx), %edi
	callq	_spi_nor_get_protocol_addr_nbits
	movl	%eax, -52(%rbp)
	movl	%eax, -64(%rbp)
	movl	4(%rbx), %edi
	callq	_spi_nor_get_protocol_data_nbits
	movl	%eax, -56(%rbp)
	movl	-64(%rbp), %eax
	imull	(%rbx), %eax
	leal	7(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$3, %ecx
	movl	%ecx, -60(%rbp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_spi_nor_spimem_xfer_data
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_spi_nor_spimem_read_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_read_data
_spi_nor_spimem_read_data:              ; @spi_nor_spimem_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	mov	w1, #1
	bl	_SPI_MEM_OP_CMD
	mov	x23, x0
	ldr	w0, [x19, #8]
	mov	x1, x22
	mov	w2, #1
	bl	_SPI_MEM_OP_ADDR
	mov	x22, x0
	ldr	w0, [x19]
	mov	w1, #1
	bl	_SPI_MEM_OP_DUMMY
	mov	x24, x0
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_SPI_MEM_OP_DATA_IN
	mov	x3, x0
	add	x8, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_SPI_MEM_OP
	ldr	w0, [x19, #4]
	bl	_spi_nor_get_protocol_inst_nbits
	str	w0, [sp, #24]
	ldr	w0, [x19, #4]
	bl	_spi_nor_get_protocol_addr_nbits
	str	w0, [sp, #20]
	str	w0, [sp, #8]
	ldr	w0, [x19, #4]
	bl	_spi_nor_get_protocol_data_nbits
	ldr	w8, [x19]
	ldr	w9, [sp, #8]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #3
	stp	w8, w0, [sp, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_spi_nor_spimem_xfer_data
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_spi_nor_spimem_read_data
.subsections_via_symbols
