	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_sf_ctrl
_show_sf_ctrl:                          ## @show_sf_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %ebx
	movslq	4(%rax), %r15
	movq	%r12, %rdi
	callq	_w83793_update_device
	movq	_TEMP_FAN_MAP@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %edx
	jmp	LBB0_8
LBB0_2:
	movq	_TEMP_PWM_ENABLE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_4
## %bb.3:
	movl	8(%rax), %eax
	xorl	%edx, %edx
	btl	%r15d, %eax
	setb	%dl
	orl	$2, %edx
	jmp	LBB0_8
LBB0_4:
	movq	_TEMP_CRUISE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_6
## %bb.5:
	movq	16(%rax), %rax
	movl	(%rax,%r15,4), %edi
	andl	$127, %edi
	jmp	LBB0_7
LBB0_6:
	movq	24(%rax), %rax
	movl	%r15d, %ecx
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %edi
	shll	$2, %r15d
	andb	$4, %r15b
	movl	%r15d, %ecx
	sarl	%cl, %edi
	andl	$15, %edi
LBB0_7:
	callq	_TEMP_FROM_REG
	movl	%eax, %edx
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEMP_FAN_MAP,4,2               ## @TEMP_FAN_MAP
	.comm	_TEMP_PWM_ENABLE,4,2            ## @TEMP_PWM_ENABLE
	.comm	_TEMP_CRUISE,4,2                ## @TEMP_CRUISE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_sf_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_sf_ctrl
_show_sf_ctrl:                          ; @show_sf_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldp	w22, w21, [x0]
                                        ; kill: def $w21 killed $w21 def $x21
	sxtw	x21, w21
	mov	x0, x20
	bl	_w83793_update_device
Lloh0:
	adrp	x8, _TEMP_FAN_MAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEMP_FAN_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w2, [x8, x21, lsl #2]
	b	LBB0_8
LBB0_2:
Lloh3:
	adrp	x8, _TEMP_PWM_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEMP_PWM_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x0, #8]
	lsr	w8, w8, w21
	mov	w2, #2
	bfxil	w2, w8, #0, #1
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _TEMP_CRUISE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TEMP_CRUISE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_6
; %bb.5:
	ldr	x8, [x0, #16]
	ldr	w8, [x8, x21, lsl #2]
	and	w0, w8, #0x7f
	b	LBB0_7
LBB0_6:
	ldr	x8, [x0, #24]
	asr	w9, w21, #1
	ldr	w8, [x8, w9, sxtw #2]
	ubfiz	w9, w21, #2, #1
	asr	w8, w8, w9
	and	w0, w8, #0xf
LBB0_7:
	bl	_TEMP_FROM_REG
	mov	x2, x0
LBB0_8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TEMP_FAN_MAP,4,2               ; @TEMP_FAN_MAP
	.comm	_TEMP_PWM_ENABLE,4,2            ; @TEMP_PWM_ENABLE
	.comm	_TEMP_CRUISE,4,2                ; @TEMP_CRUISE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.no_dead_strip	_show_sf_ctrl
.subsections_via_symbols
