	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_connector_detect_lvds
_nouveau_connector_detect_lvds:         ## @nouveau_connector_detect_lvds
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_nouveau_drm
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_nouveau_connector
	movq	%rax, %r15
	movq	_connector_status_disconnected@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_drm_mode_connector_update_edid_property
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
LBB0_2:
	movq	_DCB_OUTPUT_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_encoder
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_nouveau_connector_detect
	movl	%eax, %r14d
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_15
LBB0_6:
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_nouveau_acpi_edid
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_14
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_nouveau_bios_fp_mode
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	testq	%rcx, %rcx
	jne	LBB0_14
## %bb.10:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
	jmp	LBB0_12
LBB0_3:
	movl	(%r13), %r14d
	jmp	LBB0_16
LBB0_11:
	testq	%rcx, %rcx
	jne	LBB0_15
LBB0_12:
	movq	%r13, %rdi
	callq	_nouveau_bios_embedded_edid
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	movq	_EDID_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	callq	_kmemdup
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_15
LBB0_14:
	movq	_connector_status_connected@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_drm_mode_connector_update_edid_property
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_nouveau_connector_set_encoder
LBB0_16:
	movl	%r14d, %eax
	addq	$24, %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	_DCB_OUTPUT_LVDS,4,2            ## @DCB_OUTPUT_LVDS
	.comm	_connector_status_connected,4,2 ## @connector_status_connected
	.comm	_EDID_LENGTH,4,2                ## @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_connector_status_unknown,4,2   ## @connector_status_unknown
	.comm	_nouveau_ignorelid,4,2          ## @nouveau_ignorelid
	.no_dead_strip	_nouveau_connector_detect_lvds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_connector_detect_lvds
_nouveau_connector_detect_lvds:         ; @nouveau_connector_detect_lvds
	.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	x25, x1
	mov	x19, x0
	ldr	x23, [x0]
	mov	x0, x23
	bl	_nouveau_drm
	mov	x24, x0
	mov	x0, x19
	bl	_nouveau_connector
	mov	x21, x0
Lloh0:
	adrp	x26, _connector_status_disconnected@GOTPAGE
Lloh1:
	ldr	x26, [x26, _connector_status_disconnected@GOTPAGEOFF]
	ldr	w20, [x26]
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, #0
	bl	_drm_mode_connector_update_edid_property
	ldr	x0, [x21]
	bl	_kfree
	str	xzr, [x21]
LBB0_2:
Lloh2:
	adrp	x8, _DCB_OUTPUT_LVDS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DCB_OUTPUT_LVDS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_encoder
	cbz	x0, LBB0_12
; %bb.3:
	mov	x22, x0
	ldr	x8, [x24]
	cbnz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x25
	bl	_nouveau_connector_detect
	mov	x20, x0
Lloh5:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh6:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
LBB0_5:
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x23
	mov	x1, x19
	bl	_nouveau_acpi_edid
	str	x0, [x21]
	cbnz	x0, LBB0_10
LBB0_7:
	mov	x0, x23
	mov	x1, #0
	bl	_nouveau_bios_fp_mode
	ldr	x8, [x24]
	cbz	x0, LBB0_14
; %bb.8:
	cbnz	x8, LBB0_10
; %bb.9:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
LBB0_10:
Lloh8:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh9:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
LBB0_11:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_drm_mode_connector_update_edid_property
	mov	x0, x19
	mov	x1, x22
	bl	_nouveau_connector_set_encoder
	b	LBB0_13
LBB0_12:
	ldr	w20, [x26]
LBB0_13:
	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
LBB0_14:
	cbnz	x8, LBB0_11
LBB0_15:
	mov	x0, x23
	bl	_nouveau_bios_embedded_edid
	cbz	x0, LBB0_11
; %bb.16:
Lloh11:
	adrp	x8, _EDID_LENGTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EDID_LENGTH@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_kmemdup
	str	x0, [x21]
Lloh17:
	adrp	x8, _connector_status_connected@GOTPAGE
Lloh18:
	ldr	x8, [x8, _connector_status_connected@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.comm	_DCB_OUTPUT_LVDS,4,2            ; @DCB_OUTPUT_LVDS
	.comm	_connector_status_connected,4,2 ; @connector_status_connected
	.comm	_EDID_LENGTH,4,2                ; @EDID_LENGTH
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_connector_status_unknown,4,2   ; @connector_status_unknown
	.comm	_nouveau_ignorelid,4,2          ; @nouveau_ignorelid
	.no_dead_strip	_nouveau_connector_detect_lvds
.subsections_via_symbols
