	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv50_temp_get
_nv50_temp_get:                         ## @nv50_temp_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	movl	$131092, %esi                   ## imm = 0x20014
	callq	_nvkm_rd32
	movl	(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.1:
	movl	4(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.2:
	movl	8(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movl	12(%rbx), %r8d
	testl	%r8d, %r8d
	je	LBB0_4
## %bb.5:
	andl	$16383, %eax                    ## imm = 0x3FFF
	imull	%eax, %ecx
	movl	%ecx, %eax
	cltd
	idivl	%edi
	movl	%eax, %ecx
	movl	%esi, %eax
	cltd
	idivl	%r8d
	movl	%eax, %edx
	addl	%ecx, %edx
	addl	16(%rbx), %edx
	cmpl	$9, %edx
	movl	$8, %eax
	cmovgel	%edx, %eax
	addl	$-8, %eax
	jmp	LBB0_6
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_nv50_temp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv50_temp_get
_nv50_temp_get:                         ; @nv50_temp_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #24]
	mov	w1, #20
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.1:
	ldr	w10, [x19, #4]
	cbz	w10, LBB0_5
; %bb.2:
	ldr	w9, [x19, #8]
	cbz	w9, LBB0_5
; %bb.3:
	ldr	w11, [x19, #12]
	cbz	w11, LBB0_5
; %bb.4:
	and	w12, w0, #0x3fff
	mul	w10, w10, w12
	sdiv	w8, w10, w8
	ldr	w10, [x19, #16]
	sdiv	w9, w9, w11
	add	w8, w9, w8
	add	w8, w8, w10
	mov	w9, #8
	cmp	w8, #8
	csel	w8, w8, w9, gt
	sub	w0, w8, #8
	b	LBB0_6
LBB0_5:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_nv50_temp_get
.subsections_via_symbols
