	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fimd_te_handler
_fimd_te_handler:                       ## @fimd_te_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	cmpl	$0, 28(%rbx)
	je	LBB0_7
## %bb.1:
	movq	32(%rbx), %rax
	movq	(%rax), %rax
	movq	_I80_HW_TRG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	leaq	24(%rbx), %rdi
	movl	$-1, %esi
	xorl	%edx, %edx
	callq	_atomic_add_unless
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	20(%rbx), %edi
	callq	_fimd_trigger
LBB0_4:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	12(%rbx), %rdi
	callq	_wake_up
LBB0_6:
	leaq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	(%rbx), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_drm_crtc_handle_vblank         ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I80_HW_TRG,8,3                 ## @I80_HW_TRG
	.no_dead_strip	_fimd_te_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fimd_te_handler
_fimd_te_handler:                       ; @fimd_te_handler
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w8, [x20, #28]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x20, #32]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _I80_HW_TRG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I80_HW_TRG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
	add	x0, x20, #24
	mov	w1, #-1
	mov	w2, #0
	bl	_atomic_add_unless
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20, #20]
	bl	_fimd_trigger
LBB0_4:
	add	x19, x20, #16
	mov	x0, x19
	bl	_atomic_read
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #12
	bl	_wake_up
LBB0_6:
	add	x1, x20, #8
	mov	w0, #0
	bl	_test_bit
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_drm_crtc_handle_vblank
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I80_HW_TRG,8,3                 ; @I80_HW_TRG
	.no_dead_strip	_fimd_te_handler
.subsections_via_symbols
