	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_data_irq
_bcm2835_data_irq:                      ## @bcm2835_data_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 24(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	callq	_bcm2835_check_data_error
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_2
LBB0_7:
	movq	_SDHCFG_DATA_IRPT_EN@GOTPCREL(%rip), %rax
	movq	_SDHCFG_BLOCK_IRPT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	andl	(%rbx), %edi
	movl	%edi, (%rbx)
	movq	_SDHCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_2:
	movq	_MMC_DATA_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.6:
	movq	_SDHCFG_DATA_IRPT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	(%rbx), %edi
	movl	%edi, (%rbx)
	movq	_SDHCFG_BLOCK_IRPT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movl	%edi, (%rbx)
	movq	_SDHCFG@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bcm2835_transfer_pio           ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_bcm2835_transfer_pio
	decq	8(%rbx)
	je	LBB0_7
## %bb.4:
	movq	24(%rbx), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_7
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMC_DATA_WRITE,4,2             ## @MMC_DATA_WRITE
	.comm	_SDHCFG_DATA_IRPT_EN,4,2        ## @SDHCFG_DATA_IRPT_EN
	.comm	_SDHCFG_BLOCK_IRPT_EN,4,2       ## @SDHCFG_BLOCK_IRPT_EN
	.comm	_SDHCFG,8,3                     ## @SDHCFG
	.no_dead_strip	_bcm2835_data_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_data_irq
_bcm2835_data_irq:                      ; @bcm2835_data_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_bcm2835_check_data_error
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _SDHCFG_DATA_IRPT_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDHCFG_DATA_IRPT_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SDHCFG_BLOCK_IRPT_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SDHCFG_BLOCK_IRPT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19]
	bic	w0, w9, w8
	str	w0, [x19]
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _SDHCFG@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDHCFG@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
LBB0_3:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _MMC_DATA_WRITE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MMC_DATA_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _SDHCFG_DATA_IRPT_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SDHCFG_DATA_IRPT_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x9, _SDHCFG_BLOCK_IRPT_EN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SDHCFG_BLOCK_IRPT_EN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _SDHCFG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SDHCFG@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bcm2835_transfer_pio
LBB0_5:
	mov	x0, x19
	bl	_bcm2835_transfer_pio
	ldr	x8, [x19, #8]
	subs	x8, x8, #1
	str	x8, [x19, #8]
	b.eq	LBB0_2
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_2
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MMC_DATA_WRITE,4,2             ; @MMC_DATA_WRITE
	.comm	_SDHCFG_DATA_IRPT_EN,4,2        ; @SDHCFG_DATA_IRPT_EN
	.comm	_SDHCFG_BLOCK_IRPT_EN,4,2       ; @SDHCFG_BLOCK_IRPT_EN
	.comm	_SDHCFG,8,3                     ; @SDHCFG
	.no_dead_strip	_bcm2835_data_irq
.subsections_via_symbols
