	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcam_frame_complete
_mcam_frame_complete:                   ## @mcam_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	_set_bit
	movq	_CF_DMA_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	movl	%r14d, (%rbx)
	movslq	28(%rbx), %rax
	leal	1(%rax), %ecx
	movl	%ecx, 28(%rbx)
	movq	32(%rbx), %rcx
	movslq	%r14d, %rdx
	movq	%rax, (%rcx,%rdx,8)
	incl	24(%rbx)
	movq	8(%rbx), %rax
	movq	_S_STREAMING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_DMA_ACTIVE,4,2              ## @CF_DMA_ACTIVE
	.comm	_S_STREAMING,8,3                ## @S_STREAMING
	.no_dead_strip	_mcam_frame_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcam_frame_complete
_mcam_frame_complete:                   ; @mcam_frame_complete
	.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	x19, x1
	mov	x20, x0
	add	x21, x0, #40
	mov	x0, x1
	mov	x1, x21
	bl	_set_bit
Lloh0:
	adrp	x8, _CF_DMA_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CF_DMA_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_clear_bit
	str	w19, [x20]
	ldp	w9, w8, [x20, #24]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	add	w10, w8, #1
	ldr	x11, [x20, #32]
	str	x8, [x11, w19, sxtw #3]
	add	w8, w9, #1
	stp	w8, w10, [x20, #24]
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _S_STREAMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _S_STREAMING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x2, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	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
	br	x2
LBB0_2:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_DMA_ACTIVE,4,2              ; @CF_DMA_ACTIVE
	.comm	_S_STREAMING,8,3                ; @S_STREAMING
	.no_dead_strip	_mcam_frame_complete
.subsections_via_symbols
