	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_frame_irq
_cafe_frame_irq:                        ## @cafe_frame_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_REG_IRQSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FRAMEIRQS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cafe_reg_write
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_IRQ_EOF0@GOTPCREL(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	testl	%r14d, %edx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_cafe_frame_complete
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	movq	_IRQ_SOF0@GOTPCREL(%rip), %rax
	movq	_IRQ_SOF1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_IRQ_SOF2@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_6
## %bb.7:
	movq	_CF_DMA_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %r15
	movq	%r15, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_IRQSTAT,4,2                ## @REG_IRQSTAT
	.comm	_FRAMEIRQS,4,2                  ## @FRAMEIRQS
	.comm	_IRQ_EOF0,4,2                   ## @IRQ_EOF0
	.comm	_IRQ_SOF0,4,2                   ## @IRQ_SOF0
	.comm	_IRQ_SOF1,4,2                   ## @IRQ_SOF1
	.comm	_IRQ_SOF2,4,2                   ## @IRQ_SOF2
	.comm	_CF_DMA_ACTIVE,4,2              ## @CF_DMA_ACTIVE
	.no_dead_strip	_cafe_frame_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_frame_irq
_cafe_frame_irq:                        ; @cafe_frame_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _REG_IRQSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_IRQSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _FRAMEIRQS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRAMEIRQS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_cafe_reg_write
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	mov	w21, #0
Lloh6:
	adrp	x22, _IRQ_EOF0@GOTPAGE
Lloh7:
	ldr	x22, [x22, _IRQ_EOF0@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	cmp	w21, w8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x22]
	lsl	w9, w9, w21
	tst	w9, w20
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_cafe_frame_complete
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
Lloh8:
	adrp	x8, _IRQ_SOF0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_SOF0@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _IRQ_SOF1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IRQ_SOF1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh14:
	adrp	x9, _IRQ_SOF2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IRQ_SOF2@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x8, _CF_DMA_ACTIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CF_DMA_ACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	add	x1, x19, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_set_bit
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_IRQSTAT,4,2                ; @REG_IRQSTAT
	.comm	_FRAMEIRQS,4,2                  ; @FRAMEIRQS
	.comm	_IRQ_EOF0,4,2                   ; @IRQ_EOF0
	.comm	_IRQ_SOF0,4,2                   ; @IRQ_SOF0
	.comm	_IRQ_SOF1,4,2                   ; @IRQ_SOF1
	.comm	_IRQ_SOF2,4,2                   ; @IRQ_SOF2
	.comm	_CF_DMA_ACTIVE,4,2              ; @CF_DMA_ACTIVE
	.no_dead_strip	_cafe_frame_irq
.subsections_via_symbols
