	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_notify_smc_display
_smu7_notify_smc_display:               ## @smu7_notify_smc_display
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PP_VBI_TIME_SUPPORT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rax
	movq	_CHIP_VEGAM@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.3:
	movq	_PPSMC_MSG_SetVBITimeout_VEGAM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_PPSMC_MSG_SetVBITimeout@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_5:
	movq	_PPSMC_HasDisplay@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovel	%edx, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_VBI_TIME_SUPPORT_MASK,4,2   ## @PP_VBI_TIME_SUPPORT_MASK
	.comm	_CHIP_VEGAM,8,3                 ## @CHIP_VEGAM
	.comm	_PPSMC_MSG_SetVBITimeout_VEGAM,8,3 ## @PPSMC_MSG_SetVBITimeout_VEGAM
	.comm	_PPSMC_MSG_SetVBITimeout,8,3    ## @PPSMC_MSG_SetVBITimeout
	.comm	_PPSMC_HasDisplay,8,3           ## @PPSMC_HasDisplay
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_smu7_notify_smc_display
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_notify_smc_display
_smu7_notify_smc_display:               ; @smu7_notify_smc_display
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _PP_VBI_TIME_SUPPORT_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PP_VBI_TIME_SUPPORT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	x9, x8, [x19, #8]
Lloh3:
	adrp	x10, _CHIP_VEGAM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _CHIP_VEGAM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _PPSMC_MSG_SetVBITimeout_VEGAM@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PPSMC_MSG_SetVBITimeout_VEGAM@GOTPAGEOFF]
Lloh8:
	adrp	x12, _PPSMC_MSG_SetVBITimeout@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PPSMC_MSG_SetVBITimeout@GOTPAGEOFF]
	cmp	x9, x10
	csel	x9, x11, x12, eq
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_2:
Lloh10:
	adrp	x8, _PPSMC_HasDisplay@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PPSMC_HasDisplay@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w0, wzr, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_VBI_TIME_SUPPORT_MASK,4,2   ; @PP_VBI_TIME_SUPPORT_MASK
	.comm	_CHIP_VEGAM,8,3                 ; @CHIP_VEGAM
	.comm	_PPSMC_MSG_SetVBITimeout_VEGAM,8,3 ; @PPSMC_MSG_SetVBITimeout_VEGAM
	.comm	_PPSMC_MSG_SetVBITimeout,8,3    ; @PPSMC_MSG_SetVBITimeout
	.comm	_PPSMC_HasDisplay,8,3           ; @PPSMC_HasDisplay
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_smu7_notify_smc_display
.subsections_via_symbols
