	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_lvds_manufacturer_table_header
_parse_lvds_manufacturer_table_header:  ## @parse_lvds_manufacturer_table_header
	.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, %r15
	movq	%rsi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r14
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movslq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdx
	movl	(%rdx,%rax,4), %ecx
	cmpl	$10, %ecx
	je	LBB0_6
## %bb.2:
	cmpl	$64, %ecx
	je	LBB0_7
## %bb.3:
	cmpl	$48, %ecx
	jne	LBB0_11
## %bb.4:
	movl	4(%rdx,%rax,4), %esi
	movl	$2, %edi
	cmpl	$30, %esi
	jle	LBB0_8
	jmp	LBB0_10
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_9
LBB0_6:
	movl	$2, %esi
	movl	$1, %edi
	jmp	LBB0_10
LBB0_7:
	movl	4(%rdx,%rax,4), %esi
	movl	$2, %edi
	cmpl	$6, %esi
	jg	LBB0_10
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
LBB0_9:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	addl	%edi, %eax
	cltq
	movl	(%rdx,%rax,4), %eax
	movl	%ecx, (%r15)
	movl	%esi, 4(%r15)
	movl	%eax, 8(%r15)
	xorl	%r12d, %r12d
	jmp	LBB0_13
LBB0_11:
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_12:
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %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	"Pointer to LVDS manufacturer table invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"LVDS table header not understood\n"

L_.str.2:                               ## @.str.2
	.asciz	"LVDS table revision %d.%d not currently supported\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_parse_lvds_manufacturer_table_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_lvds_manufacturer_table_header
_parse_lvds_manufacturer_table_header:  ; @parse_lvds_manufacturer_table_header
	.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	x19, x2
	mov	x21, x1
	bl	_nouveau_drm
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #12
	bl	_memset
	ldrsw	x8, [x21, #8]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	x10, [x21]
	ldr	w9, [x10, x8, lsl #2]
	cmp	w9, #10
	b.eq	LBB0_7
; %bb.2:
	cmp	w9, #64
	b.eq	LBB0_9
; %bb.3:
	cmp	w9, #48
	b.ne	LBB0_12
; %bb.4:
	add	w11, w8, #1
	ldr	w11, [x10, w11, sxtw #2]
	cmp	w11, #30
	b.le	LBB0_10
LBB0_5:
	mov	w12, #2
	b	LBB0_8
LBB0_6:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_11
LBB0_7:
	mov	w11, #2
	mov	w12, #1
LBB0_8:
	mov	w0, #0
	add	w8, w8, w12
	ldr	w8, [x10, w8, sxtw #2]
	stp	w9, w11, [x19]
	str	w8, [x19, #8]
	b	LBB0_14
LBB0_9:
	add	w11, w8, #1
	ldr	w11, [x10, w11, sxtw #2]
	cmp	w11, #6
	b.gt	LBB0_5
LBB0_10:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x20
	bl	_NV_ERROR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	asr	w8, w9, #4
	and	w9, w9, #0xf
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pointer to LVDS manufacturer table invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"LVDS table header not understood\n"

l_.str.2:                               ; @.str.2
	.asciz	"LVDS table revision %d.%d not currently supported\n"

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