	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_check_wp
_nand_check_wp:                         ## @nand_check_wp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_NAND_BROKEN_XD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_3
## %bb.1:
	leaq	-4(%rbp), %rsi
	callq	_nand_status_op
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_NAND_STATUS_WP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, -4(%rbp)
	sete	%al
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_BROKEN_XD,4,2             ## @NAND_BROKEN_XD
	.comm	_NAND_STATUS_WP,4,2             ## @NAND_STATUS_WP
	.no_dead_strip	_nand_check_wp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_check_wp
_nand_check_wp:                         ; @nand_check_wp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NAND_BROKEN_XD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NAND_BROKEN_XD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
	sub	x1, x29, #4
	bl	_nand_status_op
	cbnz	w0, LBB0_4
; %bb.3:
	ldur	w8, [x29, #-4]
Lloh3:
	adrp	x9, _NAND_STATUS_WP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAND_STATUS_WP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_BROKEN_XD,4,2             ; @NAND_BROKEN_XD
	.comm	_NAND_STATUS_WP,4,2             ; @NAND_STATUS_WP
	.no_dead_strip	_nand_check_wp
.subsections_via_symbols
