	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_erase_block                ## -- Begin function mtd_erase_block
	.p2align	4, 0x90
_mtd_erase_block:                       ## @mtd_erase_block
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movl	%esi, -24(%rbp)
	movq	_erasesize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -20(%rbp)
	movq	_MEMUNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-24(%rbp), %r14
	movq	%r14, %rdx
	callq	_ioctl
	movq	_MEMERASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movq	%r14, %rdx
	callq	_ioctl
	sarq	$63, %rax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_erasesize,4,2                  ## @erasesize
	.comm	_MEMUNLOCK,4,2                  ## @MEMUNLOCK
	.comm	_MEMERASE,4,2                   ## @MEMERASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_erase_block                ; -- Begin function mtd_erase_block
	.p2align	2
_mtd_erase_block:                       ; @mtd_erase_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _erasesize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _erasesize@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	w1, w8, [sp, #8]
Lloh3:
	adrp	x8, _MEMUNLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMUNLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
Lloh6:
	adrp	x8, _MEMERASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEMERASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	asr	x0, x0, #63
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_erasesize,4,2                  ; @erasesize
	.comm	_MEMUNLOCK,4,2                  ; @MEMUNLOCK
	.comm	_MEMERASE,4,2                   ; @MEMERASE
.subsections_via_symbols
