	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function onenand_default_block_markbad
_onenand_default_block_markbad:         ## @onenand_default_block_markbad
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %rdi
	movq	(%rdi), %r15
	movq	$0, -32(%rbp)
	movq	$2, -56(%rbp)
	leaq	-32(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	_MTD_OOB_PLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	callq	_onenand_block
                                        ## kill: def $eax killed $eax def $rax
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	leal	(%rax,%rax), %ecx
	andb	$6, %cl
	movl	$1, %esi
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %esi
	sarl	$2, %eax
	cltq
	orl	%esi, (%rdx,%rax,4)
LBB0_2:
	movl	8(%r15), %eax
	andl	$-2, %eax
	addl	(%r14), %ebx
	addl	%eax, %ebx
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_onenand_write_oob_nolock
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTD_OOB_PLACE,4,2              ## @MTD_OOB_PLACE
	.no_dead_strip	_onenand_default_block_markbad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function onenand_default_block_markbad
lCPI0_0:
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_onenand_default_block_markbad:         ; @onenand_default_block_markbad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x0, [x0, #8]
	ldr	x21, [x0]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp]
	add	x8, sp, #24
	str	x8, [sp, #8]
Lloh2:
	adrp	x8, _MTD_OOB_PLACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MTD_OOB_PLACE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	bl	_onenand_block
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ubfiz	w9, w0, #1, #2
	mov	w10, #1
	lsl	w9, w10, w9
	asr	w10, w0, #2
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x8, x10]
	orr	w9, w11, w9
	str	w9, [x8, x10]
LBB0_2:
	ldr	w8, [x19]
	ldr	w9, [x21, #8]
	and	w9, w9, #0xfffffffe
	add	w8, w8, w20
	add	w1, w8, w9
	mov	x2, sp
	mov	x0, x19
	bl	_onenand_write_oob_nolock
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MTD_OOB_PLACE,4,2              ; @MTD_OOB_PLACE
	.no_dead_strip	_onenand_default_block_markbad
.subsections_via_symbols
