	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_frame_complete
_cafe_frame_complete:                   ## @cafe_frame_complete
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	40(%rdi), %r15
	movl	%esi, %edi
	movq	%r15, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_printk_ratelimit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_cam_err
LBB0_3:
	movl	%r14d, %edi
	movq	%r15, %rsi
	callq	_set_bit
	movq	_CF_DMA_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	cmpl	$0, (%rbx)
	jns	LBB0_5
## %bb.4:
	movl	%r14d, (%rbx)
LBB0_5:
	movq	24(%rbx), %rax
	movq	32(%rbx), %rcx
	incq	%rax
	movq	%rax, 24(%rbx)
	movslq	%r14d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movl	4(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_12
## %bb.6:
	cmpl	$129, %eax
	je	LBB0_9
## %bb.7:
	cmpl	$130, %eax
	jne	LBB0_13
## %bb.8:
	movl	$129, 4(%rbx)
	movl	$0, 20(%rbx)
	jmp	LBB0_11
LBB0_12:
	addq	$8, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
LBB0_9:
	movl	20(%rbx), %eax
	incl	%eax
	movl	%eax, 20(%rbx)
	cmpl	16(%rbx), %eax
	jl	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_cafe_ctlr_stop
	movq	%rbx, %rdi
	callq	_cafe_ctlr_irq_disable
	movq	_S_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_11:
	addq	$12, %rbx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cam_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Frame overrun on %d, frames lost\n"

	.comm	_CF_DMA_ACTIVE,4,2              ## @CF_DMA_ACTIVE
	.comm	_S_IDLE,4,2                     ## @S_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"Frame interrupt in non-operational state\n"

	.no_dead_strip	_cafe_frame_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_frame_complete
_cafe_frame_complete:                   ; @cafe_frame_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #40
	mov	x0, x1
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
	bl	_printk_ratelimit
	cbz	x0, LBB0_3
; %bb.2:
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_cam_err
LBB0_3:
	mov	x0, x20
	mov	x1, x21
	bl	_set_bit
Lloh2:
	adrp	x8, _CF_DMA_ACTIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CF_DMA_ACTIVE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	ldr	w8, [x19]
	tbz	w8, #31, LBB0_5
; %bb.4:
	str	w20, [x19]
LBB0_5:
	ldp	x8, x9, [x19, #24]
	add	x8, x8, #1
	str	x8, [x19, #24]
	str	x8, [x9, w20, sxtw #3]
	ldr	w8, [x19, #4]
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.7:
	cmp	w8, #130
	b.ne	LBB0_13
; %bb.8:
	mov	w8, #129
	str	w8, [x19, #4]
	str	wzr, [x19, #20]
	b	LBB0_12
LBB0_9:
	add	x0, x19, #8
	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
	add	sp, sp, #64
	b	_tasklet_schedule
LBB0_10:
	ldp	w9, w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #20]
	cmp	w8, w9
	b.lt	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_cafe_ctlr_stop
	mov	x0, x19
	bl	_cafe_ctlr_irq_disable
Lloh5:
	adrp	x8, _S_IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_IDLE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
LBB0_12:
	add	x0, x19, #12
	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
	add	sp, sp, #64
	b	_wake_up
LBB0_13:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	add	sp, sp, #64
	b	_cam_err
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Frame overrun on %d, frames lost\n"

	.comm	_CF_DMA_ACTIVE,4,2              ; @CF_DMA_ACTIVE
	.comm	_S_IDLE,4,2                     ; @S_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"Frame interrupt in non-operational state\n"

	.no_dead_strip	_cafe_frame_complete
.subsections_via_symbols
