	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dcb_entry
_parse_dcb_entry:                       ## @parse_dcb_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	%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, %rbx
	movl	%edx, %r13d
	movq	%rdi, %r15
	callq	_nouveau_drm
	movq	%rax, %r14
	xorl	%eax, %eax
	cmpl	$32, (%r14)
	setl	%al
	movl	16(%rbx,%rax,8), %edi
	callq	_ROM32
	movl	%eax, -48(%rbp)
	movl	(%rbx), %edi
	callq	_ROM32
	movl	%eax, -44(%rbp)
	leaq	-44(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_apply_dcb_encoder_quirks
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_new_dcb_entry
	movq	%rax, %r12
	movl	-44(%rbp), %ecx
	movl	-48(%rbp), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_NV_INFO
	cmpl	$32, (%r14)
	movl	-44(%rbp), %edx
	movl	-48(%rbp), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %r8
	jl	LBB0_3
## %bb.2:
	callq	_parse_dcb20_entry
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	(%r12), %rax
	movq	_DCB_OUTPUT_TV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	8(%r12), %rax
	movq	_DCB_LOC_ON_CHIP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movl	$15, 16(%r12)
	jmp	LBB0_9
LBB0_3:
	callq	_parse_dcb15_entry
	testl	%eax, %eax
	jne	LBB0_6
LBB0_5:
	movl	$1, %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB outp %02d: %08x %08x\n"

	.comm	_DCB_OUTPUT_TV,8,3              ## @DCB_OUTPUT_TV
	.comm	_DCB_LOC_ON_CHIP,8,3            ## @DCB_LOC_ON_CHIP
	.no_dead_strip	_parse_dcb_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dcb_entry
_parse_dcb_entry:                       ; @parse_dcb_entry
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x0
	bl	_nouveau_drm
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, #31
	mov	w8, #24
	mov	w9, #16
	csel	x8, x9, x8, gt
	ldr	w0, [x21, x8]
	bl	_ROM32
	str	w0, [sp, #12]
	ldr	w0, [x21]
	bl	_ROM32
	str	w0, [sp, #8]
	add	x2, sp, #8
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x22
	bl	_apply_dcb_encoder_quirks
	cbz	x0, LBB0_9
; %bb.1:
	mov	x0, x20
	bl	_new_dcb_entry
	mov	x21, x0
	ldp	w3, w4, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_NV_INFO
	ldr	w8, [x20]
	ldp	w2, w3, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x4, x21
	cmp	w8, #32
	b.lt	LBB0_6
; %bb.2:
	bl	_parse_dcb20_entry
	cbz	w0, LBB0_7
LBB0_3:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _DCB_OUTPUT_TV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DCB_OUTPUT_TV@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	ldr	x8, [x21, #8]
Lloh5:
	adrp	x9, _DCB_LOC_ON_CHIP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DCB_LOC_ON_CHIP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	w0, #0
	mov	w8, #15
	str	w8, [x21, #16]
	b	LBB0_9
LBB0_6:
	bl	_parse_dcb15_entry
	cbnz	w0, LBB0_3
LBB0_7:
	mov	w0, #1
	b	LBB0_9
LBB0_8:
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB outp %02d: %08x %08x\n"

	.comm	_DCB_OUTPUT_TV,8,3              ; @DCB_OUTPUT_TV
	.comm	_DCB_LOC_ON_CHIP,8,3            ; @DCB_LOC_ON_CHIP
	.no_dead_strip	_parse_dcb_entry
.subsections_via_symbols
