	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function execmd_read_oob
_execmd_read_oob:                       ## @execmd_read_oob
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_mtd_to_flctl
	movq	%rax, %rbx
	movq	_NAND_CMD_READ0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NAND_CMD_READSTART@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$8, %edx
	orl	%esi, %edx
	movq	%r15, %rdi
	callq	_set_cmd_regs
	movq	%rbx, %rdi
	callq	_empty_fifo
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.memset_pattern(%rip), %rsi
	movl	$192, %edx
	callq	_memset_pattern16
	movl	$48, %r12d
	movl	$2096, %esi                     ## imm = 0x830
	jmp	LBB0_3
LBB0_1:
	xorl	%r12d, %r12d
	movl	$512, %esi                      ## imm = 0x200
LBB0_3:
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_set_addr
	movq	%rbx, %rdi
	callq	_FLDTCNTR
	movl	$16, %edi
	movl	%eax, %esi
	callq	_writel
	movq	%rbx, %rdi
	callq	_start_translation
	movq	%rbx, %rdi
	movl	$16, %esi
	movl	%r12d, %edx
	callq	_read_fiforeg
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wait_completion                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NAND_CMD_READ0,4,2             ## @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ## @NAND_CMD_READSTART
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	255                             ## 0xff

	.no_dead_strip	_execmd_read_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function execmd_read_oob
_execmd_read_oob:                       ; @execmd_read_oob
	.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
	bl	_mtd_to_flctl
	mov	x19, x0
Lloh0:
	adrp	x8, _NAND_CMD_READ0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NAND_CMD_READ0@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NAND_CMD_READSTART@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NAND_CMD_READSTART@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w1, w8, lsl #8
	mov	x0, x21
	bl	_set_cmd_regs
	mov	x0, x19
	bl	_empty_fifo
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.memset_pattern@PAGE
Lloh7:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	w2, #192
	bl	_memset_pattern16
	mov	w22, #48
	mov	w1, #2096
	b	LBB0_3
LBB0_2:
	mov	w22, #0
	mov	w1, #512
LBB0_3:
	mov	x0, x21
	mov	x2, x20
	bl	_set_addr
	mov	x0, x19
	bl	_FLDTCNTR
	mov	x1, x0
	mov	w0, #16
	bl	_writel
	mov	x0, x19
	bl	_start_translation
	mov	x0, x19
	mov	w1, #16
	mov	x2, x22
	bl	_read_fiforeg
	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	_wait_completion
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NAND_CMD_READ0,4,2             ; @NAND_CMD_READ0
	.comm	_NAND_CMD_READSTART,4,2         ; @NAND_CMD_READSTART
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	255                             ; 0xff

	.no_dead_strip	_execmd_read_oob
.subsections_via_symbols
