	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rv770_enable_display_gap
_rv770_enable_display_gap:              ## @rv770_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_CG_DISPLAY_GAP_CNTL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_RREG32
	movq	_DISP1_GAP_MCHG_MASK@GOTPCREL(%rip), %rcx
	movq	_DISP2_GAP_MCHG_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movq	_R600_PM_DISPLAY_GAP_IGNORE@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_DISP1_GAP_MCHG
	movl	%eax, %r15d
	movl	(%r12), %edi
	callq	_DISP2_GAP_MCHG
	orl	%eax, %r15d
	orl	%ebx, %r15d
	movl	(%r14), %edi
	movl	%r15d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ## @CG_DISPLAY_GAP_CNTL
	.comm	_DISP1_GAP_MCHG_MASK,4,2        ## @DISP1_GAP_MCHG_MASK
	.comm	_DISP2_GAP_MCHG_MASK,4,2        ## @DISP2_GAP_MCHG_MASK
	.comm	_R600_PM_DISPLAY_GAP_IGNORE,4,2 ## @R600_PM_DISPLAY_GAP_IGNORE
	.no_dead_strip	_rv770_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 rv770_enable_display_gap
_rv770_enable_display_gap:              ; @rv770_enable_display_gap
	.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
Lloh0:
	adrp	x20, _CG_DISPLAY_GAP_CNTL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CG_DISPLAY_GAP_CNTL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_RREG32
Lloh2:
	adrp	x8, _DISP1_GAP_MCHG_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DISP1_GAP_MCHG_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _DISP2_GAP_MCHG_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DISP2_GAP_MCHG_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w21, w0, w8
Lloh8:
	adrp	x22, _R600_PM_DISPLAY_GAP_IGNORE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _R600_PM_DISPLAY_GAP_IGNORE@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_DISP1_GAP_MCHG
	mov	x19, x0
	ldr	w0, [x22]
	bl	_DISP2_GAP_MCHG
	orr	w8, w21, w19
	orr	w1, w8, w0
	ldr	w0, [x20]
	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	_WREG32
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ; @CG_DISPLAY_GAP_CNTL
	.comm	_DISP1_GAP_MCHG_MASK,4,2        ; @DISP1_GAP_MCHG_MASK
	.comm	_DISP2_GAP_MCHG_MASK,4,2        ; @DISP2_GAP_MCHG_MASK
	.comm	_R600_PM_DISPLAY_GAP_IGNORE,4,2 ; @R600_PM_DISPLAY_GAP_IGNORE
	.no_dead_strip	_rv770_enable_display_gap
.subsections_via_symbols
