	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvd0_sor_dp_lnk_ctl
_nvd0_sor_dp_lnk_ctl:                   ## @nvd0_sor_dp_lnk_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_nvd0_sor_soff
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_nvd0_sor_loff
	movl	%eax, %r14d
	testl	%r15d, %r15d
	jle	LBB0_1
## %bb.2:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_nvd0_sor_dp_lane_map
	shrl	$3, %eax
	btsl	%eax, %ebx
	incl	%r13d
	cmpl	%r13d, %r15d
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%ebx, %ebx
LBB0_4:
	movl	$-1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	notl	%eax
	shll	$16, %eax
	leal	16384(%rax), %r15d
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%eax, %r15d
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	shll	$18, %ecx
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	addl	$6365952, %esi                  ## imm = 0x612300
	movq	%r12, %rdi
	movl	$8126464, %edx                  ## imm = 0x7C0000
	callq	_nv_mask
	leal	6406412(%r14), %esi
	movq	%r12, %rdi
	movl	$2048000, %edx                  ## imm = 0x1F4000
	movl	%r15d, %ecx
	callq	_nv_mask
	addl	$6406448, %r14d                 ## imm = 0x61C130
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	$15, %edx
	movl	%ebx, %ecx
	callq	_nv_mask
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nvd0_sor_dp_lnk_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvd0_sor_dp_lnk_ctl
_nvd0_sor_dp_lnk_ctl:                   ; @nvd0_sor_dp_lnk_ctl
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x5
	mov	x21, x4
	mov	x25, x3
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_nvd0_sor_soff
	mov	x24, x0
	mov	x0, x20
	bl	_nvd0_sor_loff
	mov	x23, x0
	cmp	w25, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w26, #0
	mov	w20, #0
	mov	w27, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x26
	bl	_nvd0_sor_dp_lane_map
	asr	w8, w0, #3
	lsl	w8, w27, w8
	orr	w20, w8, w20
	add	w26, w26, #1
	cmp	w25, w26
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	w8, #-1
	lsl	w8, w8, w25
	mvn	w8, w8
	lsl	w9, w8, #16
	mov	w10, #16384
	bfi	w10, w8, #16, #16
	cmp	w22, #0
	csel	w22, w9, w10, eq
	lsl	w3, w21, #18
	add	w8, w24, #1554, lsl #12         ; =6365184
	add	w1, w8, #768
	mov	x0, x19
	mov	w2, #8126464
	bl	_nv_mask
	add	w8, w23, #1564, lsl #12         ; =6406144
	add	w21, w8, #268
	mov	x0, x19
	mov	x1, x21
	mov	w2, #16384
	movk	w2, #31, lsl #16
	mov	x3, x22
	bl	_nv_mask
	add	w1, w21, #36
	mov	x0, x19
	mov	w2, #15
	mov	x3, x20
	bl	_nv_mask
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nvd0_sor_dp_lnk_ctl
.subsections_via_symbols
