	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_lvds_detect
_radeon_lvds_detect:                    ## @radeon_lvds_detect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rax), %r13
	callq	_to_radeon_connector
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_radeon_best_single_encoder
	movq	%rax, %r12
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_drm_kms_helper_is_poll_worker
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	testq	%r12, %r12
	je	LBB0_10
## %bb.4:
	movq	%r12, %rdi
	callq	_to_radeon_encoder
	cmpl	$320, (%rax)                    ## imm = 0x140
	jl	LBB0_7
## %bb.5:
	cmpl	$240, 4(%rax)
	jl	LBB0_7
## %bb.6:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movq	_RADEON_IS_PX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_radeon_runtime_pm@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	%r14d, %ecx
	je	LBB0_9
## %bb.8:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	testl	%eax, (%r13)
	cmovnel	%ecx, %r14d
LBB0_10:
	movq	%rbx, %rdi
	callq	_radeon_connector_get_edid
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.11:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_12:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_radeon_connector_update_scratch_regs
	xorl	%eax, %eax
	callq	_drm_kms_helper_is_poll_worker
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_mark_last_busy
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_put_autosuspend
	jmp	LBB0_14
LBB0_2:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_RADEON_IS_PX,4,2               ## @RADEON_IS_PX
	.comm	_radeon_runtime_pm,8,3          ## @radeon_runtime_pm
	.no_dead_strip	_radeon_lvds_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_lvds_detect
_radeon_lvds_detect:                    ; @radeon_lvds_detect
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x23, [x8, #8]
	bl	_to_radeon_connector
	mov	x20, x0
	mov	x0, x19
	bl	_radeon_best_single_encoder
	mov	x21, x0
Lloh0:
	adrp	x24, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x24, [x24, _connector_status_disconnected@GOTPAGEOFF]
	ldr	w22, [x24]
	bl	_drm_kms_helper_is_poll_worker
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_8
LBB0_2:
Lloh2:
	adrp	x25, _connector_status_connected@GOTPAGE
Lloh3:
	ldr	x25, [x25, _connector_status_connected@GOTPAGEOFF]
	cbz	x21, LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_to_radeon_encoder
	ldr	w8, [x0]
	cmp	w8, #320
	b.lt	LBB0_5
; %bb.4:
	ldr	w8, [x0, #4]
	ldr	w9, [x25]
	cmp	w8, #239
	csel	w22, w9, w22, gt
LBB0_5:
	ldr	w8, [x23]
Lloh4:
	adrp	x9, _RADEON_IS_PX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RADEON_IS_PX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _radeon_runtime_pm@GOTPAGE
Lloh8:
	ldr	x10, [x10, _radeon_runtime_pm@GOTPAGEOFF]
	and	w8, w9, w8
Lloh9:
	ldr	x9, [x10]
	cmp	x9, #0
	ccmp	w8, #0, #4, ne
	ldr	w8, [x24]
	csel	w22, w8, w22, ne
LBB0_6:
	mov	x0, x19
	bl	_radeon_connector_get_edid
	ldr	x8, [x20]
	ldr	w9, [x25]
	cmp	x8, #0
	csel	w20, w22, w9, eq
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_connector_update_scratch_regs
	bl	_drm_kms_helper_is_poll_worker
	cbnz	w0, LBB0_9
; %bb.7:
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_pm_runtime_mark_last_busy
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_9
LBB0_8:
	ldr	w20, [x24]
LBB0_9:
	mov	x0, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_RADEON_IS_PX,4,2               ; @RADEON_IS_PX
	.comm	_radeon_runtime_pm,8,3          ; @radeon_runtime_pm
	.no_dead_strip	_radeon_lvds_detect
.subsections_via_symbols
