	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_frame_done_callback
_dpu_encoder_frame_done_callback:       ## @dpu_encoder_frame_done_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_to_dpu_encoder_virt
	movq	%rax, %r13
	movq	_DPU_ENCODER_FRAME_EVENT_DONE@GOTPCREL(%rip), %rax
	movq	_DPU_ENCODER_FRAME_EVENT_ERROR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DPU_ENCODER_FRAME_EVENT_PANEL_DEAD@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_9
## %bb.1:
	movq	24(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.2:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rcx
	cmpq	%r12, (%rcx,%rbx,8)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_DRMID
	movq	24(%r13), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_trace_dpu_enc_frame_done_cb
	movq	24(%r13), %rsi
	movl	%ebx, %edi
	callq	_clear_bit
	movl	(%r13), %eax
	jmp	LBB0_6
LBB0_7:
	movq	24(%r13), %rax
	cmpl	$0, (%rax)
	jne	LBB0_10
## %bb.8:
	leaq	20(%r13), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	%r13, %rdi
	addq	$16, %rdi
	callq	_del_timer
	movq	_DPU_ENC_RC_EVENT_FRAME_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_dpu_encoder_resource_control
LBB0_9:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movl	4(%r13), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	callq	_DRMID
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trace_dpu_enc_frame_done_cb_not_busy ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ## @DPU_ENCODER_FRAME_EVENT_DONE
	.comm	_DPU_ENCODER_FRAME_EVENT_ERROR,4,2 ## @DPU_ENCODER_FRAME_EVENT_ERROR
	.comm	_DPU_ENCODER_FRAME_EVENT_PANEL_DEAD,4,2 ## @DPU_ENCODER_FRAME_EVENT_PANEL_DEAD
	.comm	_DPU_ENC_RC_EVENT_FRAME_DONE,4,2 ## @DPU_ENC_RC_EVENT_FRAME_DONE
	.no_dead_strip	_dpu_encoder_frame_done_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_encoder_frame_done_callback
_dpu_encoder_frame_done_callback:       ; @dpu_encoder_frame_done_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, x2
	mov	x22, x1
	mov	x21, x0
	bl	_to_dpu_encoder_virt
	mov	x20, x0
Lloh0:
	adrp	x8, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DPU_ENCODER_FRAME_EVENT_DONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DPU_ENCODER_FRAME_EVENT_ERROR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DPU_ENCODER_FRAME_EVENT_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DPU_ENCODER_FRAME_EVENT_PANEL_DEAD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DPU_ENCODER_FRAME_EVENT_PANEL_DEAD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w19
	b.eq	LBB0_9
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_12
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_11
; %bb.3:
	mov	x23, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, uxtw
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #32]
	ldr	x9, [x9, x23, lsl #3]
	cmp	x9, x22
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_DRMID
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	mov	x1, x23
	bl	_trace_dpu_enc_frame_done_cb
	ldr	x1, [x20, #24]
	mov	x0, x23
	bl	_clear_bit
	ldr	w8, [x20]
	b	LBB0_4
LBB0_7:
	ldr	x8, [x20, #24]
	ldr	w8, [x8]
	cbnz	w8, LBB0_11
; %bb.8:
	add	x0, x20, #20
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #16
	bl	_del_timer
Lloh9:
	adrp	x8, _DPU_ENC_RC_EVENT_FRAME_DONE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPU_ENC_RC_EVENT_FRAME_DONE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_dpu_encoder_resource_control
LBB0_9:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	w0, [x20, #4]
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	br	x2
LBB0_11:
	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
LBB0_12:
	mov	x0, x21
	bl	_DRMID
	ldr	w2, [x22]
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_trace_dpu_enc_frame_done_cb_not_busy
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DPU_ENCODER_FRAME_EVENT_DONE,4,2 ; @DPU_ENCODER_FRAME_EVENT_DONE
	.comm	_DPU_ENCODER_FRAME_EVENT_ERROR,4,2 ; @DPU_ENCODER_FRAME_EVENT_ERROR
	.comm	_DPU_ENCODER_FRAME_EVENT_PANEL_DEAD,4,2 ; @DPU_ENCODER_FRAME_EVENT_PANEL_DEAD
	.comm	_DPU_ENC_RC_EVENT_FRAME_DONE,4,2 ; @DPU_ENC_RC_EVENT_FRAME_DONE
	.no_dead_strip	_dpu_encoder_frame_done_callback
.subsections_via_symbols
