	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nand_fill_oob
_nand_fill_oob:                         ## @nand_fill_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_nand_to_mtd
	movq	%rax, %r13
	movq	(%rbx), %rdi
	movl	(%rax), %edx
	movl	$255, %esi
	callq	_memset
	movl	(%r12), %eax
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.5:
	movq	8(%r12), %rdi
	addq	(%rbx), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_memcpy
	leaq	(%r15,%r14,4), %rbx
	jmp	LBB0_4
LBB0_1:
	cmpl	$130, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%rbx), %rdx
	movq	8(%r12), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %r8
	callq	_mtd_ooblayout_set_databytes
	movl	%eax, %edi
	callq	_BUG_ON
	leaq	(%r15,%r14,4), %rbx
	jmp	LBB0_4
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_BUG
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nand_fill_oob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nand_fill_oob
_nand_fill_oob:                         ; @nand_fill_oob
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	bl	_nand_to_mtd
	mov	x23, x0
	ldr	x0, [x22]
	ldr	w2, [x23]
	mov	w1, #255
	bl	_memset
	ldr	w8, [x21]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x22]
	ldr	x9, [x21, #8]
	add	x0, x9, x8
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x0, x20, x19, lsl #2
	b	LBB0_5
LBB0_2:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
	ldr	x2, [x22]
	ldr	x3, [x21, #8]
	mov	x0, x23
	mov	x1, x20
	mov	x4, x19
	bl	_mtd_ooblayout_set_databytes
	bl	_BUG_ON
	add	x0, x20, x19, lsl #2
	b	LBB0_5
LBB0_4:
	bl	_BUG
	mov	x0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nand_fill_oob
.subsections_via_symbols
