	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_encoder_vsync_event_handler
_dpu_encoder_vsync_event_handler:       ## @dpu_encoder_vsync_event_handler
	.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	_vsync_event_timer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rdi, %rsi
	callq	_from_timer
	movq	%rax, %rbx
	movq	16(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	(%rax), %r15
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cmpq	%rax, %r15
	jae	LBB0_6
## %bb.7:
	cmpq	$0, (%r14)
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_del_timer                      ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_8:
	movq	8(%rbx), %rax
	movq	(%rax), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DPU_ERROR                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vsync_event_timer,4,2          ## @vsync_event_timer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid parameters\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid crtc index\n"

L_.str.2:                               ## @.str.2
	.asciz	"event_thread not found for crtc:%d\n"

	.comm	_dpu_enc,8,3                    ## @dpu_enc
	.no_dead_strip	_dpu_encoder_vsync_event_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dpu_encoder_vsync_event_handler
_dpu_encoder_vsync_event_handler:       ; @dpu_encoder_vsync_event_handler
	.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, _vsync_event_timer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vsync_event_timer@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x0
	bl	_from_timer
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_6
; %bb.1:
	ldr	x20, [x8]
	cbz	x20, LBB0_6
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x21, [x8]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	x21, x0
	b.hs	LBB0_8
; %bb.4:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.5:
	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	_del_timer
LBB0_6:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
LBB0_7:
	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_8:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_9:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPU_ERROR
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_vsync_event_timer,4,2          ; @vsync_event_timer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid parameters\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid crtc index\n"

l_.str.2:                               ; @.str.2
	.asciz	"event_thread not found for crtc:%d\n"

	.comm	_dpu_enc,8,3                    ; @dpu_enc
	.no_dead_strip	_dpu_encoder_vsync_event_handler
.subsections_via_symbols
