	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_align_erase_size
_mmc_align_erase_size:                  ## @mmc_align_erase_size
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rsi), %r12d
	movl	(%rdi), %edi
	callq	_is_power_of_2
	movl	(%rbx), %esi
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_round_up
	movl	%eax, %r14d
	subl	%r12d, %eax
	xorl	%ecx, %ecx
	cmpl	%r13d, %eax
	jae	LBB0_10
## %bb.2:
	subl	%eax, %r13d
	movl	(%rbx), %esi
	movl	%r13d, %edi
	callq	_round_down
	movl	%eax, %ecx
	movl	%r14d, %r12d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_8
LBB0_9:
	leal	(%rcx,%r12), %eax
	movl	%eax, (%r14)
	movl	%r12d, (%r15)
	jmp	LBB0_10
LBB0_3:
	xorl	%ecx, %ecx
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
	testl	%edx, %edx
	je	LBB0_6
## %bb.4:
	movl	%esi, %eax
	subl	%edx, %eax
	cmpl	%r13d, %eax
	jae	LBB0_10
## %bb.5:
	addl	%eax, %r12d
	subl	%eax, %r13d
LBB0_6:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%esi
	subl	%edx, %r13d
	movl	%r13d, %ecx
	testl	%ecx, %ecx
	jne	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mmc_align_erase_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_align_erase_size
_mmc_align_erase_size:                  ; @mmc_align_erase_size
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	ldr	w21, [x1]
	ldr	w0, [x0]
	bl	_is_power_of_2
	ldr	w1, [x23]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_round_up
	sub	w8, w0, w21
	cmp	w8, w22
	b.hs	LBB0_8
; %bb.2:
	mov	x24, x0
	sub	w0, w22, w8
	ldr	w1, [x23]
	bl	_round_down
	mov	x21, x24
	cbnz	w0, LBB0_7
	b	LBB0_9
LBB0_3:
	udiv	w8, w21, w1
	msub	w8, w8, w1, w21
	cbz	w8, LBB0_6
; %bb.4:
	sub	w8, w1, w8
	cmp	w8, w22
	b.hs	LBB0_8
; %bb.5:
	add	w21, w8, w21
	sub	w22, w22, w8
LBB0_6:
	udiv	w8, w22, w1
	mul	w0, w8, w1
	cbz	w0, LBB0_9
LBB0_7:
	add	w8, w0, w21
	str	w8, [x20]
	str	w21, [x19]
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mmc_align_erase_size
.subsections_via_symbols
