	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mark_bbt_block_bad
_mark_bbt_block_bad:                    ## @mark_bbt_block_bad
	.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	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_BBT_BLOCK_WORN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, %esi
	callq	_bbt_mark_entry
	movb	(%rbx), %cl
	movl	%r12d, %esi
	shll	%cl, %esi
	movq	%rbx, %rdi
	callq	_nand_markbad_bbm
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r12d, %edx
	callq	_pr_warn
LBB0_2:
	movq	(%r15), %rax
	movslq	%r14d, %rcx
	movl	$-1, (%rax,%rcx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BBT_BLOCK_WORN,4,2             ## @BBT_BLOCK_WORN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nand_bbt: error %d while marking block %d bad\n"

	.no_dead_strip	_mark_bbt_block_bad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mark_bbt_block_bad
_mark_bbt_block_bad:                    ; @mark_bbt_block_bad
	.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	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _BBT_BLOCK_WORN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BBT_BLOCK_WORN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x3
	bl	_bbt_mark_entry
	ldr	w8, [x22]
	lsl	w1, w21, w8
	mov	x0, x22
	bl	_nand_markbad_bbm
	cbz	w0, LBB0_2
; %bb.1:
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x21
	bl	_pr_warn
LBB0_2:
	ldr	x8, [x20]
	mov	w9, #-1
	str	w9, [x8, w19, sxtw #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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BBT_BLOCK_WORN,4,2             ; @BBT_BLOCK_WORN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nand_bbt: error %d while marking block %d bad\n"

	.no_dead_strip	_mark_bbt_block_bad
.subsections_via_symbols
