	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv6xx_enable_display_gap
_rv6xx_enable_display_gap:              ## @rv6xx_enable_display_gap
	.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
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_R600_PM_DISPLAY_GAP_VBLANK_OR_WM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DISP1_GAP
	movl	%eax, %r14d
	movl	(%rbx), %edi
	callq	_DISP2_GAP
	orl	%eax, %r14d
	movq	_R600_PM_DISPLAY_GAP_IGNORE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_DISP1_GAP_MCHG
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_DISP2_GAP_MCHG
	orl	%eax, %r15d
	orl	%r14d, %r15d
	movl	$16383, %edi                    ## imm = 0x3FFF
	callq	_VBI_TIMER_COUNT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_VBI_TIMER_UNIT
	orl	%eax, %ebx
	orl	%r15d, %ebx
	movq	_CG_DISPLAY_GAP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_WREG32
	movq	_MCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_USE_DISPLAY_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	jmp	LBB0_3
LBB0_2:
	movq	_MCLK_PWRMGT_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_USE_DISPLAY_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_PM_DISPLAY_GAP_VBLANK_OR_WM,4,2 ## @R600_PM_DISPLAY_GAP_VBLANK_OR_WM
	.comm	_R600_PM_DISPLAY_GAP_IGNORE,4,2 ## @R600_PM_DISPLAY_GAP_IGNORE
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ## @CG_DISPLAY_GAP_CNTL
	.comm	_MCLK_PWRMGT_CNTL,4,2           ## @MCLK_PWRMGT_CNTL
	.comm	_USE_DISPLAY_GAP,4,2            ## @USE_DISPLAY_GAP
	.no_dead_strip	_rv6xx_enable_display_gap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rv6xx_enable_display_gap
_rv6xx_enable_display_gap:              ; @rv6xx_enable_display_gap
	.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
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _R600_PM_DISPLAY_GAP_VBLANK_OR_WM@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R600_PM_DISPLAY_GAP_VBLANK_OR_WM@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DISP1_GAP
	mov	x19, x0
	ldr	w0, [x20]
	bl	_DISP2_GAP
	orr	w19, w0, w19
Lloh2:
	adrp	x20, _R600_PM_DISPLAY_GAP_IGNORE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _R600_PM_DISPLAY_GAP_IGNORE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_DISP1_GAP_MCHG
	orr	w19, w19, w0
	ldr	w0, [x20]
	bl	_DISP2_GAP_MCHG
	orr	w19, w19, w0
	mov	w0, #16383
	bl	_VBI_TIMER_COUNT
	orr	w19, w19, w0
	mov	w0, #7
	bl	_VBI_TIMER_UNIT
	orr	w1, w19, w0
Lloh4:
	adrp	x8, _CG_DISPLAY_GAP_CNTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CG_DISPLAY_GAP_CNTL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_WREG32
Lloh7:
	adrp	x8, _MCLK_PWRMGT_CNTL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCLK_PWRMGT_CNTL@GOTPAGEOFF]
Lloh9:
	adrp	x9, _USE_DISPLAY_GAP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _USE_DISPLAY_GAP@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	ldr	w1, [x9]
	mvn	w2, w1
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _MCLK_PWRMGT_CNTL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MCLK_PWRMGT_CNTL@GOTPAGEOFF]
Lloh15:
	adrp	x9, _USE_DISPLAY_GAP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _USE_DISPLAY_GAP@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	ldr	w8, [x9]
	mvn	w2, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh11
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_PM_DISPLAY_GAP_VBLANK_OR_WM,4,2 ; @R600_PM_DISPLAY_GAP_VBLANK_OR_WM
	.comm	_R600_PM_DISPLAY_GAP_IGNORE,4,2 ; @R600_PM_DISPLAY_GAP_IGNORE
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ; @CG_DISPLAY_GAP_CNTL
	.comm	_MCLK_PWRMGT_CNTL,4,2           ; @MCLK_PWRMGT_CNTL
	.comm	_USE_DISPLAY_GAP,4,2            ; @USE_DISPLAY_GAP
	.no_dead_strip	_rv6xx_enable_display_gap
.subsections_via_symbols
