	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_nor_spimem_check_readop
_spi_nor_spimem_check_readop:           ## @spi_nor_spimem_check_readop
	.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	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rsi), %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_CMD
	movl	%eax, %r12d
	movl	$3, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPI_MEM_OP_ADDR
	movl	%eax, %r13d
	xorl	%edi, %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_DUMMY
	movl	%eax, %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_SPI_MEM_OP_DATA_IN
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_SPI_MEM_OP
	movl	8(%rbx), %edi
	callq	_spi_nor_get_protocol_inst_nbits
	movl	%eax, -48(%rbp)
	movl	8(%rbx), %edi
	callq	_spi_nor_get_protocol_addr_nbits
	movl	%eax, -56(%rbp)
	movl	8(%rbx), %edi
	callq	_spi_nor_get_protocol_data_nbits
	movl	%eax, -52(%rbp)
	movl	-56(%rbp), %eax
	movl	%eax, -64(%rbp)
	movl	4(%rbx), %ecx
	addl	(%rbx), %ecx
	imull	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	movl	%eax, -60(%rbp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_spi_nor_spimem_check_op
	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_check_readop
.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_check_readop
_spi_nor_spimem_check_readop:           ; @spi_nor_spimem_check_readop
	.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, x1
	mov	x19, x0
	ldr	w0, [x1, #12]
	mov	w1, #1
	bl	_SPI_MEM_OP_CMD
	mov	x21, x0
	mov	w0, #3
	mov	w1, #0
	mov	w2, #1
	bl	_SPI_MEM_OP_ADDR
	mov	x22, x0
	mov	w0, #0
	mov	w1, #1
	bl	_SPI_MEM_OP_DUMMY
	mov	x23, x0
	mov	w0, #0
	mov	x1, #0
	mov	w2, #1
	bl	_SPI_MEM_OP_DATA_IN
	mov	x3, x0
	add	x8, sp, #8
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_SPI_MEM_OP
	ldr	w0, [x20, #8]
	bl	_spi_nor_get_protocol_inst_nbits
	str	w0, [sp, #24]
	ldr	w0, [x20, #8]
	bl	_spi_nor_get_protocol_addr_nbits
	str	w0, [sp, #16]
	ldr	w0, [x20, #8]
	bl	_spi_nor_get_protocol_data_nbits
	str	w0, [sp, #20]
	ldr	w8, [sp, #16]
	ldp	w9, w10, [x20]
	add	w9, w10, w9
	mul	w9, w9, w8
	add	w10, w9, #7
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #3
	stp	w8, w9, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_spi_nor_spimem_check_op
	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_check_readop
.subsections_via_symbols
