	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_align_multi_write
_mmc_test_align_multi_write:            ## @mmc_test_align_multi_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	addl	%edi, %edi
	movl	4(%rax), %esi
	callq	_min
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	8(%rcx), %esi
	movl	%eax, %edi
	callq	_min
	movq	8(%rbx), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx), %esi
	shll	$9, %esi
	movl	%eax, %edi
	callq	_min
	cmpl	$1024, %eax                     ## imm = 0x400
	jae	LBB0_3
LBB0_1:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %r14d
	movq	_TEST_ALIGN_END@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$2, (%rcx)
	jl	LBB0_8
## %bb.4:
	movl	%r14d, %r15d
	shrl	$9, %r15d
	movl	$1, %r13d
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	addq	%r13, %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_sg_init_one
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	movl	$512, %r9d                      ## imm = 0x200
	callq	_mmc_test_transfer
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	movq	_TEST_ALIGN_END@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jl	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_RESULT_UNSUP_HOST,4,2          ## @RESULT_UNSUP_HOST
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_TEST_ALIGN_END,4,2             ## @TEST_ALIGN_END
	.no_dead_strip	_mmc_test_align_multi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_test_align_multi_write
_mmc_test_align_multi_write:            ; @mmc_test_align_multi_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	w0, w9, #1
	ldr	w1, [x8, #4]
	bl	_min
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, #8]
	bl	_min
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	lsl	w1, w8, #9
	bl	_min
	cmp	w0, #1024
	b.hs	LBB0_4
LBB0_2:
Lloh3:
	adrp	x8, _RESULT_UNSUP_HOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESULT_UNSUP_HOST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
Lloh6:
	adrp	x22, _TEST_ALIGN_END@GOTPAGE
Lloh7:
	ldr	x22, [x22, _TEST_ALIGN_END@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.5:
	mov	x20, x0
	lsr	w21, w0, #9
	mov	w23, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	add	x1, x23, x8
	add	x0, sp, #8
	mov	x2, x20
	bl	_sg_init_one
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	x4, x21
	mov	w5, #512
	mov	w6, #1
	bl	_mmc_test_transfer
	cbnz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.lt	LBB0_6
LBB0_8:
	mov	w0, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RESULT_UNSUP_HOST,4,2          ; @RESULT_UNSUP_HOST
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_TEST_ALIGN_END,4,2             ; @TEST_ALIGN_END
	.no_dead_strip	_mmc_test_align_multi_write
.subsections_via_symbols
