	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_sf_ctrl
_store_sf_ctrl:                         ## @store_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %r15d
	movslq	4(%rax), %r13
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%rax, %rdi
	addq	$32, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_TEMP_FAN_MAP@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	%rbx, %r14
	movzbl	%al, %ebx
	movl	%r13d, %edi
	callq	_W83793_REG_TEMP_FAN_MAP
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_w83793_write_value
	movq	(%r12), %rax
	movl	%ebx, (%rax,%r13,4)
	jmp	LBB0_11
LBB0_2:
	movq	_TEMP_PWM_ENABLE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r14d
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.4:
	movq	_W83793_REG_PWM_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_w83793_read_value
	movl	%eax, %edx
	btrl	%r13d, %edx
	btsl	%r13d, %eax
	cmpl	$2, %r14d
	cmovnel	%eax, %edx
	movl	%edx, 8(%r12)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	jmp	LBB0_10
LBB0_6:
	movq	_TEMP_CRUISE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %edi
	callq	_W83793_REG_TEMP_CRUISE
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_w83793_read_value
	movq	16(%r12), %rcx
	movl	%eax, (%rcx,%r13,4)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$127, %edx
	callq	_TEMP_TO_REG
	movq	16(%r12), %rcx
	movl	$128, %edx
	andl	(%rcx,%r13,4), %edx
	orl	%eax, %edx
	movl	%edx, (%rcx,%r13,4)
	movl	%r13d, %edi
	callq	_W83793_REG_TEMP_CRUISE
	movq	16(%r12), %rcx
	movl	(%rcx,%r13,4), %edx
	movq	%rbx, %rdi
	jmp	LBB0_9
LBB0_5:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_12
LBB0_8:
	movq	%rbx, %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ebx
	sarl	%ebx
	shll	$2, %r13d
	movl	%ebx, %edi
	callq	_W83793_REG_TEMP_TOL
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_w83793_read_value
	movq	24(%r12), %rcx
	movslq	%ebx, %r15
	movl	%eax, (%rcx,%r15,4)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movl	$15, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_TEMP_TO_REG
	andb	$4, %r13b
	movl	%r13d, %ecx
	shll	%cl, %ebx
	notl	%ebx
	movq	24(%r12), %rdx
	shll	%cl, %eax
	andl	(%rdx,%r15,4), %ebx
	orl	%ebx, %eax
	movl	%eax, (%rdx,%r15,4)
	movl	%r15d, %edi
	callq	_W83793_REG_TEMP_TOL
	movq	24(%r12), %rcx
	movl	(%rcx,%r15,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_9:
	movl	%eax, %esi
LBB0_10:
	callq	_w83793_write_value
LBB0_11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEMP_FAN_MAP,4,2               ## @TEMP_FAN_MAP
	.comm	_TEMP_PWM_ENABLE,4,2            ## @TEMP_PWM_ENABLE
	.comm	_W83793_REG_PWM_ENABLE,4,2      ## @W83793_REG_PWM_ENABLE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_TEMP_CRUISE,4,2                ## @TEMP_CRUISE
	.no_dead_strip	_store_sf_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_sf_ctrl
_store_sf_ctrl:                         ; @store_sf_ctrl
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x24, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldp	w25, w23, [x0]
                                        ; kill: def $w23 killed $w23 def $x23
	sxtw	x23, w23
	mov	x0, x20
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	add	x20, x0, #32
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _TEMP_FAN_MAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEMP_FAN_MAP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	and	w24, w0, #0xff
	mov	x0, x23
	bl	_W83793_REG_TEMP_FAN_MAP
	mov	x1, x0
	mov	x0, x21
	mov	x2, x24
	bl	_w83793_write_value
	ldr	x8, [x22]
	str	w24, [x8, x23, lsl #2]
	b	LBB0_10
LBB0_2:
Lloh3:
	adrp	x8, _TEMP_PWM_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEMP_PWM_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x24
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_7
; %bb.4:
	mov	x24, x0
Lloh6:
	adrp	x25, _W83793_REG_PWM_ENABLE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _W83793_REG_PWM_ENABLE@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x21
	bl	_w83793_read_value
	mov	w8, #1
	lsl	w8, w8, w23
	bic	w9, w0, w8
	orr	w8, w8, w0
	cmp	w24, #2
	csel	w2, w9, w8, eq
	str	w2, [x22, #8]
	ldr	w1, [x25]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _TEMP_CRUISE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TEMP_CRUISE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w25
	b.ne	LBB0_8
; %bb.6:
	mov	x0, x23
	bl	_W83793_REG_TEMP_CRUISE
	mov	x1, x0
	mov	x0, x21
	bl	_w83793_read_value
	ldr	x8, [x22, #16]
	lsl	x25, x23, #2
	str	w0, [x8, x25]
	mov	x0, x24
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	w1, #0
	mov	w2, #127
	bl	_TEMP_TO_REG
	ldr	x8, [x22, #16]
	ldr	w9, [x8, x25]
	and	w9, w9, #0x80
	orr	w9, w9, w0
	str	w9, [x8, x25]
	mov	x0, x23
	bl	_W83793_REG_TEMP_CRUISE
	mov	x1, x0
	ldr	x8, [x22, #16]
	ldr	w2, [x8, x25]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_mutex_unlock
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_11
LBB0_8:
	asr	w25, w23, #1
	ubfiz	w23, w23, #2, #1
	mov	x0, x25
	bl	_W83793_REG_TEMP_TOL
	mov	x1, x0
	mov	x0, x21
	bl	_w83793_read_value
	ldr	x8, [x22, #24]
	sbfiz	x26, x25, #2, #32
	str	w0, [x8, x26]
	mov	x0, x24
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	w24, #15
	mov	w1, #0
	mov	w2, #15
	bl	_TEMP_TO_REG
	ldr	x8, [x22, #24]
	ldr	w9, [x8, x26]
	lsl	w10, w24, w23
	bic	w9, w9, w10
	lsl	w10, w0, w23
	orr	w9, w9, w10
	str	w9, [x8, x26]
	mov	x0, x25
	bl	_W83793_REG_TEMP_TOL
	mov	x1, x0
	ldr	x8, [x22, #24]
	ldr	w2, [x8, x26]
LBB0_9:
	mov	x0, x21
	bl	_w83793_write_value
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TEMP_FAN_MAP,4,2               ; @TEMP_FAN_MAP
	.comm	_TEMP_PWM_ENABLE,4,2            ; @TEMP_PWM_ENABLE
	.comm	_W83793_REG_PWM_ENABLE,4,2      ; @W83793_REG_PWM_ENABLE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_TEMP_CRUISE,4,2                ; @TEMP_CRUISE
	.no_dead_strip	_store_sf_ctrl
.subsections_via_symbols
