	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fabricate_dcb_encoder_table
_fabricate_dcb_encoder_table:           ## @fabricate_dcb_encoder_table
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	32(%rsi), %r14
	callq	_nv_two_heads
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx), %r15d
	incl	%r15d
	movq	_DCB_OUTPUT_ANALOG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	$1, %ecx
	movl	$1, %r8d
	callq	_fabricate_dcb_output
	movl	4(%rbx), %esi
	movq	%r12, %rdi
	callq	_nv04_tv_identify
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_DCB_OUTPUT_TV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 24(%rbx)
	jne	LBB0_5
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_6
LBB0_5:
	movq	_DCB_OUTPUT_TMDS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	movl	$1, %r8d
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fabricate_dcb_output           ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_OUTPUT_ANALOG,4,2          ## @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_TV,4,2              ## @DCB_OUTPUT_TV
	.comm	_DCB_OUTPUT_TMDS,4,2            ## @DCB_OUTPUT_TMDS
	.no_dead_strip	_fabricate_dcb_encoder_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fabricate_dcb_encoder_table
_fabricate_dcb_encoder_table:           ; @fabricate_dcb_encoder_table
	.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	x20, x1
	mov	x22, x0
	add	x19, x1, #32
	bl	_nv_two_heads
	cmp	x0, #0
	mov	w8, #3
	csinc	w21, w8, wzr, ne
Lloh0:
	adrp	x8, _DCB_OUTPUT_ANALOG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DCB_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	mov	w3, #1
	mov	w4, #1
	bl	_fabricate_dcb_output
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	_nv04_tv_identify
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DCB_OUTPUT_TV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCB_OUTPUT_TV@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	mov	x0, x19
	mov	x3, x21
	mov	w4, #0
	b	LBB0_5
LBB0_2:
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _DCB_OUTPUT_TMDS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DCB_OUTPUT_TMDS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20, #8]
	mov	x0, x19
	mov	x3, x21
	mov	w4, #1
LBB0_5:
	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	_fabricate_dcb_output
LBB0_6:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_OUTPUT_ANALOG,4,2          ; @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_TV,4,2              ; @DCB_OUTPUT_TV
	.comm	_DCB_OUTPUT_TMDS,4,2            ; @DCB_OUTPUT_TMDS
	.no_dead_strip	_fabricate_dcb_encoder_table
.subsections_via_symbols
