	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mmc_omap_xfer_data
_mmc_omap_xfer_data:                    ## @mmc_omap_xfer_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	(%rdi), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	8(%r12), %rax
	incq	%rax
	movq	%rax, 8(%r12)
	xorl	%edi, %edi
	cmpq	16(%r12), %rax
	sete	%dil
	callq	_BUG_ON
	movq	%r12, %rdi
	callq	_mmc_omap_sg_to_buf
	movl	(%r12), %eax
LBB0_2:
	cmpl	$64, %eax
	movl	$64, %ebx
	cmovll	%eax, %ebx
	movl	%ebx, %edi
	movl	$2, %esi
	callq	_DIV_ROUND_UP
	subl	%ebx, (%r12)
	subl	%ebx, 24(%r12)
	movq	40(%r12), %rcx
	addl	%ebx, (%rcx)
	movl	%eax, %r15d
	movq	32(%r12), %rbx
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_OMAP_MMC_REG
	addq	%rbx, %rax
	movl	28(%r12), %esi
	movq	%rax, %rdi
	movl	%r15d, %edx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	callq	___raw_writesw
	jmp	LBB0_5
LBB0_4:
	callq	___raw_readsw
LBB0_5:
	addl	%r15d, 28(%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA,4,2                       ## @DATA
	.no_dead_strip	_mmc_omap_xfer_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mmc_omap_xfer_data
_mmc_omap_xfer_data:                    ; @mmc_omap_xfer_data
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	x8, x9, [x19, #8]
	add	x8, x8, #1
	str	x8, [x19, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x19
	bl	_mmc_omap_sg_to_buf
	ldr	w8, [x19]
LBB0_2:
	mov	w9, #64
	cmp	w8, #64
	csel	w22, w8, w9, lt
	mov	x0, x22
	mov	w1, #2
	bl	_DIV_ROUND_UP
	mov	x21, x0
	ldr	w8, [x19]
	sub	w8, w8, w22
	str	w8, [x19]
	ldr	w8, [x19, #24]
	sub	w8, w8, w22
	str	w8, [x19, #24]
	ldp	x23, x8, [x19, #32]
	ldr	w9, [x8]
	add	w9, w9, w22
	str	w9, [x8]
Lloh0:
	adrp	x8, _DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_OMAP_MMC_REG
	add	x0, x0, x23
	ldr	w1, [x19, #28]
	mov	x2, x21
	cbz	w20, LBB0_4
; %bb.3:
	bl	___raw_writesw
	b	LBB0_5
LBB0_4:
	bl	___raw_readsw
LBB0_5:
	ldr	w8, [x19, #28]
	add	w8, w8, w21
	str	w8, [x19, #28]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA,4,2                       ; @DATA
	.no_dead_strip	_mmc_omap_xfer_data
.subsections_via_symbols
