	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_set_edp_panel_power ## -- Begin function amdgpu_atombios_encoder_set_edp_panel_power
	.p2align	4, 0x90
_amdgpu_atombios_encoder_set_edp_panel_power: ## @amdgpu_atombios_encoder_set_edp_panel_power
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_to_amdgpu_connector
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UNIPHYTransmitterControl@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetIndexIntoMasterTable
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movq	_DRM_MODE_CONNECTOR_eDP@GOTPCREL(%rip), %rcx
	movl	$1, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.1:
	movq	_ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
LBB0_3:
	movl	(%r14), %edi
	leaq	-56(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movl	%r13d, %esi
	callq	_amdgpu_atom_parse_cmd_header
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	%r12d, -48(%rbp)
	movl	(%r14), %edi
	movl	%r13d, %esi
	leaq	-48(%rbp), %rdx
	callq	_amdgpu_atom_execute_table
	movq	_ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_10
## %bb.5:
	movl	$300, %ebx                      ## imm = 0x12C
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_amdgpu_display_hpd_sense
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_mdelay
	decl	%ebx
	jne	LBB0_6
## %bb.9:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_7:
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMMAND,4,2                    ## @COMMAND
	.comm	_UNIPHYTransmitterControl,4,2   ## @UNIPHYTransmitterControl
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ## @DRM_MODE_CONNECTOR_eDP
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_ON,4,2 ## @ATOM_TRANSMITTER_ACTION_POWER_ON
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_OFF,4,2 ## @ATOM_TRANSMITTER_ACTION_POWER_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_atombios_encoder_set_edp_panel_power ; -- Begin function amdgpu_atombios_encoder_set_edp_panel_power
	.p2align	2
_amdgpu_atombios_encoder_set_edp_panel_power: ; @amdgpu_atombios_encoder_set_edp_panel_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x23, x0
	bl	_to_amdgpu_connector
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x8, _COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _UNIPHYTransmitterControl@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UNIPHYTransmitterControl@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetIndexIntoMasterTable
	ldr	x8, [x23]
Lloh6:
	adrp	x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_CONNECTOR_eDP@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.1:
Lloh9:
	adrp	x23, _ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPAGE
Lloh10:
	ldr	x23, [x23, _ATOM_TRANSMITTER_ACTION_POWER_ON@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh11:
	adrp	x9, _ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ATOM_TRANSMITTER_ACTION_POWER_OFF@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	cmp	w8, w21
	ccmp	w9, w21, #4, ne
	b.ne	LBB0_8
; %bb.2:
	mov	x22, x0
	ldr	w0, [x20]
	add	x2, sp, #4
	mov	x3, sp
	mov	x1, x22
	bl	_amdgpu_atom_parse_cmd_header
	cbz	w0, LBB0_8
; %bb.3:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w21, [sp, #8]
	ldr	w0, [x20]
	add	x2, sp, #8
	mov	x1, x22
	bl	_amdgpu_atom_execute_table
	ldr	w8, [x23]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.4:
	mov	w21, #300
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19]
	mov	x0, x20
	bl	_amdgpu_display_hpd_sense
	cbnz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_mdelay
	subs	w21, w21, #1
	b.ne	LBB0_5
; %bb.7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_COMMAND,4,2                    ; @COMMAND
	.comm	_UNIPHYTransmitterControl,4,2   ; @UNIPHYTransmitterControl
	.comm	_DRM_MODE_CONNECTOR_eDP,8,3     ; @DRM_MODE_CONNECTOR_eDP
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_ON,4,2 ; @ATOM_TRANSMITTER_ACTION_POWER_ON
	.comm	_ATOM_TRANSMITTER_ACTION_POWER_OFF,4,2 ; @ATOM_TRANSMITTER_ACTION_POWER_OFF
.subsections_via_symbols
