	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_frame_done_timeout
_dpu_encoder_frame_done_timeout:        ## @dpu_encoder_frame_done_timeout
	.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	_frame_done_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	32(%rax), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	leaq	32(%rbx), %r14
	movq	24(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 8(%rbx)
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	callq	_atomic_xchg
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_DPU_ERROR_ENC
	movq	_DPU_ENCODER_FRAME_EVENT_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_DRMID
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_trace_dpu_enc_frame_done_timeout
	movq	8(%rbx), %rax
	movl	(%rbx), %edi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_6:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_7:
	movq	%r14, %rdi
	callq	_DRMID
	movq	24(%rbx), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_DRMID
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_KMS                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_frame_done_timer,4,2           ## @frame_done_timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid parameters\n"

L_.str.1:                               ## @.str.1
	.asciz	"id:%u invalid timeout frame_busy_mask=%lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"id:%u invalid timeout\n"

L_.str.3:                               ## @.str.3
	.asciz	"frame done timeout\n"

	.comm	_DPU_ENCODER_FRAME_EVENT_ERROR,4,2 ## @DPU_ENCODER_FRAME_EVENT_ERROR
	.comm	_dpu_enc,8,3                    ## @dpu_enc
	.no_dead_strip	_dpu_encoder_frame_done_timeout
.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_timeout
_dpu_encoder_frame_done_timeout:        ; @dpu_encoder_frame_done_timeout
	.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
Lloh0:
	adrp	x8, _frame_done_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _frame_done_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	mov	x20, x0
	ldr	x8, [x20, #32]!
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.4:
	add	x0, x19, #16
	mov	w1, #0
	bl	_atomic_xchg
	cbz	w0, LBB0_8
; %bb.5:
Lloh3:
	adrp	x1, l_.str.3@PAGE
Lloh4:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_DPU_ERROR_ENC
Lloh5:
	adrp	x8, _DPU_ENCODER_FRAME_EVENT_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DPU_ENCODER_FRAME_EVENT_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_DRMID
	mov	x1, x21
	bl	_trace_dpu_enc_frame_done_timeout
	ldr	x2, [x19, #8]
	ldr	w0, [x19]
	mov	x1, x21
	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
	br	x2
LBB0_6:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	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	_DPU_ERROR
LBB0_7:
	mov	x0, x20
	bl	_DRMID
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_DEBUG_KMS
	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
	ret
LBB0_8:
	mov	x0, x20
	bl	_DRMID
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	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	_DRM_DEBUG_KMS
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_frame_done_timer,4,2           ; @frame_done_timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid parameters\n"

l_.str.1:                               ; @.str.1
	.asciz	"id:%u invalid timeout frame_busy_mask=%lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"id:%u invalid timeout\n"

l_.str.3:                               ; @.str.3
	.asciz	"frame done timeout\n"

	.comm	_DPU_ENCODER_FRAME_EVENT_ERROR,4,2 ; @DPU_ENCODER_FRAME_EVENT_ERROR
	.comm	_dpu_enc,8,3                    ; @dpu_enc
	.no_dead_strip	_dpu_encoder_frame_done_timeout
.subsections_via_symbols
