	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_sf2_level
_store_sf2_level:                       ## @store_sf2_level
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r14
	movslq	4(%rax), %r12
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leal	(%rbx,%rbx,4), %eax
	leal	(%rax,%rax,2), %eax
	cltq
	imulq	$1374389535, %rax, %rdi         ## imm = 0x51EB851F
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$37, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_SENSORS_LIMIT
	movq	(%r13), %rcx
	movq	-8(%rcx,%r12,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	_W83792D_REG_LEVELS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %esi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_w83792d_read_value
	movq	(%r13), %rcx
	movq	-8(%rcx,%r12,8), %rcx
	movl	(%rcx,%r14,4), %ecx
	movl	%ecx, %esi
	shll	$4, %esi
	cmpq	$3, %r14
	movl	$240, %edx
	movl	$15, %edi
	cmovnel	%edi, %edx
	cmovel	%ecx, %esi
	andl	%eax, %edx
	orl	%esi, %edx
	movq	_W83792D_REG_LEVELS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%rax,%r12,8), %rax
	movl	(%rax,%r14,4), %esi
	movq	%rbx, %rdi
	callq	_w83792d_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83792D_REG_LEVELS,8,3         ## @W83792D_REG_LEVELS
	.no_dead_strip	_store_sf2_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_sf2_level
_store_sf2_level:                       ; @store_sf2_level
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldpsw	x24, x8, [x0]
	lsl	x25, x8, #3
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x21, x0
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	lsl	w8, w21, #4
	sub	w8, w8, w21
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
	mov	w21, #15
	mov	w1, #0
	mov	w2, #15
	bl	_SENSORS_LIMIT
	ldr	x8, [x22]
	sub	x25, x25, #8
	ldr	x8, [x8, x25]
	lsl	x26, x24, #2
	str	w0, [x8, x26]
Lloh0:
	adrp	x27, _W83792D_REG_LEVELS@GOTPAGE
Lloh1:
	ldr	x27, [x27, _W83792D_REG_LEVELS@GOTPAGEOFF]
	ldr	x8, [x27]
	ldr	x8, [x8, x25]
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_w83792d_read_value
	ldr	x8, [x22]
	ldr	x8, [x8, x25]
	ldr	w8, [x8, x26]
	lsl	w9, w8, #4
	mov	w10, #240
	cmp	w24, #3
	csel	w10, w10, w21, eq
	csel	w8, w8, w9, eq
	and	w9, w10, w0
	ldr	x10, [x27]
	ldr	x10, [x10, x25]
	ldr	w1, [x10, x26]
	orr	w2, w8, w9
	mov	x0, x20
	bl	_w83792d_write_value
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_W83792D_REG_LEVELS,8,3         ; @W83792D_REG_LEVELS
	.no_dead_strip	_store_sf2_level
.subsections_via_symbols
