	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dwcmshc_adma_write_desc
_dwcmshc_adma_write_desc:               ## @dwcmshc_adma_write_desc
	.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	%r8d, %r14d
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_BOUNDARY_OK
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	movl	$1, %edi
LBB0_3:
	callq	_likely
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	jmp	LBB0_5
LBB0_6:
	movq	_SZ_128M@GOTPCREL(%rip), %rax
	movl	%r14d, %r8d
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	(%rax), %r14d
	leal	-1(%r14), %eax
	andl	%r15d, %eax
	subl	%eax, %r14d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_sdhci_adma_write_desc
	addl	%r14d, %r15d
	subl	%r14d, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdhci_adma_write_desc          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SZ_128M,4,2                    ## @SZ_128M
	.no_dead_strip	_dwcmshc_adma_write_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dwcmshc_adma_write_desc
_dwcmshc_adma_write_desc:               ; @dwcmshc_adma_write_desc
	.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	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	cbz	w3, LBB0_3
; %bb.1:
	mov	x0, x22
	mov	x1, x20
	bl	_BOUNDARY_OK
	cmp	x0, #0
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x20
	b	LBB0_5
LBB0_3:
	mov	w0, #1
	bl	_likely
	cbnz	x0, LBB0_2
LBB0_4:
Lloh0:
	adrp	x8, _SZ_128M@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SZ_128M@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sub	w9, w8, #1
	and	w9, w9, w22
	sub	w24, w8, w9
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	mov	x3, x24
	mov	x4, x19
	bl	_sdhci_adma_write_desc
	add	w2, w24, w22
	sub	w3, w20, w24
	mov	x0, x23
	mov	x1, x21
LBB0_5:
	mov	x4, x19
	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
	b	_sdhci_adma_write_desc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SZ_128M,4,2                    ; @SZ_128M
	.no_dead_strip	_dwcmshc_adma_write_desc
.subsections_via_symbols
