	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_bit_A_tbl_entry
_parse_bit_A_tbl_entry:                 ## @parse_bit_A_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_nouveau_drm
	movq	%rax, %r14
	cmpl	$3, (%rbx)
	jne	LBB0_7
## %bb.1:
	movq	(%r15), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_ROM16
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	movq	(%r15), %rdx
	cltq
	movl	(%rdx,%rax,4), %ecx
	cmpl	$16, %ecx
	jne	LBB0_10
## %bb.3:
	cmpl	$4, 4(%rdx,%rax,4)
	jne	LBB0_13
## %bb.4:
	cmpl	$4, 8(%rdx,%rax,4)
	jne	LBB0_13
## %bb.5:
	cmpl	$2, 12(%rdx,%rax,4)
	jne	LBB0_13
## %bb.6:
	movl	16(%rdx,%rax,4), %edi
	callq	_ROM32
	andl	$1023, %eax                     ## imm = 0x3FF
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str(%rip), %rsi
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_DEBUG
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_10:
	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_ERROR
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Do not understand BIT A table\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Pointer to BIT loadval table invalid\n"

L_.str.2:                               ## @.str.2
	.asciz	"BIT loadval table version %d.%d not supported\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.3:                               ## @.str.3
	.asciz	"Do not understand BIT loadval table\n"

	.no_dead_strip	_parse_bit_A_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_A_tbl_entry
_parse_bit_A_tbl_entry:                 ; @parse_bit_A_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	x20, x1
	bl	_nouveau_drm
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #3
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x20]
	ldr	x9, [x21, #8]
	ldr	w0, [x8, x9, lsl #2]
	bl	_ROM16
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x20]
	ldr	w9, [x8, w0, sxtw #2]
	cmp	w9, #16
	b.ne	LBB0_11
; %bb.3:
	sxtw	x9, w0
	add	x8, x8, x9, lsl #2
	ldp	w9, w10, [x8, #4]
	ldr	w11, [x8, #12]
	cmp	w9, #4
	ccmp	w10, #4, #0, eq
	ccmp	w11, #2, #0, eq
	b.eq	LBB0_12
; %bb.4:
Lloh0:
	adrp	x1, l_.str.3@PAGE
Lloh1:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_NV_ERROR
	b	LBB0_8
LBB0_7:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NV_DEBUG
LBB0_8:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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_11:
	asr	w8, w9, #4
	and	w9, w9, #0xf
	stp	x8, x9, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_NV_ERROR
Lloh10:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_9
LBB0_12:
	ldr	w0, [x8, #16]
	bl	_ROM32
	mov	x8, x0
	mov	w0, #0
	and	w8, w8, #0x3ff
	str	w8, [x20, #8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Do not understand BIT A table\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Pointer to BIT loadval table invalid\n"

l_.str.2:                               ; @.str.2
	.asciz	"BIT loadval table version %d.%d not supported\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.3:                               ; @.str.3
	.asciz	"Do not understand BIT loadval table\n"

	.no_dead_strip	_parse_bit_A_tbl_entry
.subsections_via_symbols
