	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv94_sor_dp_drv_ctl
_nv94_sor_dp_drv_ctl:                   ## @nv94_sor_dp_drv_ctl
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_nouveau_bios
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_nv94_sor_loff
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_nv94_sor_dp_lane_map
	movl	%eax, %r12d
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	leaq	-88(%rbp), %rax
	leaq	-56(%rbp), %rbx
	leaq	-68(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-60(%rbp), %r9
	movq	%r13, %rdi
	pushq	%rax
	pushq	%rbx
	callq	_nvbios_dpout_match
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	leaq	-80(%rbp), %r10
	xorl	%r12d, %r12d
	leaq	-68(%rbp), %r9
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	pushq	%r10
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-60(%rbp), %rax
	pushq	%rax
	leaq	-64(%rbp), %rax
	pushq	%rax
	callq	_nvbios_dpcfg_match
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leal	6406424(%r14), %esi
	movl	$255, %ebx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movl	-80(%rbp), %eax
	shll	%cl, %eax
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_mask
	leal	6406432(%r14), %esi
	movl	-76(%rbp), %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_nv_mask
	addl	$6406448, %r14d                 ## imm = 0x61C130
	movl	-72(%rbp), %ecx
	shll	$8, %ecx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$65280, %edx                    ## imm = 0xFF00
	callq	_nv_mask
	jmp	LBB0_6
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_6:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nv94_sor_dp_drv_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv94_sor_dp_drv_ctl
_nv94_sor_dp_drv_ctl:                   ; @nv94_sor_dp_drv_ctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x5
	mov	x22, x4
	mov	x21, x3
	mov	x25, x1
	mov	x19, x0
	bl	_nouveau_bios
	mov	x24, x0
	mov	x0, x25
	bl	_nv94_sor_loff
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	_nv94_sor_dp_lane_map
	mov	x21, x0
	ldp	w2, w1, [x25]
	add	x25, sp, #48
	add	x3, sp, #60
	add	x4, sp, #56
	add	x5, sp, #52
	add	x6, sp, #48
	add	x7, sp, #40
	mov	x0, x24
	bl	_nvbios_dpout_match
	cbz	w0, LBB0_3
; %bb.1:
	mov	x1, x0
	add	x8, sp, #24
	stp	x25, x8, [sp]
	add	x5, sp, #60
	add	x6, sp, #56
	add	x7, sp, #52
	mov	x0, x24
	mov	w2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_nvbios_dpcfg_match
	cbz	w0, LBB0_4
; %bb.2:
	add	w8, w23, #1564, lsl #12         ; =6406144
	add	w20, w8, #280
	mov	w8, #255
	lsl	w22, w8, w21
	ldr	w8, [sp, #24]
	lsl	w3, w8, w21
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_nv_mask
	add	w1, w20, #8
	ldr	w8, [sp, #28]
	lsl	w3, w8, w21
	mov	x0, x19
	mov	x2, x22
	bl	_nv_mask
	add	w1, w20, #24
	ldr	w8, [sp, #32]
	lsl	w3, w8, #8
	mov	x0, x19
	mov	w2, #65280
	bl	_nv_mask
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nv94_sor_dp_drv_ctl
.subsections_via_symbols
