	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function au1xmmc_send_pio
_au1xmmc_send_pio:                      ## @au1xmmc_send_pio
	.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
	movq	_HOST_F_XMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	24(%r15), %rax
	movq	(%rax), %rbx
	shlq	$2, %rdi
	addq	(%rbx), %rdi
	callq	_sg_virt
	movq	%rax, %r14
	movl	16(%r15), %eax
	movq	(%rbx), %rcx
	movq	8(%r15), %rdx
	movl	(%rcx,%rdx,4), %esi
	subl	%eax, %esi
	movl	20(%r15), %ecx
	cmpl	%ecx, %esi
	movl	%ecx, %edi
	cmovll	%esi, %edi
	movq	_AU1XMMC_MAX_TRANSFER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %edi
	cmovgel	%edx, %edi
	testl	%edi, %edi
	jle	LBB0_2
## %bb.3:
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	cltq
	addq	%rax, %r14
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_HOST_STATUS
	movl	%eax, %edi
	callq	_au_readl
	movq	_SD_STATUS_TH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movzbl	(%r14,%r13), %ebx
	movq	%r15, %rdi
	callq	_HOST_TXPORT
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_au_writel
	xorl	%eax, %eax
	callq	_au_sync
	incq	%r13
	cmpl	%r13d, %r12d
	jne	LBB0_4
## %bb.6:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_8
LBB0_2:
	xorl	%edi, %edi
	jmp	LBB0_9
LBB0_7:
	movl	%r13d, %edi
LBB0_8:
	movl	16(%r15), %eax
	movl	20(%r15), %ecx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_9:
	movl	%ecx, %edx
	subl	%edi, %edx
	movl	%edx, 20(%r15)
	addl	%edi, %eax
	movl	%eax, 16(%r15)
	cmpl	%esi, %edi
	je	LBB0_10
## %bb.11:
	cmpl	%edi, %ecx
	jne	LBB0_15
LBB0_12:
	movq	_SD_CONFIG_TH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_IRQ_OFF
	movq	_HOST_F_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_SEND_STOP
LBB0_14:
	addq	$4, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_10:
	incq	8(%r15)
	movl	$0, 16(%r15)
	cmpl	%edi, %ecx
	je	LBB0_12
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_F_XMIT,4,2                ## @HOST_F_XMIT
	.comm	_AU1XMMC_MAX_TRANSFER,4,2       ## @AU1XMMC_MAX_TRANSFER
	.comm	_SD_STATUS_TH,4,2               ## @SD_STATUS_TH
	.comm	_SD_CONFIG_TH,4,2               ## @SD_CONFIG_TH
	.comm	_HOST_F_STOP,4,2                ## @HOST_F_STOP
	.no_dead_strip	_au1xmmc_send_pio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function au1xmmc_send_pio
_au1xmmc_send_pio:                      ; @au1xmmc_send_pio
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _HOST_F_XMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HOST_F_XMIT@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x20, [x8]
	ldr	x8, [x20]
	ldr	x9, [x0, #8]
	add	x0, x8, x9, lsl #2
	bl	_sg_virt
	ldr	x8, [x20]
	ldr	x9, [x19, #8]
	ldr	w10, [x8, x9, lsl #2]
	ldp	w9, w8, [x19, #16]
	sub	w21, w10, w9
	cmp	w21, w8
	csel	w10, w21, w8, lt
Lloh3:
	adrp	x11, _AU1XMMC_MAX_TRANSFER@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AU1XMMC_MAX_TRANSFER@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w10, w11
	csel	w22, w10, w11, lt
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	sxtw	x8, w9
	add	x24, x0, x8
Lloh6:
	adrp	x25, _SD_STATUS_TH@GOTPAGE
Lloh7:
	ldr	x25, [x25, _SD_STATUS_TH@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_HOST_STATUS
	bl	_au_readl
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w20, [x24, x23]
	mov	x0, x19
	bl	_HOST_TXPORT
	mov	x1, x0
	mov	x0, x20
	bl	_au_writel
	bl	_au_sync
	add	x23, x23, #1
	cmp	w22, w23
	b.ne	LBB0_3
	b	LBB0_7
LBB0_5:
	mov	w22, #0
	b	LBB0_8
LBB0_6:
	mov	x22, x23
LBB0_7:
	ldp	w9, w8, [x19, #16]
LBB0_8:
	sub	w10, w8, w22
	add	w9, w9, w22
	stp	w9, w10, [x19, #16]
	cmp	w22, w21
	b.ne	LBB0_10
; %bb.9:
	ldr	x9, [x19, #8]
	add	x9, x9, #1
	str	x9, [x19, #8]
	str	wzr, [x19, #16]
LBB0_10:
	cmp	w8, w22
	b.ne	LBB0_14
; %bb.11:
Lloh8:
	adrp	x8, _SD_CONFIG_TH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SD_CONFIG_TH@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_IRQ_OFF
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _HOST_F_STOP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HOST_F_STOP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_SEND_STOP
LBB0_13:
	add	x0, x19, #4
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_tasklet_schedule
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_F_XMIT,4,2                ; @HOST_F_XMIT
	.comm	_AU1XMMC_MAX_TRANSFER,4,2       ; @AU1XMMC_MAX_TRANSFER
	.comm	_SD_STATUS_TH,4,2               ; @SD_STATUS_TH
	.comm	_SD_CONFIG_TH,4,2               ; @SD_CONFIG_TH
	.comm	_HOST_F_STOP,4,2                ; @HOST_F_STOP
	.no_dead_strip	_au1xmmc_send_pio
.subsections_via_symbols
