	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_eraseblock
_write_eraseblock:                      ## @write_eraseblock
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_mtd@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	(%rax), %edx
	imull	%edx, %ebx
	movq	_writebuf@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_rnd_state@GOTPCREL(%rip), %rdi
	callq	_prandom_bytes_state
	xorl	%eax, %eax
	callq	_cond_resched
	movq	(%r14), %rdi
	movl	(%rdi), %edx
	movl	(%r15), %ecx
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtdtest_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mtd,8,3                        ## @mtd
	.comm	_rnd_state,4,2                  ## @rnd_state
	.comm	_writebuf,4,2                   ## @writebuf
	.no_dead_strip	_write_eraseblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_eraseblock
_write_eraseblock:                      ; @write_eraseblock
	.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
Lloh0:
	adrp	x20, _mtd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _mtd@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w2, [x8]
	mul	w19, w2, w0
Lloh2:
	adrp	x21, _writebuf@GOTPAGE
Lloh3:
	ldr	x21, [x21, _writebuf@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh4:
	adrp	x0, _rnd_state@GOTPAGE
Lloh5:
	ldr	x0, [x0, _rnd_state@GOTPAGEOFF]
	bl	_prandom_bytes_state
	bl	_cond_resched
	ldr	x0, [x20]
	ldr	w2, [x0]
	ldr	w3, [x21]
	mov	x1, x19
	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
	b	_mtdtest_write
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_mtd,8,3                        ; @mtd
	.comm	_rnd_state,4,2                  ; @rnd_state
	.comm	_writebuf,4,2                   ; @writebuf
	.no_dead_strip	_write_eraseblock
.subsections_via_symbols
