	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thermal_get_mode
_thermal_get_mode:                      ## @thermal_get_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.4:
	movq	_THERMAL_DEVICE_DISABLED@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_THERMAL_DEVICE_ENABLED@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, (%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_THERMAL_DEVICE_ENABLED,4,2     ## @THERMAL_DEVICE_ENABLED
	.comm	_THERMAL_DEVICE_DISABLED,4,2    ## @THERMAL_DEVICE_DISABLED
	.no_dead_strip	_thermal_get_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thermal_get_mode
_thermal_get_mode:                      ; @thermal_get_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _THERMAL_DEVICE_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _THERMAL_DEVICE_ENABLED@GOTPAGEOFF]
Lloh2:
	adrp	x10, _THERMAL_DEVICE_DISABLED@GOTPAGE
Lloh3:
	ldr	x10, [x10, _THERMAL_DEVICE_DISABLED@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
	str	w8, [x1]
	ret
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_THERMAL_DEVICE_ENABLED,4,2     ; @THERMAL_DEVICE_ENABLED
	.comm	_THERMAL_DEVICE_DISABLED,4,2    ; @THERMAL_DEVICE_DISABLED
	.no_dead_strip	_thermal_get_mode
.subsections_via_symbols
