	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g94_sor_dp_drive               ## -- Begin function g94_sor_dp_drive
	.p2align	4, 0x90
_g94_sor_dp_drive:                      ## @g94_sor_dp_drive
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_nv50_sor_link
	movl	%eax, %r13d
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movb	(%rax,%rcx,4), %r15b
	shlb	$3, %r15b
	leal	6406424(%r13), %esi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leal	6406432(%r13), %esi
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_nvkm_rd32
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	addl	$6406448, %r13d                 ## imm = 0x61C130
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_nvkm_rd32
	movl	%eax, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	shll	$8, %r14d
	movl	%eax, %r12d
	andl	$-65281, %r12d                  ## imm = 0xFFFF00FF
	orl	%r14d, %r12d
	cmpl	%r14d, %ecx
	cmovll	%r12d, %eax
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %r12d
	movl	$255, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	notl	%eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	%eax, %r14d
	andl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	orl	%eax, %edx
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_nvkm_wr32
	movl	%r15d, %ecx
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	shll	%cl, %edx
	orl	%r14d, %edx
	movq	%rbx, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_nvkm_wr32
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_wr32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_g94_sor_dp_drive               ; -- Begin function g94_sor_dp_drive
	.p2align	2
_g94_sor_dp_drive:                      ; @g94_sor_dp_drive
	.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
	mov	x20, x5
	str	w4, [sp, #12]                   ; 4-byte Folded Spill
	mov	x22, x3
	mov	x23, x1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x19, [x8]
	bl	_nv50_sor_link
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w21, [x8, w23, sxtw #2]
	add	w8, w0, #1564, lsl #12          ; =6406144
	add	w24, w8, #280
	mov	x0, x19
	mov	x1, x24
	bl	_nvkm_rd32
	mov	x25, x0
	add	w26, w24, #8
	mov	x0, x19
	mov	x1, x26
	bl	_nvkm_rd32
	mov	x27, x0
	add	w28, w24, #24
	mov	x0, x19
	mov	x1, x28
	bl	_nvkm_rd32
	and	w8, w0, #0xff00
	lsl	w9, w20, #8
	cmp	w8, w9
	ccmp	w23, #0, #4, ge
	and	w8, w0, #0xffff00ff
	orr	w8, w8, w9
	csel	w20, w8, w0, eq
	lsl	w21, w21, #3
	mov	w8, #255
	lsl	w8, w8, w21
	bic	w23, w27, w8
	bic	w8, w25, w8
	lsl	w9, w22, w21
	orr	w2, w8, w9
	mov	x0, x19
	mov	x1, x24
	bl	_nvkm_wr32
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	lsl	w8, w8, w21
	orr	w2, w23, w8
	mov	x0, x19
	mov	x1, x26
	bl	_nvkm_wr32
	mov	x0, x19
	mov	x1, x28
	mov	x2, 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	_nvkm_wr32
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
