	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_head_atomic_check_procamp
_nv50_head_atomic_check_procamp:        ## @nv50_head_atomic_check_procamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdx), %eax
	movl	%eax, %ecx
	shll	$11, %ecx
	subl	%eax, %ecx
	leal	50(%rcx), %edi
	cmpl	$101, %eax
	cmovll	%ecx, %edi
	movl	4(%rdx), %eax
	addl	$-204700, %edi                  ## imm = 0xFFFCE064
	movslq	%edi, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	shrq	$37, %rcx
	addl	%edx, %ecx
	andl	$4095, %ecx                     ## imm = 0xFFF
	movl	%ecx, 4(%rsi)
	movl	%eax, %ecx
	shll	$11, %ecx
	subl	%eax, %ecx
	addl	$-184230, %ecx                  ## imm = 0xFFFD305A
	movslq	%ecx, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$37, %rax
	addl	%ecx, %eax
	andl	$4095, %eax                     ## imm = 0xFFF
	movl	%eax, 8(%rsi)
	movl	$1, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_head_atomic_check_procamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_head_atomic_check_procamp
_nv50_head_atomic_check_procamp:        ; @nv50_head_atomic_check_procamp
	.cfi_startproc
; %bb.0:
	ldp	w8, w9, [x2]
	mov	w10, #50
	cmp	w8, #100
	csel	w10, w10, wzr, gt
	lsl	w11, w8, #11
	sub	w8, w11, w8
	add	w8, w8, w10
	sub	w8, w8, #49, lsl #12            ; =200704
	sub	w8, w8, #3996
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x8, w8, w10
	lsr	x11, x8, #63
	lsr	x8, x8, #37
	add	w8, w8, w11
	and	w8, w8, #0xfff
	lsl	w11, w9, #11
	sub	w9, w11, w9
	sub	w9, w9, #44, lsl #12            ; =180224
	sub	w9, w9, #4006
	smull	x9, w9, w10
	lsr	x10, x9, #63
	lsr	x9, x9, #37
	add	w9, w9, w10
	and	w9, w9, #0xfff
	stp	w8, w9, [x1, #4]
	mov	w9, #1
	str	w9, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_head_atomic_check_procamp
.subsections_via_symbols
