	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_bit_tmds_tbl_entry
_parse_bit_tmds_tbl_entry:              ## @parse_bit_tmds_tbl_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	callq	_nouveau_drm
	movq	%rax, %r14
	cmpl	$2, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	(%r12), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_ROM16
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %ecx
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_INFO
	movq	(%r12), %rax
	cmpl	$17, (%rax,%r15,4)
	jne	LBB0_9
## %bb.3:
	movl	28(%rax,%r15,4), %edi
	callq	_ROM16
	movq	%rax, %rbx
	movq	(%r12), %rax
	movl	36(%rax,%r15,4), %edi
	callq	_ROM16
	movq	(%r12), %rcx
	cmpl	$113, (%rcx,%rbx,4)
	jne	LBB0_5
## %bb.4:
	cmpl	$113, (%rcx,%rax,4)
	je	LBB0_6
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_WARN
	movq	(%r12), %rcx
LBB0_6:
	movl	44(%rcx,%r15,4), %edi
	callq	_ROM16
	movq	%rax, 16(%r12)
	movq	(%r12), %rax
	movl	52(%rax,%r15,4), %edi
	callq	_ROM16
	movq	%rax, 8(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_INFO
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Do not understand BIT TMDS table\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Pointer to TMDS table not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"TMDS table version %d.%d\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"TMDS table script pointers not stubbed\n"

	.no_dead_strip	_parse_bit_tmds_tbl_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_bit_tmds_tbl_entry
_parse_bit_tmds_tbl_entry:              ; @parse_bit_tmds_tbl_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, x2
	mov	x19, x1
	bl	_nouveau_drm
	mov	x20, x0
	ldr	w8, [x21]
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_ROM16
	cbz	x0, LBB0_8
; %bb.2:
	ldr	x8, [x19]
	lsl	x22, x0, #2
	ldr	w8, [x8, x22]
	asr	w9, w8, #4
	and	w8, w8, #0xf
	stp	x9, x8, [sp]
Lloh0:
	adrp	x1, l_.str.2@PAGE
Lloh1:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_NV_INFO
	ldr	x8, [x19]
	ldr	w9, [x8, x22]
	cmp	w9, #17
	b.ne	LBB0_12
; %bb.3:
	add	x8, x22, x8
	ldr	w0, [x8, #28]
	bl	_ROM16
	mov	x21, x0
	ldr	x8, [x19]
	add	x8, x22, x8
	ldr	w0, [x8, #36]
	bl	_ROM16
	ldr	x8, [x19]
	ldr	w9, [x8, x21, lsl #2]
	cmp	w9, #113
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x8, x0, lsl #2]
	cmp	w9, #113
	b.eq	LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_NV_WARN
	ldr	x8, [x19]
LBB0_6:
	add	x8, x22, x8
	ldr	w0, [x8, #44]
	bl	_ROM16
	str	x0, [x19, #16]
	ldr	x8, [x19]
	add	x8, x22, x8
	ldr	w0, [x8, #52]
	bl	_ROM16
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #8]
	b	LBB0_11
LBB0_7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
	b	LBB0_9
LBB0_8:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NV_INFO
LBB0_9:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
Lloh10:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Do not understand BIT TMDS table\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Pointer to TMDS table not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"TMDS table version %d.%d\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"TMDS table script pointers not stubbed\n"

	.no_dead_strip	_parse_bit_tmds_tbl_entry
.subsections_via_symbols
