	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_bit_i_tbl_entry
_parse_bit_i_tbl_entry:                 ## @parse_bit_i_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, %r14
	callq	_nouveau_drm
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	$5, %eax
	jg	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_NV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_2:
	movq	8(%r14), %rcx
	movslq	4(%rbx), %rdx
	movl	20(%rcx,%rdx,4), %esi
	movl	%esi, (%r14)
	movq	_FEATURE_MOBILE@GOTPCREL(%rip), %rdi
	andl	(%rdi), %esi
	movl	%esi, 16(%r14)
	cmpl	$14, %eax
	ja	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_NV_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_4:
	movl	52(%rcx,%rdx,4), %edi
	callq	_ROM16
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rax, %r12
	movq	8(%r14), %rax
	movl	(%rax,%r12,4), %ecx
	testl	$-17, %ecx
	je	LBB0_7
## %bb.6:
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_NV_WARN
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_7:
	movslq	4(%rax,%r12,4), %rcx
	addq	%rcx, %r12
	movl	(%rax,%r12,4), %edi
	callq	_ROM32
	movq	%rax, 32(%r14)
	movq	8(%r14), %rax
	movl	16(%rax,%r12,4), %edi
	callq	_ROM32
	movq	%rax, 24(%r14)
LBB0_8:
	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	"BIT i table too short for needed information\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FEATURE_MOBILE,4,2             ## @FEATURE_MOBILE
L_.str.1:                               ## @.str.1
	.asciz	"BIT i table not long enough for DAC load detection comparison table\n"

L_.str.2:                               ## @.str.2
	.asciz	"DAC load detection comparison table version %d.%d not known\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_parse_bit_i_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_i_tbl_entry
_parse_bit_i_tbl_entry:                 ; @parse_bit_i_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	w9, [x21]
	cmp	w9, #5
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19, #8]
	ldr	w10, [x21, #4]
	add	w11, w10, #5
	ldr	w11, [x8, w11, sxtw #2]
	str	w11, [x19]
Lloh2:
	adrp	x12, _FEATURE_MOBILE@GOTPAGE
Lloh3:
	ldr	x12, [x12, _FEATURE_MOBILE@GOTPAGEOFF]
Lloh4:
	ldr	w12, [x12]
	and	w11, w12, w11
	str	w11, [x19, #16]
	cmp	w9, #14
	b.hi	LBB0_7
; %bb.3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NV_WARN
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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_7:
	add	w9, w10, #13
	ldr	w0, [x8, w9, sxtw #2]
	bl	_ROM16
	cbz	x0, LBB0_6
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x0, lsl #2]
	tst	w9, #0xffffffef
	b.eq	LBB0_10
; %bb.9:
	asr	w8, w9, #4
	and	w9, w9, #0xf
	stp	x8, x9, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_NV_WARN
Lloh11:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_5
LBB0_10:
	add	x9, x8, x0, lsl #2
	ldrsw	x9, [x9, #4]
	add	x9, x0, x9
	lsl	x20, x9, #2
	ldr	w0, [x8, x20]
	bl	_ROM32
	str	x0, [x19, #32]
	ldr	x8, [x19, #8]
	add	x8, x20, x8
	ldr	w0, [x8, #16]
	bl	_ROM32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #24]
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BIT i table too short for needed information\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FEATURE_MOBILE,4,2             ; @FEATURE_MOBILE
l_.str.1:                               ; @.str.1
	.asciz	"BIT i table not long enough for DAC load detection comparison table\n"

l_.str.2:                               ; @.str.2
	.asciz	"DAC load detection comparison table version %d.%d not known\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_parse_bit_i_tbl_entry
.subsections_via_symbols
