	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdhci_write_block_pio
_sdhci_write_block_pio:                 ## @sdhci_write_block_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	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	24(%r14), %rax
	movq	(%rax), %rbx
	callq	_local_irq_save
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.1:
	movq	%rbx, %rdx
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rsi
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rsi, %r12
	testq	%rdx, %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rdi
	movq	%rdx, %r15
	callq	_sg_miter_next
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	movl	16(%r14), %edi
	movq	%r15, %rsi
	callq	_min
	movq	%r15, %rdx
	subq	%rax, %rdx
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	8(%r14), %rdi
	leaq	-1(%rax), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%rdx, %r12
	movq	_SDHCI_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_sdhci_writel
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r14
	movq	%rsi, %r12
	cmpq	%r14, %r13
	je	LBB0_2
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rdi,%r14,8), %rsi
	leal	(,%rbx,8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rsi
	orq	%r12, %rsi
	incq	%rbx
	movq	%r15, %rax
	xorq	%r14, %rax
	orq	%rdx, %rax
	sete	%al
	cmpq	$4, %rbx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	testb	%al, %al
	je	LBB0_9
	jmp	LBB0_8
LBB0_10:
	movq	%r14, %rdi
	callq	_sg_miter_stop
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PIO writing\n"

	.comm	_SDHCI_BUFFER,4,2               ## @SDHCI_BUFFER
	.no_dead_strip	_sdhci_write_block_pio
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdhci_write_block_pio
_sdhci_write_block_pio:                 ; @sdhci_write_block_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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x8, [x19, #24]
	ldr	x20, [x8]
	bl	_local_irq_save
	cbz	x20, LBB0_9
; %bb.1:
	mov	x21, #0
	mov	x24, #0
Lloh2:
	adrp	x23, _SDHCI_BUFFER@GOTPAGE
Lloh3:
	ldr	x23, [x23, _SDHCI_BUFFER@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x20, LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x19
	bl	_sg_miter_next
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_min
	sub	x20, x20, x0
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x0
	ldr	x25, [x19, #8]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x21
	bl	_sdhci_writel
	mov	x24, #0
	mov	x21, #0
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	cbz	x22, LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x25], #8
	lsl	x9, x24, #3
	lsl	x8, x8, x9
	orr	x21, x8, x21
	add	x24, x24, #1
	subs	x22, x22, #1
	ccmp	x20, #0, #0, eq
	cset	w8, eq
	cmp	x24, #4
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	cbz	w8, LBB0_6
	b	LBB0_5
LBB0_9:
	mov	x0, x19
	bl	_sg_miter_stop
	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	_local_irq_restore
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PIO writing\n"

	.comm	_SDHCI_BUFFER,4,2               ; @SDHCI_BUFFER
	.no_dead_strip	_sdhci_write_block_pio
.subsections_via_symbols
