	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_head_state
_nv50_head_state:                       ## @nv50_head_state
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	40(%rdi), %rax
	movq	(%rax), %r14
	imull	$1344, (%rdi), %r15d            ## imm = 0x540
	addq	$4, %rdi
	xorl	%r12d, %r12d
	cmpq	%rsi, %rdi
	sete	%r12b
	leal	(%r15,%r12,4), %esi
	addl	$6359784, %esi                  ## imm = 0x610AE8
	movq	%r14, %rdi
	callq	_nvkm_rd32
	movzwl	%ax, %ecx
	shrl	$16, %eax
	movl	%eax, (%rbx)
	movl	%ecx, 4(%rbx)
	leal	(%r15,%r12,4), %esi
	addl	$6359792, %esi                  ## imm = 0x610AF0
	movq	%r14, %rdi
	callq	_nvkm_rd32
	movzwl	%ax, %ecx
	shrl	$16, %eax
	movl	%eax, 8(%rbx)
	movl	%ecx, 12(%rbx)
	leal	(%r15,%r12,4), %esi
	addl	$6359800, %esi                  ## imm = 0x610AF8
	movq	%r14, %rdi
	callq	_nvkm_rd32
	movzwl	%ax, %ecx
	shrl	$16, %eax
	movl	%eax, 16(%rbx)
	movl	%ecx, 20(%rbx)
	leal	(%r15,%r12,4), %esi
	addl	$6359808, %esi                  ## imm = 0x610B00
	movq	%r14, %rdi
	callq	_nvkm_rd32
	movzwl	%ax, %ecx
	shrl	$16, %eax
	movl	%eax, 24(%rbx)
	movl	%ecx, 28(%rbx)
	leal	(%r15,%r12,4), %esi
	addl	$6359760, %esi                  ## imm = 0x610AD0
	movq	%r14, %rdi
	callq	_nvkm_rd32
	andl	$4194303, %eax                  ## imm = 0x3FFFFF
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, 32(%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_nv50_head_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_head_state
_nv50_head_state:                       ; @nv50_head_state
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x8, [x0, #40]
	ldr	x20, [x8]
	ldr	w8, [x0]
	mov	w9, #1344
	mul	w8, w8, w9
	add	x9, x0, #4
	cmp	x9, x1
	cset	w9, eq
	bfi	w8, w9, #2, #1
	add	w8, w8, #1552, lsl #12          ; =6356992
	add	w21, w8, #2768
	add	w1, w21, #24
	mov	x0, x20
	bl	_nvkm_rd32
	lsr	w8, w0, #16
	and	w9, w0, #0xffff
	stp	w8, w9, [x19]
	orr	w1, w21, #0x20
	mov	x0, x20
	bl	_nvkm_rd32
	lsr	w8, w0, #16
	and	w9, w0, #0xffff
	stp	w8, w9, [x19, #8]
	mov	w8, #40
	orr	w1, w21, w8
	mov	x0, x20
	bl	_nvkm_rd32
	lsr	w8, w0, #16
	and	w9, w0, #0xffff
	stp	w8, w9, [x19, #16]
	add	w1, w21, #48
	mov	x0, x20
	bl	_nvkm_rd32
	lsr	w8, w0, #16
	and	w9, w0, #0xffff
	stp	w8, w9, [x19, #24]
	mov	x0, x20
	mov	x1, x21
	bl	_nvkm_rd32
	and	w8, w0, #0x3fffff
	mov	w9, #1000
	mul	w8, w8, w9
	str	w8, [x19, #32]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_nv50_head_state
.subsections_via_symbols
