	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_crtc_high_irq
_dm_crtc_high_irq:                      ## @dm_crtc_high_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rsi
	movq	8(%rdi), %r14
	movq	_IRQ_TYPE_VBLANK@GOTPCREL(%rip), %rax
	subq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_get_crtc_by_otg_inst
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_to_dm_crtc_state
	movq	%rax, %r15
	movl	4(%rbx), %r12d
	movq	%rax, %rdi
	callq	_amdgpu_dm_vrr_active
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_DRM_DEBUG_DRIVER
	movq	%r15, %rdi
	callq	_amdgpu_dm_vrr_active
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_drm_crtc_handle_vblank
LBB0_3:
	movq	%rbx, %rdi
	callq	_amdgpu_dm_crtc_handle_crc_irq
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.4:
	movq	(%r14), %rax
	movq	_AMDGPU_FAMILY_AI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_7
## %bb.5:
	cmpq	$0, 8(%r15)
	je	LBB0_7
## %bb.6:
	movq	24(%r15), %rax
	movq	_VRR_STATE_ACTIVE_VARIABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.8:
	movq	8(%r14), %rdi
	callq	_spin_lock_irqsave
	movl	20(%r14), %edi
	movq	16(%r15), %rsi
	movq	%r15, %rdx
	callq	_mod_freesync_handle_v_update
	movl	16(%r14), %edi
	movq	16(%r15), %rsi
	movq	%r15, %rdx
	callq	_dc_stream_adjust_vmin_vmax
	movq	8(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_VBLANK,8,3            ## @IRQ_TYPE_VBLANK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crtc:%d, vupdate-vrr:%d\n"

	.comm	_AMDGPU_FAMILY_AI,8,3           ## @AMDGPU_FAMILY_AI
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ## @VRR_STATE_ACTIVE_VARIABLE
	.no_dead_strip	_dm_crtc_high_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_crtc_high_irq
_dm_crtc_high_irq:                      ; @dm_crtc_high_irq
	.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
	ldp	x8, x19, [x0]
Lloh0:
	adrp	x9, _IRQ_TYPE_VBLANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_TYPE_VBLANK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x1, x8, x9
	mov	x0, x19
	bl	_get_crtc_by_otg_inst
	cbz	x0, LBB0_8
; %bb.1:
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_dm_crtc_state
	mov	x20, x0
	ldr	w22, [x21, #4]
	bl	_amdgpu_dm_vrr_active
	mov	x2, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_DRM_DEBUG_DRIVER
	mov	x0, x20
	bl	_amdgpu_dm_vrr_active
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_drm_crtc_handle_vblank
LBB0_3:
	mov	x0, x21
	bl	_amdgpu_dm_crtc_handle_crc_irq
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_8
; %bb.4:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _AMDGPU_FAMILY_AI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AMDGPU_FAMILY_AI@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_8
; %bb.5:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x8, [x20, #24]
Lloh8:
	adrp	x9, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _VRR_STATE_ACTIVE_VARIABLE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x0, [x19, #8]
	bl	_spin_lock_irqsave
	ldr	w0, [x19, #20]
	ldr	x1, [x20, #16]
	mov	x2, x20
	bl	_mod_freesync_handle_v_update
	ldr	w0, [x19, #16]
	ldr	x1, [x20, #16]
	mov	x2, x20
	bl	_dc_stream_adjust_vmin_vmax
	ldr	x0, [x19, #8]
	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
	b	_spin_unlock_irqrestore
LBB0_8:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_VBLANK,8,3            ; @IRQ_TYPE_VBLANK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crtc:%d, vupdate-vrr:%d\n"

	.comm	_AMDGPU_FAMILY_AI,8,3           ; @AMDGPU_FAMILY_AI
	.comm	_VRR_STATE_ACTIVE_VARIABLE,8,3  ; @VRR_STATE_ACTIVE_VARIABLE
	.no_dead_strip	_dm_crtc_high_irq
.subsections_via_symbols
