	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_thermal_cooling_device_cb
_acpi_thermal_cooling_device_cb:        ## @acpi_thermal_cooling_device_cb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	(%rsi), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	cmpq	$0, 56(%r15)
	setne	%r14b
	sete	%al
	negl	%eax
	cmpq	$0, 48(%r15)
	cmovel	%eax, %r14d
	cmpq	$0, 40(%r15)
	je	LBB0_8
## %bb.1:
	incl	%r14d
	cmpl	$0, 24(%r15)
	jle	LBB0_8
## %bb.2:
	movq	%rbx, %r12
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r13
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	24(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r13, %rsi
	callq	_acpi_bus_get_device
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%r12
	testl	%eax, %eax
	je	LBB0_6
	jmp	LBB0_26
LBB0_7:
	movq	%r12, %rbx
LBB0_8:
	movq	_ACPI_THERMAL_MAX_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_19
## %bb.9:
	movq	16(%r15), %rax
	xorl	%esi, %esi
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	_ACPI_THERMAL_MAX_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%rsi
	movslq	%ecx, %rdx
	cmpq	%rdx, %rsi
	jge	LBB0_19
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	leaq	(%rsi,%rsi,2), %r12
	cmpl	$0, 16(%rax,%r12,8)
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incl	%r14d
	cmpl	$0, (%rax,%r12,8)
	jle	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r13
	movq	16(%r15), %rax
	movslq	(%rax,%r12,8), %rcx
	cmpq	%rcx, %r13
	jge	LBB0_17
LBB0_13:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%rax,%r12,8), %rax
	movl	(%rax,%r13,4), %edi
	leaq	-48(%rbp), %rsi
	callq	_acpi_bus_get_device
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%rbx
	testl	%eax, %eax
	je	LBB0_16
	jmp	LBB0_26
LBB0_19:
	cmpl	$0, (%r15)
	jle	LBB0_25
## %bb.20:
	movq	%rbx, %r14
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_21 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_25
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r12, %rsi
	callq	_acpi_bus_get_device
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -48(%rbp)
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_21 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$-1, %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	*%r14
	testl	%eax, %eax
	je	LBB0_24
	jmp	LBB0_26
LBB0_25:
	xorl	%eax, %eax
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ACPI_THERMAL_MAX_ACTIVE,4,2    ## @ACPI_THERMAL_MAX_ACTIVE
	.no_dead_strip	_acpi_thermal_cooling_device_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_thermal_cooling_device_cb
_acpi_thermal_cooling_device_cb:        ; @acpi_thermal_cooling_device_cb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x1]
	ldr	x24, [x0]
	ldp	x10, x8, [x24, #48]
	cmp	x8, #0
	cset	w8, ne
	csetm	w9, eq
	ldr	x11, [x24, #40]
	cmp	x10, #0
	csel	w22, w9, w8, eq
	cbz	x11, LBB0_6
; %bb.1:
	add	w22, w22, #1
	ldr	w8, [x24, #24]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x25, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24, #24]
	cmp	x25, x8
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #32]
	ldr	w0, [x8, x25, lsl #2]
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	bl	_ACPI_SUCCESS
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, x23, #0, ne
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	blr	x19
	cbz	w0, LBB0_3
	b	LBB0_22
LBB0_6:
Lloh0:
	adrp	x25, _ACPI_THERMAL_MAX_ACTIVE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ACPI_THERMAL_MAX_ACTIVE@GOTPAGEOFF]
	ldr	w9, [x25]
	cmp	w9, #1
	b.lt	LBB0_16
; %bb.7:
	mov	x26, #0
	ldr	x8, [x24, #16]
	mov	w27, #24
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	w9, [x25]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x26, w9, sxtw
	b.ge	LBB0_16
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	madd	x10, x26, x27, x8
	ldr	w10, [x10, #16]
	cbz	w10, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w22, w22, #1
	mul	x10, x26, x27
	ldr	w10, [x8, x10]
	cmp	w10, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x28, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x28, x28, #1
	ldr	x8, [x24, #16]
	mul	x9, x26, x27
	ldrsw	x9, [x8, x9]
	cmp	x28, x9
	b.ge	LBB0_8
LBB0_14:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	madd	x8, x26, x27, x8
	ldr	x8, [x8, #8]
	ldr	w0, [x8, x28, lsl #2]
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	bl	_ACPI_SUCCESS
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, x23, #0, ne
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	blr	x19
	cbz	w0, LBB0_13
	b	LBB0_22
LBB0_16:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.17:
	mov	x22, #0
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.ge	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24, #8]
	ldr	w0, [x8, x22, lsl #2]
	add	x1, sp, #8
	bl	_acpi_bus_get_device
	bl	_ACPI_SUCCESS
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, x23, #0, ne
	b.ne	LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x21
	mov	w1, #-1
	mov	x2, x20
	blr	x19
	cbz	w0, LBB0_18
	b	LBB0_22
LBB0_21:
	mov	w0, #0
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ACPI_THERMAL_MAX_ACTIVE,4,2    ; @ACPI_THERMAL_MAX_ACTIVE
	.no_dead_strip	_acpi_thermal_cooling_device_cb
.subsections_via_symbols
