	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_nor_spimem_check_op
_spi_nor_spimem_check_op:               ## @spi_nor_spimem_check_op
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$4, (%rsi)
	movl	(%rdi), %edi
	callq	_spi_mem_supports_op
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	8(%r15), %rax
	movq	_SZ_16M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_3
## %bb.2:
	movl	$3, (%rbx)
	movl	(%r15), %edi
	movq	%rbx, %rsi
	callq	_spi_mem_supports_op
	testl	%eax, %eax
	jne	LBB0_4
LBB0_3:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_16M,8,3                     ## @SZ_16M
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_spi_nor_spimem_check_op
.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_op
_spi_nor_spimem_check_op:               ; @spi_nor_spimem_check_op
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	mov	w8, #4
	str	w8, [x1]
	ldr	w0, [x0]
	bl	_spi_mem_supports_op
	cbz	w0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _SZ_16M@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SZ_16M@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_4
; %bb.3:
	mov	w8, #3
	str	w8, [x19]
	ldr	w0, [x20]
	mov	x1, x19
	bl	_spi_mem_supports_op
	cbnz	w0, LBB0_1
LBB0_4:
Lloh3:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_16M,8,3                     ; @SZ_16M
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_spi_nor_spimem_check_op
.subsections_via_symbols
