	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_dcb_table
_parse_dcb_table:                       ## @parse_dcb_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	%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	%rsi, %r14
	movq	%rdi, %r13
	callq	_nouveau_drm
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_olddcb_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	addq	$8, %r14
	movl	(%rax), %ecx
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NV_INFO
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movq	_parse_dcb_entry@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_olddcb_outp_foreach
	cmpl	$32, (%r14)
	jg	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_merge_like_dcb_entries
LBB0_6:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_olddcb_conn
	testq	%rax, %rax
	je	LBB0_14
## %bb.7:
	movq	%rax, %r14
	movl	$1, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	callq	_ROM32
	movq	%r15, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edx
	movl	%eax, %ecx
	callq	_NV_INFO
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_olddcb_conn
	movq	%rax, %r14
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_14
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$255, (%r14)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%rbx), %r12d
	movq	%r13, %rdi
	callq	_olddcb_conntab
	cmpl	$3, 12(%rax)
	movl	(%r14), %edi
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_ROM16
	movq	%r15, %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dcb_fake_connectors
	jmp	LBB0_15
LBB0_1:
	movq	(%r14), %rax
	movq	_NVBIOS_BMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_fabricate_dcb_encoder_table
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVBIOS_BMP,8,3                 ## @NVBIOS_BMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DCB version %d.%d\n"

	.comm	_parse_dcb_entry,4,2            ## @parse_dcb_entry
L_.str.1:                               ## @.str.1
	.asciz	"DCB conn %02d: %04x\n"

L_.str.2:                               ## @.str.2
	.asciz	"DCB conn %02d: %08x\n"

	.no_dead_strip	_parse_dcb_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_dcb_table
_parse_dcb_table:                       ; @parse_dcb_table
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_nouveau_drm
	mov	x21, x0
	mov	x0, x20
	bl	_olddcb_table
	cbz	x0, LBB0_12
; %bb.1:
	mov	x23, x0
	add	x22, x19, #8
	ldr	w8, [x0]
	asr	w2, w8, #4
	and	w3, w8, #0xf
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_NV_INFO
	ldr	w8, [x23]
	str	w8, [x22]
Lloh2:
	adrp	x8, _parse_dcb_entry@GOTPAGE
Lloh3:
	ldr	x8, [x8, _parse_dcb_entry@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	bl	_olddcb_outp_foreach
	ldr	w8, [x22]
	cmp	w8, #32
	b.gt	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x22
	bl	_merge_like_dcb_entries
LBB0_3:
	mov	x0, x20
	mov	w1, #0
	bl	_olddcb_conn
	cbz	x0, LBB0_11
; %bb.4:
	mov	x25, x0
	mov	w22, #1
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh7:
	adrp	x24, l_.str.2@PAGE
Lloh8:
	add	x24, x24, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	bl	_ROM32
	mov	x3, x0
	mov	x0, x21
	mov	x1, x24
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, x26
	bl	_NV_INFO
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_olddcb_conn
	mov	x25, x0
	add	w22, w22, #1
	cbz	x0, LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w8, #255
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w26, w22, #1
	mov	x0, x20
	bl	_olddcb_conntab
	ldr	w8, [x0, #12]
	ldr	w0, [x25]
	cmp	w8, #3
	b.gt	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_ROM16
	mov	x3, x0
	mov	x0, x21
	mov	x1, x23
	b	LBB0_6
LBB0_11:
	mov	x0, x19
	bl	_dcb_fake_connectors
	b	LBB0_14
LBB0_12:
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _NVBIOS_BMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVBIOS_BMP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x20
	mov	x1, x19
	bl	_fabricate_dcb_encoder_table
LBB0_14:
	mov	w0, #0
	b	LBB0_16
LBB0_15:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_NVBIOS_BMP,8,3                 ; @NVBIOS_BMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DCB version %d.%d\n"

	.comm	_parse_dcb_entry,4,2            ; @parse_dcb_entry
l_.str.1:                               ; @.str.1
	.asciz	"DCB conn %02d: %04x\n"

l_.str.2:                               ; @.str.2
	.asciz	"DCB conn %02d: %08x\n"

	.no_dead_strip	_parse_dcb_table
.subsections_via_symbols
