	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exec_lookup
_exec_lookup:                           ## @exec_lookup
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, %r12
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_nouveau_bios
	cmpl	$3, %r13d
	jg	LBB0_2
## %bb.1:
	movl	%r15d, %ecx
	movq	_DCB_OUTPUT_ANALOG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r14d
LBB0_11:
	xorl	%esi, %esi
LBB0_12:
	movl	$256, %r15d                     ## imm = 0x100
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movq	16(%rbp), %r8
	btsl	%r13d, %r15d
	orl	%esi, %r15d
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%r12, %r9
	callq	_dcb_outp_match
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movq	40(%rbp), %r10
	movq	32(%rbp), %rax
	movq	24(%rbp), %r9
	cmpq	$0, (%r12)
	je	LBB0_15
## %bb.14:
	movl	8(%r12), %ecx
	shll	$8, %ecx
	orl	%ecx, %r14d
LBB0_15:
	movq	%r13, %rdi
	movq	16(%rbp), %r8
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	pushq	%r10
	pushq	%rax
	callq	_nvbios_outp_match
	addq	$24, %rsp
	jmp	LBB0_16
LBB0_2:
	cmpl	$7, %r13d
	ja	LBB0_9
## %bb.3:
	movl	%r14d, %edx
	shrl	$8, %edx
	andl	$15, %edx
	cmpl	$10, %edx
	jae	LBB0_4
## %bb.7:
	movl	$807, %ecx                      ## imm = 0x327
	btl	%edx, %ecx
	jb	LBB0_8
LBB0_4:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	testl	$3840, %r14d                    ## imm = 0xF00
	je	LBB0_10
## %bb.17:
	leaq	L_.str.1(%rip), %rsi
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_nv_error
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r15d, %ecx
	addl	$-8, %r13d
	movq	(%rbx), %rdx
	movl	(%rdx,%r13,4), %r14d
	orl	$16, %r14d
	jmp	LBB0_11
LBB0_8:
	movl	%r15d, %ecx
	movl	%edx, %edi
	leaq	l_switch.table.exec_lookup(%rip), %rdx
	leaq	l_switch.table.exec_lookup.2(%rip), %rsi
	movq	(%rsi,%rdi,8), %rsi
	movl	(%rsi), %r14d
	addl	$-4, %r13d
	movl	$192, %esi
	andl	(%rdx,%rdi,4), %esi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_DCB_OUTPUT_ANALOG,4,2          ## @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_LVDS,4,2            ## @DCB_OUTPUT_LVDS
	.comm	_DCB_OUTPUT_TMDS,4,2            ## @DCB_OUTPUT_TMDS
	.comm	_DCB_OUTPUT_DP,4,2              ## @DCB_OUTPUT_DP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown SOR mc 0x%08x\n"

L_.str.1:                               ## @.str.1
	.asciz	"unknown PIOR mc 0x%08x\n"

	.no_dead_strip	_exec_lookup
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.exec_lookup
l_switch.table.exec_lookup:
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	128                             ## 0x80
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	192                             ## 0xc0
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	64                              ## 0x40
	.long	128                             ## 0x80

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.exec_lookup.2
l_switch.table.exec_lookup.2:
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_DP
	.quad	_DCB_OUTPUT_DP

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exec_lookup
_exec_lookup:                           ; @exec_lookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x7, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x28, x3
	mov	x27, x2
	mov	x26, x1
	mov	x19, x0
	ldp	x22, x23, [x29, #16]
	bl	_nouveau_bios
	mov	x25, x0
	cmp	w27, #3
	b.gt	LBB0_6
; %bb.1:
	mov	w8, #0
Lloh0:
	adrp	x9, _DCB_OUTPUT_ANALOG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DCB_OUTPUT_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x9]
LBB0_2:
	mov	w9, #1
	lsl	w9, w9, w27
	mov	w10, #256
	lsl	w10, w10, w26
	orr	w9, w9, w10
	orr	w19, w9, w8
	mov	x0, x25
	mov	x1, x28
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	mov	x5, x24
	bl	_dcb_outp_match
	cbz	w0, LBB0_13
; %bb.3:
	ldr	x8, [x24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x24, #8]
	orr	w28, w28, w8, lsl #8
LBB0_5:
	ldr	x5, [sp, #8]                    ; 8-byte Folded Reload
	mov	x7, x23
	mov	x6, x22
	mov	x0, x25
	mov	x1, x28
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_nvbios_outp_match
LBB0_6:
	cmp	w27, #7
	b.hi	LBB0_10
; %bb.7:
	ubfx	w8, w28, #8, #4
	cmp	w8, #10
	b.hs	LBB0_9
; %bb.8:
	mov	w9, #807
	lsr	w9, w9, w8
	tbnz	w9, #0, LBB0_15
LBB0_9:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_10:
	tst	w28, #0xf00
	b.eq	LBB0_14
; %bb.11:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x19
	mov	x2, x28
	bl	_nv_error
LBB0_13:
	mov	w0, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_14:
	mov	w8, #0
	sub	w27, w27, #8
	ldr	x9, [x19]
	ldr	w9, [x9, w27, uxtw #2]
	orr	w28, w9, #0x10
	b	LBB0_2
LBB0_15:
Lloh7:
	adrp	x9, l_switch.table.exec_lookup@PAGE
Lloh8:
	add	x9, x9, l_switch.table.exec_lookup@PAGEOFF
	ldr	w9, [x9, w8, uxtw #2]
Lloh9:
	adrp	x10, l_switch.table.exec_lookup.2@PAGE
Lloh10:
	add	x10, x10, l_switch.table.exec_lookup.2@PAGEOFF
	ldr	x8, [x10, w8, uxtw #3]
	ldr	w28, [x8]
	sub	w27, w27, #4
	and	w8, w9, #0xc0
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DCB_OUTPUT_ANALOG,4,2          ; @DCB_OUTPUT_ANALOG
	.comm	_DCB_OUTPUT_LVDS,4,2            ; @DCB_OUTPUT_LVDS
	.comm	_DCB_OUTPUT_TMDS,4,2            ; @DCB_OUTPUT_TMDS
	.comm	_DCB_OUTPUT_DP,4,2              ; @DCB_OUTPUT_DP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown SOR mc 0x%08x\n"

l_.str.1:                               ; @.str.1
	.asciz	"unknown PIOR mc 0x%08x\n"

	.no_dead_strip	_exec_lookup
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.exec_lookup
l_switch.table.exec_lookup:
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	128                             ; 0x80
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	192                             ; 0xc0
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	64                              ; 0x40
	.long	128                             ; 0x80

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.exec_lookup.2
l_switch.table.exec_lookup.2:
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_TMDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_LVDS
	.quad	_DCB_OUTPUT_DP
	.quad	_DCB_OUTPUT_DP

.subsections_via_symbols
