	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_fp_mode_table
_parse_fp_mode_table:                   ## @parse_fp_mode_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_nouveau_drm
	movq	%rax, %r14
	movslq	20(%r12), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	8(%r12), %rdx
	movl	(%rdx,%rax,4), %ecx
	movl	$15, %r13d
	cmpl	$5, %ecx
	je	LBB0_3
## %bb.4:
	cmpl	$32, %ecx
	je	LBB0_8
## %bb.5:
	cmpl	$16, %ecx
	jne	LBB0_7
## %bb.6:
	xorl	%ecx, %ecx
	movl	$44, %esi
	xorl	%eax, %eax
	cmpl	$0, 40(%r12)
	jne	LBB0_10
	jmp	LBB0_24
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_NV_DEBUG
	movl	$75, (%r12)
	jmp	LBB0_24
LBB0_3:
	movl	$-1, %eax
	movl	$42, %esi
	xorl	%ecx, %ecx
	cmpl	$0, 40(%r12)
	jne	LBB0_10
	jmp	LBB0_24
LBB0_8:
	movl	4(%rdx,%rax,4), %ecx
	movl	8(%rdx,%rax,4), %esi
	movl	12(%rdx,%rax,4), %r13d
	movl	16(%rdx,%rax,4), %eax
	movl	%eax, (%r12)
	movl	$-7, %eax
	cmpl	$0, 40(%r12)
	je	LBB0_24
LBB0_10:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	leaq	-64(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_parse_lvds_manufacturer_table_header
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.11:
	movl	-64(%rbp), %eax
	cmpl	$48, %eax
	je	LBB0_14
## %bb.12:
	cmpl	$64, %eax
	jne	LBB0_13
LBB0_14:
	movl	28(%r12), %eax
	movl	-60(%rbp), %ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, 24(%r12)
	movl	-56(%rbp), %ecx
	movl	%ecx, 32(%r12)
	testl	%eax, %eax
	je	LBB0_16
LBB0_17:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_get_fp_strap
	movq	8(%r12), %rcx
	movslq	24(%r12), %rdx
	movslq	32(%r12), %rsi
	movslq	%eax, %rdi
	imulq	%rsi, %rdi
	addq	%rdx, %rdi
	movl	(%rcx,%rdi,4), %edx
	cmpl	%r13d, %edx
	jle	LBB0_19
## %bb.18:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_7:
	movl	%ecx, %edx
	sarl	$4, %edx
	andl	$15, %ecx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_13:
	movl	24(%r12), %eax
	testl	%eax, %eax
	jne	LBB0_17
LBB0_16:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_NV_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_25
LBB0_19:
	cmpl	$17, -64(%rbp)
	jl	LBB0_21
## %bb.20:
	movl	%eax, %esi
	xorl	$15, %esi
	movl	%edx, %edi
	xorl	$15, %edi
	xorl	%ebx, %ebx
	orl	%esi, %edi
	setne	%bl
	movl	%ebx, 16(%r12)
LBB0_21:
	cmpl	$15, %eax
	je	LBB0_24
## %bb.22:
	cmpl	$15, %edx
	je	LBB0_24
## %bb.23:
	imull	-44(%rbp), %edx                 ## 4-byte Folded Reload
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%edx, %eax
	addl	20(%r12), %eax
	movl	%eax, 36(%r12)
	cltq
	movl	44(%rcx,%rax,4), %edi
	callq	_ROM16
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r15d
	movq	8(%r12), %rax
	movslq	36(%r12), %rcx
	movl	100(%rax,%rcx,4), %edi
	callq	_ROM16
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	movq	8(%r12), %rax
	movslq	36(%r12), %rcx
	movl	28(%rax,%rcx,4), %edi
	callq	_ROM16
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %r8d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_NV_INFO
LBB0_24:
	xorl	%ebx, %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pointer to flat panel table invalid\n"

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

	.comm	_ENOSYS,4,2                     ## @ENOSYS
L_.str.2:                               ## @.str.2
	.asciz	"Pointer to flat panel xlat table invalid\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Bad flat panel table index\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.4:                               ## @.str.4
	.asciz	"BIOS FP mode: %dx%d (%dkHz pixel clock)\n"

	.no_dead_strip	_parse_fp_mode_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_fp_mode_table
_parse_fp_mode_table:                   ; @parse_fp_mode_table
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x21, x0
	bl	_nouveau_drm
	mov	x19, x0
	ldrsw	x8, [x20, #20]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	x9, [x20, #8]
	add	x8, x9, x8, lsl #2
	ldr	w9, [x8]
	cmp	w9, #5
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #32
	b.eq	LBB0_8
; %bb.3:
	cmp	w9, #16
	b.ne	LBB0_15
; %bb.4:
	mov	w22, #0
	mov	w24, #0
	mov	w23, #44
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_NV_DEBUG
	mov	w0, #0
	mov	w8, #75
	str	w8, [x20]
	b	LBB0_25
LBB0_6:
	mov	w22, #0
	mov	w24, #-1
	mov	w23, #42
LBB0_7:
	mov	w25, #15
	ldr	w8, [x20, #40]
	cbnz	w8, LBB0_9
	b	LBB0_24
LBB0_8:
	ldp	w22, w23, [x8, #4]
	ldp	w25, w8, [x8, #12]
	str	w8, [x20]
	mov	w24, #-7
	ldr	w8, [x20, #40]
	cbz	w8, LBB0_24
LBB0_9:
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	bl	_parse_lvds_manufacturer_table_header
	cbnz	w0, LBB0_25
; %bb.10:
	ldr	w8, [sp, #16]
	cmp	w8, #48
	b.eq	LBB0_12
; %bb.11:
	cmp	w8, #64
	b.ne	LBB0_16
LBB0_12:
	ldr	w8, [x20, #28]
	ldp	w9, w10, [sp, #20]
	add	w8, w8, w9
	add	w8, w8, #1
	str	w8, [x20, #24]
	str	w10, [x20, #32]
	cbz	w8, LBB0_17
LBB0_13:
	mov	x0, x21
	mov	x1, x20
	bl	_get_fp_strap
	ldr	x9, [x20, #8]
	ldr	w10, [x20, #24]
	ldr	w11, [x20, #32]
	madd	w10, w11, w0, w10
	ldr	w10, [x9, w10, sxtw #2]
	cmp	w10, w25
	b.le	LBB0_19
; %bb.14:
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_NV_ERROR
Lloh4:
	adrp	x8, _ENOENT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_18
LBB0_15:
	asr	w8, w9, #4
	and	w9, w9, #0xf
	stp	x8, x9, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_NV_ERROR
Lloh8:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_13
LBB0_17:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_NV_ERROR
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_25
LBB0_19:
	mov	x8, x0
	ldr	w11, [sp, #16]
	cmp	w11, #17
	b.lt	LBB0_21
; %bb.20:
	cmp	w8, #15
	ccmp	w10, #15, #0, eq
	cset	w11, ne
	str	w11, [x20, #16]
LBB0_21:
	mov	w0, #0
	cmp	w8, #15
	b.eq	LBB0_25
; %bb.22:
	cmp	w10, #15
	b.eq	LBB0_25
; %bb.23:
	ldr	w8, [x20, #20]
	add	w11, w24, w22
	madd	w10, w10, w23, w11
	add	w8, w10, w8
	str	w8, [x20, #36]
	add	w8, w8, #11
	ldr	w0, [x9, w8, sxtw #2]
	bl	_ROM16
	add	w21, w0, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #36]
	add	x8, x8, x9, lsl #2
	ldr	w0, [x8, #100]
	bl	_ROM16
	add	w22, w0, #1
	ldr	x8, [x20, #8]
	ldrsw	x9, [x20, #36]
	add	x8, x8, x9, lsl #2
	ldr	w0, [x8, #28]
	bl	_ROM16
	add	w8, w0, w0, lsl #2
	lsl	w4, w8, #1
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_NV_INFO
LBB0_24:
	mov	w0, #0
LBB0_25:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pointer to flat panel table invalid\n"

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

	.comm	_ENOSYS,4,2                     ; @ENOSYS
l_.str.2:                               ; @.str.2
	.asciz	"Pointer to flat panel xlat table invalid\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Bad flat panel table index\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.4:                               ; @.str.4
	.asciz	"BIOS FP mode: %dx%d (%dkHz pixel clock)\n"

	.no_dead_strip	_parse_fp_mode_table
.subsections_via_symbols
