	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spinand_init_quad_enable
_spinand_init_quad_enable:              ## @spinand_init_quad_enable
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_SPINAND_HAS_QE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	24(%rdi), %rax
	cmpl	$4, (%rax)
	je	LBB0_4
## %bb.2:
	movq	16(%rdi), %rax
	cmpl	$4, (%rax)
	je	LBB0_4
## %bb.3:
	movq	8(%rdi), %rax
	cmpl	$4, (%rax)
	jne	LBB0_5
LBB0_4:
	movq	_CFG_QUAD_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	popq	%rbp
	jmp	_spinand_upd_cfg                ## TAILCALL
LBB0_7:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	movq	_CFG_QUAD_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	popq	%rbp
	jmp	_spinand_upd_cfg                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SPINAND_HAS_QE_BIT,4,2         ## @SPINAND_HAS_QE_BIT
	.comm	_CFG_QUAD_ENABLE,4,2            ## @CFG_QUAD_ENABLE
	.no_dead_strip	_spinand_init_quad_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spinand_init_quad_enable
_spinand_init_quad_enable:              ; @spinand_init_quad_enable
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SPINAND_HAS_QE_BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPINAND_HAS_QE_BIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #4
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cmp	w8, #4
	b.ne	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _CFG_QUAD_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CFG_QUAD_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x1
	b	_spinand_upd_cfg
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	mov	w2, #0
Lloh6:
	adrp	x8, _CFG_QUAD_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CFG_QUAD_ENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	_spinand_upd_cfg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPINAND_HAS_QE_BIT,4,2         ; @SPINAND_HAS_QE_BIT
	.comm	_CFG_QUAD_ENABLE,4,2            ; @CFG_QUAD_ENABLE
	.no_dead_strip	_spinand_init_quad_enable
.subsections_via_symbols
