	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_test_multi_write
_mmc_test_multi_write:                  ## @mmc_test_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -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	$1023, %eax                     ## imm = 0x3FF
	ja	LBB0_3
LBB0_1:
	movq	_RESULT_UNSUP_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movl	%eax, %r14d
	movl	(%rbx), %esi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_sg_init_one
	shrl	$9, %r14d
	movl	$1, (%rsp)
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	movl	$512, %r9d                      ## imm = 0x200
	callq	_mmc_test_transfer
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESULT_UNSUP_HOST,4,2          ## @RESULT_UNSUP_HOST
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_mmc_test_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_multi_write
_mmc_test_multi_write:                  ; @mmc_test_multi_write
	.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
	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, #1023
	b.hi	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _RESULT_UNSUP_HOST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RESULT_UNSUP_HOST@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_4
LBB0_3:
	mov	x20, x0
	ldr	w1, [x19]
	add	x0, sp, #8
	mov	x2, x20
	bl	_sg_init_one
	lsr	w4, w20, #9
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w5, #512
	mov	w6, #1
	bl	_mmc_test_transfer
LBB0_4:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RESULT_UNSUP_HOST,4,2          ; @RESULT_UNSUP_HOST
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_mmc_test_multi_write
.subsections_via_symbols
