	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxm_dcb_sanitise_entry
_mxm_dcb_sanitise_entry:                ## @mxm_dcb_sanitise_entry
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movq	%rdi, %r12
	callq	_nouveau_mxm
	movq	%rax, %r14
	movslq	%ebx, %rax
	shlq	$2, %rax
	addq	(%r12), %rax
	movq	%rax, -56(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -48(%rbp)
	movq	_mxm_match_dcb@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_mxms_foreach
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_nv_debug
	movq	-56(%rbp), %rax
	orl	$15, (%rax)
	jmp	LBB0_17
LBB0_2:
	movl	-36(%rbp), %esi
	movq	%r12, %rdi
	callq	_mxm_ddc_map
	movq	-56(%rbp), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edi
	andl	$15, %edi
	movq	_DCB_OUTPUT_DP@GOTPCREL(%rip), %rbx
	movl	%eax, %edx
	shll	$4, %edx
	cmpl	(%rbx), %edi
	cmovel	%eax, %edx
	andl	$240, %edx
	cmpl	$240, %edx
	je	LBB0_4
## %bb.3:
	andl	$-241, %esi
	orl	%edx, %esi
	movl	%esi, (%rcx)
LBB0_4:
	cmpl	$2, -48(%rbp)
	jb	LBB0_6
## %bb.5:
	movl	-40(%rbp), %esi
	movq	%r12, %rdi
	callq	_mxm_sor_map
	andl	$48, %eax
	movq	-56(%rbp), %rcx
	movl	(%rcx), %esi
	movl	4(%rcx), %edx
	andl	$-49, %edx
	orl	%eax, %edx
	movl	%edx, 4(%rcx)
LBB0_6:
	movq	(%r12), %r15
	shrl	$12, %esi
	andl	$15, %esi
	leaq	-64(%rbp), %rdx
	leaq	-60(%rbp), %rcx
	movq	%r12, %rdi
	callq	_dcb_conn
	movslq	%eax, %r12
	movl	(%r15,%r12,4), %ebx
	movl	-44(%rbp), %eax
	decl	%eax
	cmpl	$13, %eax
	ja	LBB0_15
## %bb.7:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movq	-56(%rbp), %rax
	orl	$4, 4(%rax)
	jmp	LBB0_15
LBB0_10:
	movq	_DCB_CONNECTOR_HDMI_1@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_DCB_CONNECTOR_DVI_D@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_8:
	movq	-56(%rbp), %rax
	movl	4(%rax), %ecx
	jmp	LBB0_13
LBB0_12:
	movq	-56(%rbp), %rax
	movl	$65536, %ecx                    ## imm = 0x10000
	orl	4(%rax), %ecx
	movl	%ecx, 4(%rax)
LBB0_13:
	orl	$4, %ecx
	movl	%ecx, 4(%rax)
	movq	_DCB_CONNECTOR_eDP@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_mxms_version
	cmpl	$768, %eax                      ## imm = 0x300
	jl	LBB0_17
## %bb.16:
	movl	%ebx, (%r15,%r12,4)
LBB0_17:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_8
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_mxm_match_dcb,4,2              ## @mxm_match_dcb
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"disable %d: 0x%08x 0x%08x\n"

	.comm	_DCB_OUTPUT_DP,4,2              ## @DCB_OUTPUT_DP
	.comm	_DCB_CONNECTOR_HDMI_1,4,2       ## @DCB_CONNECTOR_HDMI_1
	.comm	_DCB_CONNECTOR_DVI_D,4,2        ## @DCB_CONNECTOR_DVI_D
	.comm	_DCB_CONNECTOR_eDP,4,2          ## @DCB_CONNECTOR_eDP
	.no_dead_strip	_mxm_dcb_sanitise_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxm_dcb_sanitise_entry
_mxm_dcb_sanitise_entry:                ; @mxm_dcb_sanitise_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x22, x3
	mov	x21, x2
	mov	x20, x0
	bl	_nouveau_mxm
	mov	x19, x0
	ldr	x8, [x20]
	add	x8, x8, w22, sxtw #2
	stp	xzr, xzr, [sp, #16]
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, _mxm_match_dcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxm_match_dcb@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w1, #1
	bl	_mxms_foreach
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	ldp	w3, w4, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_nv_debug
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	orr	w9, w9, #0xf
	str	w9, [x8]
	b	LBB0_17
LBB0_2:
	ldr	w1, [sp, #28]
	mov	x0, x20
	bl	_mxm_ddc_map
	ldr	x9, [sp, #8]
	ldr	w8, [x9]
	and	w10, w8, #0xf
Lloh5:
	adrp	x11, _DCB_OUTPUT_DP@GOTPAGE
Lloh6:
	ldr	x11, [x11, _DCB_OUTPUT_DP@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	lsl	w12, w0, #4
	cmp	w10, w11
	csel	w10, w0, w12, eq
	and	w10, w10, #0xf0
	cmp	w10, #240
	b.eq	LBB0_4
; %bb.3:
	and	w8, w8, #0xffffff0f
	orr	w8, w10, w8
	str	w8, [x9]
LBB0_4:
	ldr	w9, [sp, #16]
	cmp	w9, #2
	b.lo	LBB0_6
; %bb.5:
	ldr	w1, [sp, #24]
	mov	x0, x20
	bl	_mxm_sor_map
	ldr	x9, [sp, #8]
	lsr	w10, w0, #4
	ldp	w8, w11, [x9]
	bfi	w11, w10, #4, #2
	str	w11, [x9, #4]
LBB0_6:
	ldr	x21, [x20]
	ubfx	w1, w8, #12, #4
	add	x2, sp, #4
	mov	x3, sp
	mov	x0, x20
	bl	_dcb_conn
	mov	x20, x0
	ldr	w22, [x21, w0, sxtw #2]
	ldr	w8, [sp, #20]
	sub	w8, w8, #1
	cmp	w8, #13
	b.hi	LBB0_15
; %bb.7:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_8
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_8:
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, #0x4
	str	w9, [x8, #4]
	b	LBB0_15
LBB0_9:
Lloh10:
	adrp	x8, _DCB_CONNECTOR_HDMI_1@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DCB_CONNECTOR_HDMI_1@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
Lloh12:
	adrp	x8, _DCB_CONNECTOR_DVI_D@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DCB_CONNECTOR_DVI_D@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	b	LBB0_13
LBB0_12:
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #4]
	orr	w9, w9, #0x10000
	str	w9, [x8, #4]
LBB0_13:
	orr	w9, w9, #0x4
	str	w9, [x8, #4]
Lloh14:
	adrp	x8, _DCB_CONNECTOR_eDP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCB_CONNECTOR_eDP@GOTPAGEOFF]
LBB0_14:
	ldr	w22, [x8]
LBB0_15:
	mov	x0, x19
	bl	_mxms_version
	cmp	w0, #768
	b.lt	LBB0_17
; %bb.16:
	sxtw	x8, w20
	str	w22, [x21, x8, lsl #2]
LBB0_17:
	mov	w0, #0
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_9-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_15-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.comm	_mxm_match_dcb,4,2              ; @mxm_match_dcb
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"disable %d: 0x%08x 0x%08x\n"

	.comm	_DCB_OUTPUT_DP,4,2              ; @DCB_OUTPUT_DP
	.comm	_DCB_CONNECTOR_HDMI_1,4,2       ; @DCB_CONNECTOR_HDMI_1
	.comm	_DCB_CONNECTOR_DVI_D,4,2        ; @DCB_CONNECTOR_DVI_D
	.comm	_DCB_CONNECTOR_eDP,4,2          ; @DCB_CONNECTOR_eDP
	.no_dead_strip	_mxm_dcb_sanitise_entry
.subsections_via_symbols
