	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm
_store_pwm:                             ## @store_pwm
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r14
	movslq	4(%rax), %r13
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	_PWM_STOP_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %edi
	cmpl	%r14d, %ebx
	jne	LBB0_2
## %bb.1:
	callq	_TIME_TO_REG
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	%r14d, (%rax,%r13,4)
	movl	%r13d, %edi
	callq	_W83793_REG_PWM_STOP_TIME
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	movl	%r14d, %edx
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_SENSORS_LIMIT
	movl	%eax, %ebx
	sarl	$2, %ebx
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_W83793_REG_PWM
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_w83793_read_value
	andl	$192, %eax
	orl	%ebx, %eax
	movq	8(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	%eax, (%rcx,%r14,4)
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_W83793_REG_PWM
	movq	8(%r15), %rcx
	movq	(%rcx,%r13,8), %rcx
	movl	(%rcx,%r14,4), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
LBB0_3:
	callq	_w83793_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-64(%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	_PWM_STOP_TIME,4,2              ## @PWM_STOP_TIME
	.no_dead_strip	_store_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm
_store_pwm:                             ; @store_pwm
	.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	x25, x2
	mov	x21, x1
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	ldpsw	x24, x23, [x0]
	add	x21, x22, #16
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _PWM_STOP_TIME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PWM_STOP_TIME@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
	mov	x0, x25
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	cmp	w26, w24
	b.ne	LBB0_2
; %bb.1:
	bl	_TIME_TO_REG
	mov	x24, x0
	ldr	x8, [x22]
	str	w0, [x8, x23, lsl #2]
	mov	x0, x23
	bl	_W83793_REG_PWM_STOP_TIME
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	b	LBB0_3
LBB0_2:
	mov	w1, #0
	mov	w2, #255
	bl	_SENSORS_LIMIT
	mov	x25, x0
	mov	x0, x23
	mov	x1, x24
	bl	_W83793_REG_PWM
	mov	x1, x0
	mov	x0, x20
	bl	_w83793_read_value
	and	w8, w0, #0xc0
	ldr	x9, [x22, #8]
	lsl	x26, x23, #3
	ldr	x9, [x9, x26]
	lsl	x27, x24, #2
	orr	w8, w8, w25, asr #2
	str	w8, [x9, x27]
	mov	x0, x23
	mov	x1, x24
	bl	_W83793_REG_PWM
	mov	x1, x0
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x26]
	ldr	w2, [x8, x27]
	mov	x0, x20
LBB0_3:
	bl	_w83793_write_value
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWM_STOP_TIME,4,2              ; @PWM_STOP_TIME
	.no_dead_strip	_store_pwm
.subsections_via_symbols
