	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thermal_get_trip_temp
_thermal_get_trip_temp:                 ## @thermal_get_trip_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	js	LBB0_21
## %bb.1:
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.2:
	movq	%rdx, %rbx
	cmpq	$0, 56(%rax)
	je	LBB0_7
## %bb.3:
	testl	%esi, %esi
	je	LBB0_4
## %bb.6:
	decl	%esi
LBB0_7:
	cmpq	$0, 40(%rax)
	je	LBB0_11
## %bb.8:
	testl	%esi, %esi
	je	LBB0_9
## %bb.10:
	decl	%esi
LBB0_11:
	cmpq	$0, 24(%rax)
	je	LBB0_15
## %bb.12:
	testl	%esi, %esi
	je	LBB0_13
## %bb.14:
	decl	%esi
LBB0_15:
	movq	_ACPI_THERMAL_MAX_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.16:
	movq	8(%rax), %r8
	movl	%esi, %esi
	leaq	8(%r8), %rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi)
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%edx, %esi
	je	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rdx
	addq	$16, %rdi
	cmpq	%rdx, %rcx
	jne	LBB0_17
LBB0_21:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_22
LBB0_4:
	movl	(%rax), %esi
	movl	48(%rax), %edi
	jmp	LBB0_5
LBB0_9:
	movl	(%rax), %esi
	movl	32(%rax), %edi
	jmp	LBB0_5
LBB0_13:
	movl	(%rax), %esi
	movl	16(%rax), %edi
	jmp	LBB0_5
LBB0_19:
	shlq	$4, %rsi
	movl	(%r8,%rsi), %edi
	movl	(%rax), %esi
LBB0_5:
	callq	_KELVIN_TO_MILLICELSIUS
	movq	%rax, (%rbx)
	xorl	%eax, %eax
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ACPI_THERMAL_MAX_ACTIVE,4,2    ## @ACPI_THERMAL_MAX_ACTIVE
	.no_dead_strip	_thermal_get_trip_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thermal_get_trip_temp
_thermal_get_trip_temp:                 ; @thermal_get_trip_temp
	.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
	tbnz	w1, #31, LBB0_16
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_16
; %bb.2:
	mov	x19, x2
	ldr	x9, [x8, #56]
	cbz	x9, LBB0_5
; %bb.3:
	cbz	w1, LBB0_17
; %bb.4:
	sub	w1, w1, #1
LBB0_5:
	ldr	x9, [x8, #40]
	cbz	x9, LBB0_8
; %bb.6:
	cbz	w1, LBB0_18
; %bb.7:
	sub	w1, w1, #1
LBB0_8:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_11
; %bb.9:
	cbz	w1, LBB0_19
; %bb.10:
	sub	w1, w1, #1
LBB0_11:
Lloh0:
	adrp	x9, _ACPI_THERMAL_MAX_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ACPI_THERMAL_MAX_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.12:
	ldr	x10, [x8, #8]
	mov	w11, w1
	add	x12, x10, #8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cbz	x13, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cbz	w1, LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	sub	w1, w1, #1
	add	x12, x12, #16
	subs	x9, x9, #1
	b.ne	LBB0_13
LBB0_16:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_17:
	ldr	w0, [x8, #48]
	b	LBB0_21
LBB0_18:
	ldr	w0, [x8, #32]
	b	LBB0_21
LBB0_19:
	ldr	w0, [x8, #16]
	b	LBB0_21
LBB0_20:
	lsl	x9, x11, #4
	ldr	w0, [x10, x9]
LBB0_21:
	ldr	w1, [x8]
	bl	_KELVIN_TO_MILLICELSIUS
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19]
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ACPI_THERMAL_MAX_ACTIVE,4,2    ; @ACPI_THERMAL_MAX_ACTIVE
	.no_dead_strip	_thermal_get_trip_temp
.subsections_via_symbols
