	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_block_markbad              ## -- Begin function mtd_block_markbad
	.p2align	4, 0x90
_mtd_block_markbad:                     ## @mtd_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
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	testq	%rsi, %rsi
	js	LBB0_5
## %bb.4:
	cmpq	%rsi, 8(%rdi)
	jle	LBB0_5
## %bb.6:
	movq	_MTD_WRITEABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 16(%rdi)
	je	LBB0_7
## %bb.8:
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_EROFS@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MTD_WRITEABLE,4,2              ## @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ## @EROFS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_block_markbad              ; -- Begin function mtd_block_markbad
	.p2align	2
_mtd_block_markbad:                     ; @mtd_block_markbad
	.cfi_startproc
; %bb.0:
	ldr	x2, [x0]
	cbz	x2, LBB0_6
; %bb.1:
	tbnz	x1, #63, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.le	LBB0_5
; %bb.3:
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _MTD_WRITEABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MTD_WRITEABLE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	br	x2
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh5:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_8:
Lloh7:
	adrp	x8, _EROFS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EROFS@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MTD_WRITEABLE,4,2              ; @MTD_WRITEABLE
	.comm	_EROFS,4,2                      ; @EROFS
.subsections_via_symbols
