	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pre_command
_pre_command:                           ## @pre_command
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	addq	$8, %rdi
	callq	_get_qcom_nand_controller
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$0, (%rbx)
	movl	%r15d, 4(%rbx)
	movq	%rax, %rdi
	callq	_clear_read_regs
	movq	_NAND_CMD_RESET@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.1:
	movq	_NAND_CMD_READID@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.2:
	movq	_NAND_CMD_PARAM@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_NAND_CMD_ERASE1@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clear_bam_transaction          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_RESET,4,2             ## @NAND_CMD_RESET
	.comm	_NAND_CMD_READID,4,2            ## @NAND_CMD_READID
	.comm	_NAND_CMD_PARAM,4,2             ## @NAND_CMD_PARAM
	.comm	_NAND_CMD_ERASE1,4,2            ## @NAND_CMD_ERASE1
	.no_dead_strip	_pre_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pre_command
_pre_command:                           ; @pre_command
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	add	x0, x0, #8
	bl	_get_qcom_nand_controller
	mov	x19, x0
	stp	xzr, xzr, [x0]
	stp	wzr, w20, [x21]
	bl	_clear_read_regs
Lloh0:
	adrp	x8, _NAND_CMD_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_RESET@GOTPAGEOFF]
Lloh2:
	adrp	x9, _NAND_CMD_READID@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NAND_CMD_READID@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NAND_CMD_PARAM@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NAND_CMD_PARAM@GOTPAGEOFF]
Lloh8:
	adrp	x11, _NAND_CMD_ERASE1@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NAND_CMD_ERASE1@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	ldr	w11, [x11]
	cmp	w8, w20
	ccmp	w9, w20, #4, ne
	ccmp	w10, w20, #4, ne
	ccmp	w11, w20, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_clear_bam_transaction
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_RESET,4,2             ; @NAND_CMD_RESET
	.comm	_NAND_CMD_READID,4,2            ; @NAND_CMD_READID
	.comm	_NAND_CMD_PARAM,4,2             ; @NAND_CMD_PARAM
	.comm	_NAND_CMD_ERASE1,4,2            ; @NAND_CMD_ERASE1
	.no_dead_strip	_pre_command
.subsections_via_symbols
