	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_dma_callback
_bcm2835_dma_callback:                  ## @bcm2835_dma_callback
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_1
## %bb.5:
	movq	_BCM2835_DMA_CS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	%rax, %r14
	movq	_BCM2835_DMA_INT@GOTPCREL(%rip), %rax
	testq	%r14, (%rax)
	jne	LBB0_2
## %bb.6:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_1:
                                        ## implicit-def: $r14
LBB0_2:
	leaq	4(%rbx), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spin_lock_irqsave
	movq	_BCM2835_DMA_INT@GOTPCREL(%rip), %rax
	movq	_BCM2835_DMA_ACTIVE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	orq	(%rax), %rdi
	movq	_BCM2835_DMA_CS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.4:
	callq	_vchan_cyclic_callback
	jmp	LBB0_9
LBB0_7:
	movq	_BCM2835_DMA_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%rbx), %rdi
	callq	_vchan_cookie_complete
	movq	%rbx, %rdi
	callq	_bcm2835_dma_start_desc
LBB0_9:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_spin_unlock_irqrestore
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.comm	_BCM2835_DMA_CS,8,3             ## @BCM2835_DMA_CS
	.comm	_BCM2835_DMA_INT,8,3            ## @BCM2835_DMA_INT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_BCM2835_DMA_ACTIVE,8,3         ## @BCM2835_DMA_ACTIVE
	.comm	_BCM2835_DMA_ADDR,8,3           ## @BCM2835_DMA_ADDR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_bcm2835_dma_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_dma_callback
_bcm2835_dma_callback:                  ; @bcm2835_dma_callback
	.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, x1
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _IRQF_SHARED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQF_SHARED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _BCM2835_DMA_INT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _BCM2835_DMA_INT@GOTPAGEOFF]
Lloh5:
	adrp	x22, _BCM2835_DMA_CS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _BCM2835_DMA_CS@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl
	mov	x20, x0
	ldr	x8, [x23]
	tst	x8, x0
	b.ne	LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
                                        ; implicit-def: $x20
LBB0_4:
	add	x21, x19, #4
	mov	x0, x21
	mov	x1, x20
	bl	_spin_lock_irqsave
Lloh9:
	adrp	x8, _BCM2835_DMA_ACTIVE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BCM2835_DMA_ACTIVE@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh11:
	ldr	x8, [x8]
	orr	x0, x8, x9
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.5:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.6:
	bl	_vchan_cyclic_callback
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _BCM2835_DMA_ADDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BCM2835_DMA_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #8]
	bl	_vchan_cookie_complete
	mov	x0, x19
	bl	_bcm2835_dma_start_desc
LBB0_9:
	mov	x0, x21
	mov	x1, x20
	bl	_spin_unlock_irqrestore
Lloh15:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.comm	_BCM2835_DMA_CS,8,3             ; @BCM2835_DMA_CS
	.comm	_BCM2835_DMA_INT,8,3            ; @BCM2835_DMA_INT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_BCM2835_DMA_ACTIVE,8,3         ; @BCM2835_DMA_ACTIVE
	.comm	_BCM2835_DMA_ADDR,8,3           ; @BCM2835_DMA_ADDR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_bcm2835_dma_callback
.subsections_via_symbols
