	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apply_dcb_encoder_quirks
_apply_dcb_encoder_quirks:              ## @apply_dcb_encoder_quirks
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	$1037, %esi                     ## imm = 0x40D
	movl	$4136, %edx                     ## imm = 0x1028
	movl	$411, %ecx                      ## imm = 0x19B
	callq	_nv_match_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	cmpl	$33710866, (%r14)               ## imm = 0x2026312
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	cmpl	$32, (%r12)
	je	LBB0_27
LBB0_3:
	movq	%rbx, %rdi
	movl	$513, %esi                      ## imm = 0x201
	movl	$5218, %edx                     ## imm = 0x1462
	movl	$34897, %ecx                    ## imm = 0x8851
	callq	_nv_match_device
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	cmpl	$-234860524, (%r14)             ## imm = 0xF2005014
	jne	LBB0_7
## %bb.5:
	cmpl	$-1, (%r12)
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	movl	$3235, %esi                     ## imm = 0xCA3
	movl	$5762, %edx                     ## imm = 0x1682
	movl	$12291, %ecx                    ## imm = 0x3003
	callq	_nv_match_device
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	cmpl	$3, %r15d
	ja	LBB0_9
## %bb.10:
	movslq	%r15d, %rcx
	leaq	L_switch.table.apply_dcb_encoder_quirks(%rip), %rax
	movl	(%rax,%rcx,4), %eax
	leaq	L_switch.table.apply_dcb_encoder_quirks.3(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	jmp	LBB0_11
LBB0_9:
	xorl	%ecx, %ecx
	movl	$14, %eax
LBB0_11:
	movl	%eax, (%r14)
	movl	%ecx, (%r12)
LBB0_12:
	movq	%rbx, %rdi
	movl	$1557, %esi                     ## imm = 0x615
	movl	$5762, %edx                     ## imm = 0x1682
	movl	$9733, %ecx                     ## imm = 0x2605
	callq	_nv_match_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.13:
	cmpl	$3, %r15d
	ja	LBB0_14
## %bb.15:
	movslq	%r15d, %rcx
	leaq	L_switch.table.apply_dcb_encoder_quirks.2(%rip), %rax
	movl	(%rax,%rcx,4), %eax
	leaq	L_switch.table.apply_dcb_encoder_quirks.3(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
	jmp	LBB0_16
LBB0_14:
	xorl	%ecx, %ecx
	movl	$14, %eax
LBB0_16:
	movl	%eax, (%r14)
	movl	%ecx, (%r12)
LBB0_17:
	movq	%rbx, %rdi
	movl	$1057, %esi                     ## imm = 0x421
	movl	$14402, %edx                    ## imm = 0x3842
	movl	$51091, %ecx                    ## imm = 0xC793
	callq	_nv_match_device
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.18:
	cmpl	$2, %r15d
	je	LBB0_25
## %bb.19:
	cmpl	$1, %r15d
	je	LBB0_23
## %bb.20:
	testl	%r15d, %r15d
	jne	LBB0_27
## %bb.21:
	cmpl	$33555200, (%r14)               ## imm = 0x2000300
	jne	LBB0_27
## %bb.22:
	movl	$33624832, (%r14)               ## imm = 0x2011300
	jmp	LBB0_27
LBB0_25:
	cmpl	$33624850, (%r14)               ## imm = 0x2011312
	jne	LBB0_27
## %bb.26:
	movl	$33555218, (%r14)               ## imm = 0x2000312
	jmp	LBB0_27
LBB0_23:
	cmpl	$67179280, (%r14)               ## imm = 0x4011310
	jne	LBB0_27
## %bb.24:
	movl	$67109648, (%r14)               ## imm = 0x4000310
	jmp	LBB0_27
LBB0_6:
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_fabricate_dcb_output
	xorl	%eax, %eax
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_OUTPUT_TMDS,4,2            ## @DCB_OUTPUT_TMDS
	.no_dead_strip	_apply_dcb_encoder_quirks
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.apply_dcb_encoder_quirks
L_switch.table.apply_dcb_encoder_quirks:
	.long	33559296                        ## 0x2001300
	.long	16843538                        ## 0x1010312
	.long	16843536                        ## 0x1010310
	.long	33694562                        ## 0x2022362

	.p2align	2                               ## @switch.table.apply_dcb_encoder_quirks.2
L_switch.table.apply_dcb_encoder_quirks.2:
	.long	33563392                        ## 0x2002300
	.long	16843538                        ## 0x1010312
	.long	67240720                        ## 0x4020310
	.long	33690402                        ## 0x2021322

	.p2align	2                               ## @switch.table.apply_dcb_encoder_quirks.3
L_switch.table.apply_dcb_encoder_quirks.3:
	.long	40                              ## 0x28
	.long	131120                          ## 0x20030
	.long	40                              ## 0x28
	.long	131088                          ## 0x20010

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apply_dcb_encoder_quirks
_apply_dcb_encoder_quirks:              ; @apply_dcb_encoder_quirks
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_nouveau_drm
	mov	x23, x0
	mov	x0, x21
	mov	w1, #1037
	mov	w2, #4136
	mov	w3, #411
	bl	_nv_match_device
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x19]
	mov	w9, #4882
	movk	w9, #513, lsl #16
	add	w9, w9, #21, lsl #12            ; =86016
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [x22]
	cmp	w8, #32
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_28
LBB0_4:
	mov	x0, x21
	mov	w1, #513
	mov	w2, #5218
	mov	w3, #34897
	bl	_nv_match_device
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	mov	w9, #20500
	movk	w9, #61952, lsl #16
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x22]
	cmn	w8, #1
	b.eq	LBB0_29
LBB0_7:
	mov	x0, x21
	mov	w1, #3235
	mov	w2, #5762
	mov	w3, #12291
	bl	_nv_match_device
	cbz	x0, LBB0_12
; %bb.8:
	cmp	w20, #3
	b.hi	LBB0_10
; %bb.9:
	sbfiz	x8, x20, #2, #32
Lloh0:
	adrp	x9, l_switch.table.apply_dcb_encoder_quirks@PAGE
Lloh1:
	add	x9, x9, l_switch.table.apply_dcb_encoder_quirks@PAGEOFF
	ldr	w9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.apply_dcb_encoder_quirks.3@PAGE
Lloh3:
	add	x10, x10, l_switch.table.apply_dcb_encoder_quirks.3@PAGEOFF
	ldr	w8, [x10, x8]
	b	LBB0_11
LBB0_10:
	mov	w8, #0
	mov	w9, #14
LBB0_11:
	str	w9, [x19]
	str	w8, [x22]
LBB0_12:
	mov	x0, x21
	mov	w1, #1557
	mov	w2, #5762
	mov	w3, #9733
	bl	_nv_match_device
	cbz	x0, LBB0_17
; %bb.13:
	cmp	w20, #3
	b.hi	LBB0_15
; %bb.14:
	mov	x8, x20
	sbfiz	x8, x8, #2, #32
Lloh4:
	adrp	x9, l_switch.table.apply_dcb_encoder_quirks.2@PAGE
Lloh5:
	add	x9, x9, l_switch.table.apply_dcb_encoder_quirks.2@PAGEOFF
	ldr	w9, [x9, x8]
Lloh6:
	adrp	x10, l_switch.table.apply_dcb_encoder_quirks.3@PAGE
Lloh7:
	add	x10, x10, l_switch.table.apply_dcb_encoder_quirks.3@PAGEOFF
	ldr	w8, [x10, x8]
	b	LBB0_16
LBB0_15:
	mov	w8, #0
	mov	w9, #14
LBB0_16:
	str	w9, [x19]
	str	w8, [x22]
LBB0_17:
	mov	x0, x21
	mov	w1, #1057
	mov	w2, #14402
	mov	w3, #51091
	bl	_nv_match_device
	cbz	x0, LBB0_27
; %bb.18:
	cmp	w20, #2
	b.eq	LBB0_23
; %bb.19:
	cmp	w20, #1
	b.eq	LBB0_25
; %bb.20:
	cbnz	w20, LBB0_27
; %bb.21:
	mov	w8, #768
	movk	w8, #512, lsl #16
	ldr	w9, [x19]
	cmp	w9, w8
	b.ne	LBB0_27
; %bb.22:
	add	w8, w8, #17, lsl #12            ; =69632
	b	LBB0_26
LBB0_23:
	ldr	w8, [x19]
	mov	w9, #4882
	movk	w9, #513, lsl #16
	cmp	w8, w9
	b.ne	LBB0_27
; %bb.24:
	mov	w8, #18
	mov	w9, #768
	movk	w9, #512, lsl #16
	orr	w8, w9, w8
	b	LBB0_26
LBB0_25:
	mov	w8, #784
	movk	w8, #1024, lsl #16
	ldr	w9, [x19]
	mov	w10, #4096
	movk	w10, #1, lsl #16
	orr	w10, w8, w10
	cmp	w9, w10
	b.ne	LBB0_27
LBB0_26:
	str	w8, [x19]
LBB0_27:
	mov	w0, #1
LBB0_28:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_29:
Lloh8:
	adrp	x8, _DCB_OUTPUT_TMDS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DCB_OUTPUT_TMDS@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #1
	mov	w3, #1
	mov	w4, #1
	bl	_fabricate_dcb_output
	mov	w0, #0
	b	LBB0_28
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_OUTPUT_TMDS,4,2            ; @DCB_OUTPUT_TMDS
	.no_dead_strip	_apply_dcb_encoder_quirks
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.apply_dcb_encoder_quirks
l_switch.table.apply_dcb_encoder_quirks:
	.long	33559296                        ; 0x2001300
	.long	16843538                        ; 0x1010312
	.long	16843536                        ; 0x1010310
	.long	33694562                        ; 0x2022362

	.p2align	2                               ; @switch.table.apply_dcb_encoder_quirks.2
l_switch.table.apply_dcb_encoder_quirks.2:
	.long	33563392                        ; 0x2002300
	.long	16843538                        ; 0x1010312
	.long	67240720                        ; 0x4020310
	.long	33690402                        ; 0x2021322

	.p2align	2                               ; @switch.table.apply_dcb_encoder_quirks.3
l_switch.table.apply_dcb_encoder_quirks.3:
	.long	40                              ; 0x28
	.long	131120                          ; 0x20030
	.long	40                              ; 0x28
	.long	131088                          ; 0x20010

.subsections_via_symbols
