	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm_set_vblank
_dm_set_vblank:                         ## @dm_set_vblank
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_to_amdgpu_crtc
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	(%rax), %r12
	movl	(%rbx), %edi
	callq	_to_dm_crtc_state
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	callq	_amdgpu_dm_vrr_active
	movl	$1, %esi
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%esi, %esi
LBB0_3:
	movq	%rbx, %rdi
	callq	_dm_set_vupdate_irq
	testl	%eax, %eax
	jne	LBB0_5
LBB0_4:
	movq	_IRQ_TYPE_VBLANK@GOTPCREL(%rip), %rax
	movl	(%r14), %esi
	addl	(%rax), %esi
	movl	(%r12), %edi
	movl	%r15d, %edx
	callq	_dc_interrupt_set
	movq	%rax, %rcx
	movq	_EBUSY@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	testq	%rcx, %rcx
	cmovnel	%edx, %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TYPE_VBLANK,4,2            ## @IRQ_TYPE_VBLANK
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_dm_set_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm_set_vblank
_dm_set_vblank:                         ; @dm_set_vblank
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_to_amdgpu_crtc
	mov	x20, x0
	ldr	x8, [x21, #8]
	ldr	x22, [x8]
	ldr	w0, [x21]
	bl	_to_dm_crtc_state
	cbz	w19, LBB0_3
; %bb.1:
	bl	_amdgpu_dm_vrr_active
	cbz	x0, LBB0_5
; %bb.2:
	mov	w1, #1
	b	LBB0_4
LBB0_3:
	mov	w1, #0
LBB0_4:
	mov	x0, x21
	bl	_dm_set_vupdate_irq
	cbnz	w0, LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _IRQ_TYPE_VBLANK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_TYPE_VBLANK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x20]
	add	w1, w9, w8
	ldr	w0, [x22]
	mov	x2, x19
	bl	_dc_interrupt_set
Lloh3:
	adrp	x8, _EBUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, ne
LBB0_6:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TYPE_VBLANK,4,2            ; @IRQ_TYPE_VBLANK
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_dm_set_vblank
.subsections_via_symbols
