	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_connector_force
_nouveau_connector_force:               ## @nouveau_connector_force
	.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	16(%rdi), %edi
	callq	_nouveau_drm
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_nouveau_connector
	movq	(%rax), %rax
	movq	_DCB_CONNECTOR_DVI_I@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_DRM_FORCE_ON_DIGITAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_DCB_OUTPUT_ANY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_DCB_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_find_encoder
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nouveau_connector_set_encoder  ## TAILCALL
LBB0_6:
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_ERROR
	movq	_connector_status_disconnected@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_CONNECTOR_DVI_I,8,3        ## @DCB_CONNECTOR_DVI_I
	.comm	_DRM_FORCE_ON_DIGITAL,8,3       ## @DRM_FORCE_ON_DIGITAL
	.comm	_DCB_OUTPUT_TMDS,4,2            ## @DCB_OUTPUT_TMDS
	.comm	_DCB_OUTPUT_ANALOG,4,2          ## @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_ANY,4,2             ## @DCB_OUTPUT_ANY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't find encoder to force %s on!\n"

	.comm	_connector_status_disconnected,4,2 ## @connector_status_disconnected
	.no_dead_strip	_nouveau_connector_force
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_connector_force
_nouveau_connector_force:               ; @nouveau_connector_force
	.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, #16]
	bl	_nouveau_drm
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_connector
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DCB_CONNECTOR_DVI_I@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_CONNECTOR_DVI_I@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DRM_FORCE_ON_DIGITAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_FORCE_ON_DIGITAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DCB_OUTPUT_ANALOG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DCB_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh8:
	adrp	x11, _DCB_OUTPUT_TMDS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _DCB_OUTPUT_TMDS@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _DCB_OUTPUT_ANY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DCB_OUTPUT_ANY@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_find_encoder
	cbz	x0, LBB0_5
; %bb.4:
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nouveau_connector_set_encoder
LBB0_5:
	ldr	w2, [x19, #12]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
Lloh14:
	adrp	x8, _connector_status_disconnected@GOTPAGE
Lloh15:
	ldr	x8, [x8, _connector_status_disconnected@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_CONNECTOR_DVI_I,8,3        ; @DCB_CONNECTOR_DVI_I
	.comm	_DRM_FORCE_ON_DIGITAL,8,3       ; @DRM_FORCE_ON_DIGITAL
	.comm	_DCB_OUTPUT_TMDS,4,2            ; @DCB_OUTPUT_TMDS
	.comm	_DCB_OUTPUT_ANALOG,4,2          ; @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_ANY,4,2             ; @DCB_OUTPUT_ANY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't find encoder to force %s on!\n"

	.comm	_connector_status_disconnected,4,2 ; @connector_status_disconnected
	.no_dead_strip	_nouveau_connector_force
.subsections_via_symbols
