	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_disable
_write_disable:                         ## @write_disable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_SPINOR_OP_WRDI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_SPI_MEM_OP_CMD
	movq	_SPI_MEM_OP_NO_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_SPI_MEM_OP_NO_DUMMY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_SPI_MEM_OP_NO_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_SPI_MEM_OP
	movl	%eax, -16(%rbp)
	movq	8(%rbx), %rdi
	leaq	-16(%rbp), %rsi
	callq	_spi_mem_exec_op
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	(%rbx), %rax
	movq	_SPINOR_OP_WRDI@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPINOR_OP_WRDI,4,2             ## @SPINOR_OP_WRDI
	.comm	_SPI_MEM_OP_NO_ADDR,4,2         ## @SPI_MEM_OP_NO_ADDR
	.comm	_SPI_MEM_OP_NO_DUMMY,4,2        ## @SPI_MEM_OP_NO_DUMMY
	.comm	_SPI_MEM_OP_NO_DATA,4,2         ## @SPI_MEM_OP_NO_DATA
	.no_dead_strip	_write_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_disable
_write_disable:                         ; @write_disable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _SPINOR_OP_WRDI@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPINOR_OP_WRDI@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_SPI_MEM_OP_CMD
Lloh3:
	adrp	x8, _SPI_MEM_OP_NO_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPI_MEM_OP_NO_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _SPI_MEM_OP_NO_DUMMY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SPI_MEM_OP_NO_DUMMY@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _SPI_MEM_OP_NO_DATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SPI_MEM_OP_NO_DATA@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_SPI_MEM_OP
	str	w0, [sp, #8]
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	_spi_mem_exec_op
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_2:
Lloh12:
	adrp	x8, _SPINOR_OP_WRDI@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPINOR_OP_WRDI@GOTPAGEOFF]
	ldr	x4, [x19]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	br	x4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SPINOR_OP_WRDI,4,2             ; @SPINOR_OP_WRDI
	.comm	_SPI_MEM_OP_NO_ADDR,4,2         ; @SPI_MEM_OP_NO_ADDR
	.comm	_SPI_MEM_OP_NO_DUMMY,4,2        ; @SPI_MEM_OP_NO_DUMMY
	.comm	_SPI_MEM_OP_NO_DATA,4,2         ; @SPI_MEM_OP_NO_DATA
	.no_dead_strip	_write_disable
.subsections_via_symbols
