	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_connector_detect_depth
_nouveau_connector_detect_depth:        ## @nouveau_connector_detect_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_connector
	movq	24(%rax), %rsi
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_14
LBB0_2:
	movq	(%rax), %rax
	movq	_DCB_CONNECTOR_eDP@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_4
## %bb.3:
	movl	$6, (%rbx)
	jmp	LBB0_14
LBB0_4:
	movq	(%rsi), %rsi
	movq	(%rsi), %rsi
	movq	_DCB_OUTPUT_LVDS@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	jne	LBB0_13
## %bb.5:
	movl	$6, (%rbx)
	cmpq	$0, 24(%r14)
	je	LBB0_7
## %bb.6:
	cmpq	$0, 16(%r14)
	je	LBB0_14
LBB0_13:
	movl	$8, (%rbx)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.8:
	movq	_DCB_CONNECTOR_LVDS_SPWG@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_11
## %bb.9:
	cmpl	$2, 484(%rcx)
	je	LBB0_10
LBB0_12:
	testb	$1, 8(%r14)
	jne	LBB0_13
	jmp	LBB0_14
LBB0_11:
	movq	(%rdx), %rax
	cmpq	(%r14), %rax
	jl	LBB0_12
LBB0_10:
	testb	$2, 8(%r14)
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CONNECTOR_eDP,8,3          ## @DCB_CONNECTOR_eDP
	.comm	_DCB_OUTPUT_LVDS,8,3            ## @DCB_OUTPUT_LVDS
	.comm	_DCB_CONNECTOR_LVDS_SPWG,8,3    ## @DCB_CONNECTOR_LVDS_SPWG
	.no_dead_strip	_nouveau_connector_detect_depth
.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_depth
_nouveau_connector_detect_depth:        ; @nouveau_connector_detect_depth
	.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	w0, [x0, #4]
	bl	_nouveau_drm
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_connector
	ldp	x8, x11, [x0, #16]
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	w10, [x19]
	cbnz	w10, LBB0_15
LBB0_2:
	ldr	x10, [x0]
Lloh0:
	adrp	x12, _DCB_CONNECTOR_eDP@GOTPAGE
Lloh1:
	ldr	x12, [x12, _DCB_CONNECTOR_eDP@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	cmp	x10, x12
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #6
	b	LBB0_14
LBB0_4:
	ldr	x11, [x11]
	ldr	x11, [x11]
Lloh3:
	adrp	x12, _DCB_OUTPUT_LVDS@GOTPAGE
Lloh4:
	ldr	x12, [x12, _DCB_OUTPUT_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	x12, [x12]
	cmp	x11, x12
	b.ne	LBB0_13
; %bb.5:
	mov	w11, #6
	str	w11, [x19]
	ldr	x11, [x20, #24]
	cbz	x11, LBB0_7
; %bb.6:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_13
	b	LBB0_15
LBB0_7:
	cbz	x9, LBB0_11
; %bb.8:
Lloh6:
	adrp	x11, _DCB_CONNECTOR_LVDS_SPWG@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DCB_CONNECTOR_LVDS_SPWG@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x9, #484]
	cmp	w8, #2
	b.eq	LBB0_12
LBB0_10:
	ldrb	w8, [x20, #8]
	tbnz	w8, #0, LBB0_13
	b	LBB0_15
LBB0_11:
	ldr	x8, [x8]
	ldr	x9, [x20]
	cmp	x8, x9
	b.lt	LBB0_10
LBB0_12:
	ldrb	w8, [x20, #8]
	tbz	w8, #1, LBB0_15
LBB0_13:
	mov	w8, #8
LBB0_14:
	str	w8, [x19]
LBB0_15:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CONNECTOR_eDP,8,3          ; @DCB_CONNECTOR_eDP
	.comm	_DCB_OUTPUT_LVDS,8,3            ; @DCB_OUTPUT_LVDS
	.comm	_DCB_CONNECTOR_LVDS_SPWG,8,3    ; @DCB_CONNECTOR_LVDS_SPWG
	.no_dead_strip	_nouveau_connector_detect_depth
.subsections_via_symbols
