	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_connector_set_encoder
_nouveau_connector_set_encoder:         ## @nouveau_connector_set_encoder
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_nouveau_connector
	movq	%rax, %r15
	movq	16(%rbx), %rdi
	callq	_nouveau_drm
	cmpq	%r14, 8(%r15)
	je	LBB0_17
## %bb.1:
	movq	16(%rbx), %rcx
	movq	%r14, 8(%r15)
	movq	(%rax), %rax
	movq	_NV_DEVICE_INFO_V0_TESLA@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_2
## %bb.3:
	movq	(%r14), %rdx
	movq	(%rdx), %rdx
	movq	_DCB_OUTPUT_LVDS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.4:
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	je	LBB0_5
## %bb.6:
	movl	$1, 4(%rbx)
	movq	_NV_DEVICE_INFO_V0_KELVIN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_7
LBB0_10:
	movl	$0, (%rbx)
	jmp	LBB0_12
LBB0_2:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, (%rbx)
	jmp	LBB0_12
LBB0_5:
	movq	$0, (%rbx)
	jmp	LBB0_12
LBB0_7:
	movq	_NV_DEVICE_INFO_V0_CELSIUS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_11
## %bb.8:
	movq	8(%rcx), %rdx
	movl	$4080, %eax                     ## imm = 0xFF0
	andl	(%rdx), %eax
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_11
## %bb.9:
	cmpl	$336, %eax                      ## imm = 0x150
	jne	LBB0_10
LBB0_11:
	movl	$1, (%rbx)
LBB0_12:
	movq	(%r15), %rax
	movq	_DCB_CONNECTOR_DVI_I@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_17
## %bb.13:
	addq	$8, %rbx
	movl	(%rcx), %esi
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	_DRM_MODE_SUBCONNECTOR_DVID@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_DRM_MODE_SUBCONNECTOR_DVIA@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_object_property_set_value  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ## @NV_DEVICE_INFO_V0_TESLA
	.comm	_DCB_OUTPUT_LVDS,8,3            ## @DCB_OUTPUT_LVDS
	.comm	_DCB_OUTPUT_TMDS,8,3            ## @DCB_OUTPUT_TMDS
	.comm	_NV_DEVICE_INFO_V0_KELVIN,8,3   ## @NV_DEVICE_INFO_V0_KELVIN
	.comm	_NV_DEVICE_INFO_V0_CELSIUS,8,3  ## @NV_DEVICE_INFO_V0_CELSIUS
	.comm	_DCB_CONNECTOR_DVI_I,8,3        ## @DCB_CONNECTOR_DVI_I
	.comm	_DRM_MODE_SUBCONNECTOR_DVID,4,2 ## @DRM_MODE_SUBCONNECTOR_DVID
	.comm	_DRM_MODE_SUBCONNECTOR_DVIA,4,2 ## @DRM_MODE_SUBCONNECTOR_DVIA
	.no_dead_strip	_nouveau_connector_set_encoder
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_connector_set_encoder
_nouveau_connector_set_encoder:         ; @nouveau_connector_set_encoder
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_nouveau_connector
	mov	x21, x0
	ldr	x0, [x20, #16]
	bl	_nouveau_drm
	ldr	x8, [x21, #8]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.1:
	ldr	x8, [x20, #16]
	str	x19, [x21, #8]
	ldr	x10, [x0]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_TESLA@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x9]
Lloh3:
	adrp	x9, _DCB_OUTPUT_TMDS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DCB_OUTPUT_TMDS@GOTPAGEOFF]
	cmp	x10, x11
	b.ge	LBB0_4
; %bb.2:
	ldr	x11, [x19]
	ldr	x11, [x11]
Lloh5:
	adrp	x12, _DCB_OUTPUT_LVDS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _DCB_OUTPUT_LVDS@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	ldr	x13, [x9]
	cmp	x11, x12
	ccmp	x11, x13, #4, ne
	b.ne	LBB0_5
; %bb.3:
	str	xzr, [x20]
	b	LBB0_11
LBB0_4:
	movi.2s	v0, #1
	str	d0, [x20]
	b	LBB0_11
LBB0_5:
	mov	w11, #1
	str	w11, [x20, #4]
Lloh8:
	adrp	x11, _NV_DEVICE_INFO_V0_KELVIN@GOTPAGE
Lloh9:
	ldr	x11, [x11, _NV_DEVICE_INFO_V0_KELVIN@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_7
LBB0_6:
	str	wzr, [x20]
	b	LBB0_11
LBB0_7:
Lloh11:
	adrp	x11, _NV_DEVICE_INFO_V0_CELSIUS@GOTPAGE
Lloh12:
	ldr	x11, [x11, _NV_DEVICE_INFO_V0_CELSIUS@GOTPAGEOFF]
Lloh13:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_10
; %bb.8:
	ldr	x10, [x8, #8]
	ldr	w10, [x10]
	and	w10, w10, #0xff0
	cmp	w10, #256
	b.eq	LBB0_10
; %bb.9:
	cmp	w10, #336
	b.ne	LBB0_6
LBB0_10:
	mov	w10, #1
	str	w10, [x20]
LBB0_11:
	ldr	x10, [x21]
Lloh14:
	adrp	x11, _DCB_CONNECTOR_DVI_I@GOTPAGE
Lloh15:
	ldr	x11, [x11, _DCB_CONNECTOR_DVI_I@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_13
; %bb.12:
	add	x0, x20, #8
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _DRM_MODE_SUBCONNECTOR_DVID@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DRM_MODE_SUBCONNECTOR_DVID@GOTPAGEOFF]
Lloh19:
	adrp	x11, _DRM_MODE_SUBCONNECTOR_DVIA@GOTPAGE
Lloh20:
	ldr	x11, [x11, _DRM_MODE_SUBCONNECTOR_DVIA@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_drm_object_property_set_value
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_DEVICE_INFO_V0_TESLA,8,3    ; @NV_DEVICE_INFO_V0_TESLA
	.comm	_DCB_OUTPUT_LVDS,8,3            ; @DCB_OUTPUT_LVDS
	.comm	_DCB_OUTPUT_TMDS,8,3            ; @DCB_OUTPUT_TMDS
	.comm	_NV_DEVICE_INFO_V0_KELVIN,8,3   ; @NV_DEVICE_INFO_V0_KELVIN
	.comm	_NV_DEVICE_INFO_V0_CELSIUS,8,3  ; @NV_DEVICE_INFO_V0_CELSIUS
	.comm	_DCB_CONNECTOR_DVI_I,8,3        ; @DCB_CONNECTOR_DVI_I
	.comm	_DRM_MODE_SUBCONNECTOR_DVID,4,2 ; @DRM_MODE_SUBCONNECTOR_DVID
	.comm	_DRM_MODE_SUBCONNECTOR_DVIA,4,2 ; @DRM_MODE_SUBCONNECTOR_DVIA
	.no_dead_strip	_nouveau_connector_set_encoder
.subsections_via_symbols
