	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gp100_temp_get
_gp100_temp_get:                        ## @gp100_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rdi
	movl	$132192, %esi                   ## imm = 0x20460
	callq	_nvkm_rd32
	movl	%eax, %ebx
	testl	$1073741824, %eax               ## imm = 0x40000000
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_nvkm_trace
LBB0_2:
	movl	%ebx, %ecx
	shrl	$8, %ecx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	andl	$511, %ecx                      ## imm = 0x1FF
	testl	$536870912, %ebx                ## imm = 0x20000000
	cmovnel	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reading temperature from SHADOWed sensor\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_gp100_temp_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gp100_temp_get
_gp100_temp_get:                        ; @gp100_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]
	mov	w1, #1120
	movk	w1, #2, lsl #16
	bl	_nvkm_rd32
	mov	x20, x0
	tbz	w0, #30, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nvkm_trace
LBB0_2:
	ubfx	w8, w20, #8, #9
Lloh2:
	adrp	x9, _ENODEV@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w20, #0x20000000
	csneg	w0, w8, w9, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reading temperature from SHADOWed sensor\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_gp100_temp_get
.subsections_via_symbols
