	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_enable_display_gap
_smu7_enable_display_gap:               ## @smu7_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	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_ixCG_DISPLAY_GAP_CNTL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_cgs_read_ind_register
	movq	_CG_DISPLAY_GAP_CNTL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DISP_GAP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DISPLAY_GAP_IGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_PHM_SET_FIELD
	movl	(%r12), %esi
	movq	_DISP_GAP_MCHG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_DISPLAY_GAP_VBLANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edi
	callq	_PHM_SET_FIELD
	movl	(%rbx), %edi
	movl	(%r14), %esi
	movl	(%r15), %edx
	movl	%eax, %ecx
	callq	_cgs_write_ind_register
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_ixCG_DISPLAY_GAP_CNTL,4,2      ## @ixCG_DISPLAY_GAP_CNTL
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ## @CG_DISPLAY_GAP_CNTL
	.comm	_DISP_GAP,4,2                   ## @DISP_GAP
	.comm	_DISPLAY_GAP_IGNORE,4,2         ## @DISPLAY_GAP_IGNORE
	.comm	_DISP_GAP_MCHG,4,2              ## @DISP_GAP_MCHG
	.comm	_DISPLAY_GAP_VBLANK,4,2         ## @DISPLAY_GAP_VBLANK
	.no_dead_strip	_smu7_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 smu7_enable_display_gap
_smu7_enable_display_gap:               ; @smu7_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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _CGS_IND_REG__SMC@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CGS_IND_REG__SMC@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _ixCG_DISPLAY_GAP_CNTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ixCG_DISPLAY_GAP_CNTL@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_cgs_read_ind_register
Lloh4:
	adrp	x22, _CG_DISPLAY_GAP_CNTL@GOTPAGE
Lloh5:
	ldr	x22, [x22, _CG_DISPLAY_GAP_CNTL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _DISP_GAP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DISP_GAP@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _DISPLAY_GAP_IGNORE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DISPLAY_GAP_IGNORE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_PHM_SET_FIELD
	ldr	w1, [x22]
Lloh12:
	adrp	x8, _DISP_GAP_MCHG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DISP_GAP_MCHG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _DISPLAY_GAP_VBLANK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DISPLAY_GAP_VBLANK@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x8]
	bl	_PHM_SET_FIELD
	mov	x3, x0
	ldr	w0, [x19]
	ldr	w1, [x20]
	ldr	w2, [x21]
	bl	_cgs_write_ind_register
	mov	w0, #0
	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	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_ixCG_DISPLAY_GAP_CNTL,4,2      ; @ixCG_DISPLAY_GAP_CNTL
	.comm	_CG_DISPLAY_GAP_CNTL,4,2        ; @CG_DISPLAY_GAP_CNTL
	.comm	_DISP_GAP,4,2                   ; @DISP_GAP
	.comm	_DISPLAY_GAP_IGNORE,4,2         ; @DISPLAY_GAP_IGNORE
	.comm	_DISP_GAP_MCHG,4,2              ; @DISP_GAP_MCHG
	.comm	_DISPLAY_GAP_VBLANK,4,2         ; @DISPLAY_GAP_VBLANK
	.no_dead_strip	_smu7_enable_display_gap
.subsections_via_symbols
