	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_rps_boost_after_vblank
_add_rps_boost_after_vblank:            ## @add_rps_boost_after_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_dma_fence_is_i915
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%r14), %edi
	callq	_to_i915
	movl	%eax, %edi
	callq	_INTEL_GEN
	cmpl	$6, %eax
	jl	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_get
	testq	%rax, %rax
	je	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dma_fence_get
	movl	%eax, %edi
	callq	_to_request
	movl	%eax, 24(%r15)
	movq	%r14, 16(%r15)
	movq	_do_rps_boost@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	$0, (%r15)
	movq	%r14, %rdi
	callq	_drm_crtc_vblank_waitqueue
	movl	%eax, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_wait_queue                 ## TAILCALL
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_crtc_vblank_put            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_do_rps_boost,4,2               ## @do_rps_boost
	.no_dead_strip	_add_rps_boost_after_vblank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_rps_boost_after_vblank
_add_rps_boost_after_vblank:            ; @add_rps_boost_after_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	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_dma_fence_is_i915
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x19]
	bl	_to_i915
	bl	_INTEL_GEN
	cmp	w0, #6
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_drm_crtc_vblank_get
	cbz	x0, LBB0_4
LBB0_3:
	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
LBB0_4:
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kmalloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	mov	x0, x20
	bl	_dma_fence_get
	bl	_to_request
	str	w0, [x21, #24]
	str	x19, [x21, #16]
Lloh3:
	adrp	x8, _do_rps_boost@GOTPAGE
Lloh4:
	ldr	x8, [x8, _do_rps_boost@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	str	xzr, [x21]
	mov	x0, x19
	bl	_drm_crtc_vblank_waitqueue
	mov	x1, x21
	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	_add_wait_queue
LBB0_6:
	mov	x0, x19
	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	_drm_crtc_vblank_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_do_rps_boost,4,2               ; @do_rps_boost
	.no_dead_strip	_add_rps_boost_after_vblank
.subsections_via_symbols
