	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_connector_vga_detect
_amdgpu_connector_vga_detect:           ## @amdgpu_connector_vga_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
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_to_amdgpu_connector
	movq	%rax, %r13
	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_2
## %bb.1:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_17
LBB0_2:
	movq	%r15, %rdi
	callq	_amdgpu_connector_best_single_encoder
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_4:
	cmpq	$0, 32(%r13)
	je	LBB0_10
## %bb.5:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_amdgpu_display_ddc_probe
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:
	movl	$0, (%r13)
	movq	%r15, %rdi
	callq	_amdgpu_connector_free_edid
	movq	%r15, %rdi
	callq	_amdgpu_connector_get_edid
	movq	24(%r13), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.7:
	movq	_DRM_EDID_INPUT_DIGITAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	andl	(%rax), %ecx
	setne	%dl
	movl	%edx, 4(%r13)
	je	LBB0_19
## %bb.8:
	cmpq	$0, 16(%r13)
	je	LBB0_19
## %bb.9:
	movq	%r15, %rdi
	callq	_amdgpu_connector_free_edid
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.11:
	cmpq	$0, 8(%r13)
	je	LBB0_21
## %bb.12:
	testq	%rbx, %rbx
	je	LBB0_21
## %bb.13:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movl	%eax, %r14d
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_21
## %bb.14:
	movl	$1, (%r13)
	jmp	LBB0_21
LBB0_15:
	cmpl	$0, (%r13)
	je	LBB0_22
## %bb.16:
	movl	(%r15), %r14d
	jmp	LBB0_22
LBB0_17:
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_18:
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
LBB0_19:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %r14d
LBB0_21:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_amdgpu_connector_update_scratch_regs
LBB0_22:
	xorl	%eax, %eax
	callq	_drm_kms_helper_is_poll_worker
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_mark_last_busy
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_24:
	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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: probed a monitor but no|invalid EDID\n"

	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ## @DRM_EDID_INPUT_DIGITAL
	.no_dead_strip	_amdgpu_connector_vga_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_connector_vga_detect
_amdgpu_connector_vga_detect:           ; @amdgpu_connector_vga_detect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x1
	mov	x19, x0
	bl	_to_amdgpu_connector
	mov	x21, x0
Lloh0:
	adrp	x24, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x24, [x24, _connector_status_disconnected@GOTPAGEOFF]
	ldr	w20, [x24]
	bl	_drm_kms_helper_is_poll_worker
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_16
LBB0_2:
	mov	x0, x19
	bl	_amdgpu_connector_best_single_encoder
	mov	x23, x0
	ldr	w8, [x24]
	cmp	x0, #0
	csel	w20, w20, w8, ne
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_8
; %bb.3:
	mov	x0, x21
	mov	w1, #0
	bl	_amdgpu_display_ddc_probe
	cbz	w0, LBB0_8
; %bb.4:
	str	wzr, [x21]
	mov	x0, x19
	bl	_amdgpu_connector_free_edid
	mov	x0, x19
	bl	_amdgpu_connector_get_edid
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_17
; %bb.5:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DRM_EDID_INPUT_DIGITAL@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	ands	w8, w9, w8
	cset	w9, ne
	str	w9, [x21, #4]
	cbz	w8, LBB0_18
; %bb.6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_18
; %bb.7:
	mov	x0, x19
	bl	_amdgpu_connector_free_edid
	ldr	w20, [x24]
	b	LBB0_19
LBB0_8:
	cbz	w22, LBB0_13
; %bb.9:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_19
; %bb.10:
	cbz	x23, LBB0_19
; %bb.11:
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	mov	x1, x19
	blr	x8
	mov	x20, x0
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.12:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_19
LBB0_13:
	ldr	w8, [x21]
	cbz	w8, LBB0_15
; %bb.14:
	ldr	w20, [x19]
LBB0_15:
	bl	_drm_kms_helper_is_poll_worker
	cbnz	w0, LBB0_21
	b	LBB0_20
LBB0_16:
	ldr	w20, [x24]
	b	LBB0_21
LBB0_17:
	ldr	w1, [x19, #16]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_18:
Lloh7:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh8:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
LBB0_19:
	mov	x0, x19
	mov	x1, x20
	bl	_amdgpu_connector_update_scratch_regs
	bl	_drm_kms_helper_is_poll_worker
	cbnz	w0, LBB0_21
LBB0_20:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_pm_runtime_mark_last_busy
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_pm_runtime_put_autosuspend
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: probed a monitor but no|invalid EDID\n"

	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_DRM_EDID_INPUT_DIGITAL,4,2     ; @DRM_EDID_INPUT_DIGITAL
	.no_dead_strip	_amdgpu_connector_vga_detect
.subsections_via_symbols
