	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scan_write_bbt
_scan_write_bbt:                        ## @scan_write_bbt
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	callq	_nand_to_mtd
	movq	_MTD_OPS_PLACE_OOB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -40(%rbp)
	movq	$0, -48(%rbp)
	movl	(%rax), %ecx
	movl	%ecx, -56(%rbp)
	movq	%rbx, -64(%rbp)
	movq	%r14, -72(%rbp)
	movq	%r15, -80(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_mtd_write_oob
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_OPS_PLACE_OOB,4,2          ## @MTD_OPS_PLACE_OOB
	.no_dead_strip	_scan_write_bbt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scan_write_bbt
_scan_write_bbt:                        ; @scan_write_bbt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	bl	_nand_to_mtd
Lloh0:
	adrp	x8, _MTD_OPS_PLACE_OOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MTD_OPS_PLACE_OOB@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	str	xzr, [sp, #32]
	ldr	w8, [x0]
	str	w8, [sp, #24]
	stp	x19, x20, [sp, #8]
	str	x21, [sp]
	mov	x2, sp
	mov	x1, x22
	bl	_mtd_write_oob
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_OPS_PLACE_OOB,4,2          ; @MTD_OPS_PLACE_OOB
	.no_dead_strip	_scan_write_bbt
.subsections_via_symbols
