	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_thermal_get_info
_acpi_thermal_get_info:                 ## @acpi_thermal_get_info
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_acpi_thermal_get_trip_points
	testl	%eax, %eax
	jne	LBB0_10
## %bb.3:
	movq	%rbx, %rdi
	callq	_acpi_thermal_get_temperature
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movq	_ACPI_THERMAL_MODE_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_acpi_thermal_set_cooling_mode
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$1, 8(%rbx)
LBB0_6:
	movq	_tzp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rax, (%rbx)
	jmp	LBB0_9
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_acpi_thermal_get_polling_frequency
LBB0_9:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_THERMAL_MODE_ACTIVE,4,2   ## @ACPI_THERMAL_MODE_ACTIVE
	.comm	_tzp,8,3                        ## @tzp
	.no_dead_strip	_acpi_thermal_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_thermal_get_info
_acpi_thermal_get_info:                 ; @acpi_thermal_get_info
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_acpi_thermal_get_trip_points
	cbnz	w0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_acpi_thermal_get_temperature
	cbnz	w0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _ACPI_THERMAL_MODE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ACPI_THERMAL_MODE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_acpi_thermal_set_cooling_mode
	cbnz	w0, LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_5:
Lloh3:
	adrp	x8, _tzp@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tzp@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.6:
	mov	w0, #0
	str	x8, [x19]
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_acpi_thermal_get_polling_frequency
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_THERMAL_MODE_ACTIVE,4,2   ; @ACPI_THERMAL_MODE_ACTIVE
	.comm	_tzp,8,3                        ; @tzp
	.no_dead_strip	_acpi_thermal_get_info
.subsections_via_symbols
