	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_hwmon_show_temp
_amdgpu_hwmon_show_temp:                ## @amdgpu_hwmon_show_temp
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movl	(%rax), %eax
	movl	$0, -36(%rbp)
	movl	$4, -40(%rbp)
	movq	_AMD_IS_PX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r15)
	je	LBB0_3
## %bb.1:
	movq	(%r12), %rcx
	movq	_DRM_SWITCH_POWER_ON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
LBB0_3:
	movq	_PP_TEMP_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_2
## %bb.4:
	cmpl	$128, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.7:
	movq	_AMDGPU_PP_SENSOR_HOTSPOT_TEMP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_9:
	movq	_AMDGPU_PP_SENSOR_MEM_TEMP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_AMDGPU_PP_SENSOR_EDGE_TEMP@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_amdgpu_dpm_read_sensor
	testl	%eax, %eax
	jne	LBB0_12
LBB0_11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-36(%rbp), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD_IS_PX,4,2                  ## @AMD_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ## @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PP_TEMP_MAX,4,2                ## @PP_TEMP_MAX
	.comm	_AMDGPU_PP_SENSOR_HOTSPOT_TEMP,4,2 ## @AMDGPU_PP_SENSOR_HOTSPOT_TEMP
	.comm	_AMDGPU_PP_SENSOR_EDGE_TEMP,4,2 ## @AMDGPU_PP_SENSOR_EDGE_TEMP
	.comm	_AMDGPU_PP_SENSOR_MEM_TEMP,4,2  ## @AMDGPU_PP_SENSOR_MEM_TEMP
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_amdgpu_hwmon_show_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_hwmon_show_temp
_amdgpu_hwmon_show_temp:                ; @amdgpu_hwmon_show_temp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x21, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x22, [x0, #8]
	mov	x0, x21
	bl	_to_sensor_dev_attr
	ldr	w8, [x0]
	mov	w9, #4
	stp	w9, wzr, [sp, #8]
	ldr	w9, [x20]
Lloh0:
	adrp	x10, _AMD_IS_PX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _AMD_IS_PX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x22]
Lloh3:
	adrp	x10, _DRM_SWITCH_POWER_ON@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DRM_SWITCH_POWER_ON@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_2:
Lloh6:
	adrp	x9, _PP_TEMP_MAX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PP_TEMP_MAX@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.3:
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.6:
Lloh9:
	adrp	x8, _AMDGPU_PP_SENSOR_HOTSPOT_TEMP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AMDGPU_PP_SENSOR_HOTSPOT_TEMP@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_8:
Lloh14:
	adrp	x8, _AMDGPU_PP_SENSOR_MEM_TEMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AMDGPU_PP_SENSOR_MEM_TEMP@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh16:
	adrp	x8, _AMDGPU_PP_SENSOR_EDGE_TEMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AMDGPU_PP_SENSOR_EDGE_TEMP@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x0, x20
	bl	_amdgpu_dpm_read_sensor
	cbnz	w0, LBB0_12
LBB0_11:
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	w3, [sp, #12]
Lloh21:
	adrp	x2, l_.str@PAGE
Lloh22:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD_IS_PX,4,2                  ; @AMD_IS_PX
	.comm	_DRM_SWITCH_POWER_ON,8,3        ; @DRM_SWITCH_POWER_ON
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PP_TEMP_MAX,4,2                ; @PP_TEMP_MAX
	.comm	_AMDGPU_PP_SENSOR_HOTSPOT_TEMP,4,2 ; @AMDGPU_PP_SENSOR_HOTSPOT_TEMP
	.comm	_AMDGPU_PP_SENSOR_EDGE_TEMP,4,2 ; @AMDGPU_PP_SENSOR_EDGE_TEMP
	.comm	_AMDGPU_PP_SENSOR_MEM_TEMP,4,2  ; @AMDGPU_PP_SENSOR_MEM_TEMP
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_amdgpu_hwmon_show_temp
.subsections_via_symbols
