	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rm31_new_control
_rm31_new_control:                      ## @rm31_new_control
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_13
## %bb.14:
	movl	(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_15
## %bb.16:
	movl	(%rbx), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	_cpufreq_clamp@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_1:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
LBB0_3:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$8, %rax
	jmp	LBB0_18
LBB0_5:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	addq	$16, %rax
	jmp	LBB0_18
LBB0_7:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	jmp	LBB0_18
LBB0_9:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$8, %rax
	jmp	LBB0_18
LBB0_11:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rax
	addq	$16, %rax
	jmp	LBB0_18
LBB0_13:
	movq	_backside_fan@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_15:
	movq	_slots_fan@GOTPCREL(%rip), %rax
LBB0_18:
	movq	%rbx, (%rax)
LBB0_19:
	movq	_cpu_fans@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx), %rdx
	xorl	%eax, %eax
	cmpq	$0, (%rdx)
	je	LBB0_24
## %bb.20:
	cmpq	$0, 8(%rdx)
	je	LBB0_24
## %bb.21:
	cmpq	$0, 16(%rdx)
	je	LBB0_24
## %bb.22:
	movq	_backside_fan@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_24
## %bb.23:
	movq	_slots_fan@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	$0, (%rdx)
	setne	%al
LBB0_24:
	movq	_nr_chips@GOTPCREL(%rip), %rdx
	cmpl	$2, (%rdx)
	jl	LBB0_29
## %bb.25:
	movq	8(%rcx), %rdx
	xorl	%ecx, %ecx
	cmpq	$0, (%rdx)
	je	LBB0_28
## %bb.26:
	cmpq	$0, 8(%rdx)
	je	LBB0_28
## %bb.27:
	xorl	%ecx, %ecx
	cmpq	$0, 16(%rdx)
	setne	%cl
LBB0_28:
	andl	%ecx, %eax
LBB0_29:
	movq	_have_all_controls@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu-fan-a-0"

	.comm	_cpu_fans,8,3                   ## @cpu_fans
L_.str.1:                               ## @.str.1
	.asciz	"cpu-fan-b-0"

L_.str.2:                               ## @.str.2
	.asciz	"cpu-fan-c-0"

L_.str.3:                               ## @.str.3
	.asciz	"cpu-fan-a-1"

L_.str.4:                               ## @.str.4
	.asciz	"cpu-fan-b-1"

L_.str.5:                               ## @.str.5
	.asciz	"cpu-fan-c-1"

L_.str.6:                               ## @.str.6
	.asciz	"backside-fan"

	.comm	_backside_fan,8,3               ## @backside_fan
L_.str.7:                               ## @.str.7
	.asciz	"slots-fan"

	.comm	_slots_fan,8,3                  ## @slots_fan
L_.str.8:                               ## @.str.8
	.asciz	"cpufreq-clamp"

	.comm	_cpufreq_clamp,8,3              ## @cpufreq_clamp
	.comm	_nr_chips,4,2                   ## @nr_chips
	.comm	_have_all_controls,4,2          ## @have_all_controls
	.no_dead_strip	_rm31_new_control
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rm31_new_control
_rm31_new_control:                      ; @rm31_new_control
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
Lloh2:
	adrp	x20, _cpu_fans@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cpu_fans@GOTPAGEOFF]
	cbz	w0, LBB0_10
; %bb.1:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_11
; %bb.2:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.3:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.5:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.6:
	ldr	w0, [x19]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_16
; %bb.7:
	ldr	w0, [x19]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_strcmp
	cbz	w0, LBB0_17
; %bb.8:
	ldr	w0, [x19]
Lloh18:
	adrp	x1, l_.str.8@PAGE
Lloh19:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_strcmp
	cbnz	w0, LBB0_19
; %bb.9:
Lloh20:
	adrp	x8, _cpufreq_clamp@GOTPAGE
Lloh21:
	ldr	x8, [x8, _cpufreq_clamp@GOTPAGEOFF]
	b	LBB0_18
LBB0_10:
	ldr	x8, [x20]
	ldr	x8, [x8]
	b	LBB0_18
LBB0_11:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x8, x8, #8
	b	LBB0_18
LBB0_12:
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x8, x8, #16
	b	LBB0_18
LBB0_13:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	b	LBB0_18
LBB0_14:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x8, x8, #8
	b	LBB0_18
LBB0_15:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	add	x8, x8, #16
	b	LBB0_18
LBB0_16:
Lloh22:
	adrp	x8, _backside_fan@GOTPAGE
Lloh23:
	ldr	x8, [x8, _backside_fan@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh24:
	adrp	x8, _slots_fan@GOTPAGE
Lloh25:
	ldr	x8, [x8, _slots_fan@GOTPAGEOFF]
LBB0_18:
	str	x19, [x8]
LBB0_19:
	ldr	x9, [x20]
	ldr	x8, [x9]
	ldr	x10, [x8]
	cbz	x10, LBB0_22
; %bb.20:
	ldr	x10, [x8, #8]
	cbz	x10, LBB0_22
; %bb.21:
	ldr	x8, [x8, #16]
Lloh26:
	adrp	x10, _backside_fan@GOTPAGE
Lloh27:
	ldr	x10, [x10, _backside_fan@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
	cmp	x8, #0
	ccmp	x10, #0, #4, ne
	b.ne	LBB0_30
LBB0_22:
	mov	w8, #0
LBB0_23:
Lloh29:
	adrp	x10, _nr_chips@GOTPAGE
Lloh30:
	ldr	x10, [x10, _nr_chips@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	cmp	w10, #2
	b.lt	LBB0_29
; %bb.24:
	ldr	x9, [x9, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_27
; %bb.25:
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_27
; %bb.26:
	ldr	x9, [x9, #16]
	cmp	x9, #0
	cset	w9, ne
	b	LBB0_28
LBB0_27:
	mov	w9, #0
LBB0_28:
	and	w8, w9, w8
LBB0_29:
Lloh32:
	adrp	x9, _have_all_controls@GOTPAGE
Lloh33:
	ldr	x9, [x9, _have_all_controls@GOTPAGEOFF]
Lloh34:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_30:
Lloh35:
	adrp	x8, _slots_fan@GOTPAGE
Lloh36:
	ldr	x8, [x8, _slots_fan@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_23
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu-fan-a-0"

	.comm	_cpu_fans,8,3                   ; @cpu_fans
l_.str.1:                               ; @.str.1
	.asciz	"cpu-fan-b-0"

l_.str.2:                               ; @.str.2
	.asciz	"cpu-fan-c-0"

l_.str.3:                               ; @.str.3
	.asciz	"cpu-fan-a-1"

l_.str.4:                               ; @.str.4
	.asciz	"cpu-fan-b-1"

l_.str.5:                               ; @.str.5
	.asciz	"cpu-fan-c-1"

l_.str.6:                               ; @.str.6
	.asciz	"backside-fan"

	.comm	_backside_fan,8,3               ; @backside_fan
l_.str.7:                               ; @.str.7
	.asciz	"slots-fan"

	.comm	_slots_fan,8,3                  ; @slots_fan
l_.str.8:                               ; @.str.8
	.asciz	"cpufreq-clamp"

	.comm	_cpufreq_clamp,8,3              ; @cpufreq_clamp
	.comm	_nr_chips,4,2                   ; @nr_chips
	.comm	_have_all_controls,4,2          ; @have_all_controls
	.no_dead_strip	_rm31_new_control
.subsections_via_symbols
