	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_erase_callback             ## -- Begin function mtd_erase_callback
	.p2align	4, 0x90
_mtd_erase_callback:                    ## @mtd_erase_callback
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movq	(%rdi), %rax
	movq	_part_erase@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	callq	_PART
	movq	(%rbx), %rcx
	movq	_MTD_FAIL_ADDR_UNKNOWN@GOTPCREL(%rip), %rdx
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	subq	%rax, %rcx
	movq	%rcx, (%rbx)
LBB0_3:
	subl	%eax, 16(%rbx)
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_part_erase,8,3                 ## @part_erase
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ## @MTD_FAIL_ADDR_UNKNOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mtd_erase_callback             ; -- Begin function mtd_erase_callback
	.p2align	2
_mtd_erase_callback:                    ; @mtd_erase_callback
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _part_erase@GOTPAGE
Lloh1:
	ldr	x9, [x9, _part_erase@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	bl	_PART
	ldr	x9, [x19]
Lloh3:
	adrp	x8, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MTD_FAIL_ADDR_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	ldr	x8, [x0]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
	sub	x9, x9, x8
	str	x9, [x19]
LBB0_3:
	ldr	w9, [x19, #16]
	sub	w8, w9, w8
	str	w8, [x19, #16]
LBB0_4:
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_part_erase,8,3                 ; @part_erase
	.comm	_MTD_FAIL_ADDR_UNKNOWN,8,3      ; @MTD_FAIL_ADDR_UNKNOWN
.subsections_via_symbols
