	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_auto_point_pwm
_store_pwm_auto_point_pwm:              ## @store_pwm_auto_point_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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	4(%rax), %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtol
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_SENSORS_LIMIT
	movq	%rax, %r12
	leaq	16(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	_F71882FG_REG_PWM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_f71882fg_read8
	movl	%eax, (%r13)
	leal	(%r15,%r15), %ecx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.1:
	movq	%r12, %r14
	jmp	LBB0_6
LBB0_2:
	movl	$255, %r14d
	cmpq	$29, %r12
	jl	LBB0_6
## %bb.3:
	movq	%r12, %rcx
	shlq	$5, %rcx
	movl	$8160, %eax                     ## imm = 0x1FE0
	subq	%rcx, %rax
	movq	%r12, %rcx
	orq	%rax, %rcx
	shrq	$32, %rcx
	je	LBB0_4
## %bb.5:
	cqto
	idivq	%r12
	movq	%rax, %r14
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %r14d
LBB0_6:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_F71882FG_REG_POINT_PWM
	movq	%r13, %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_f71882fg_write8
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movq	%r14, (%rax,%rbx,8)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	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	_F71882FG_REG_PWM_ENABLE,4,2    ## @F71882FG_REG_PWM_ENABLE
	.no_dead_strip	_store_pwm_auto_point_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_auto_point_pwm
_store_pwm_auto_point_pwm:              ; @store_pwm_auto_point_pwm
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x23, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldrsw	x21, [x0]
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldrsw	x22, [x0, #4]
	mov	x0, x23
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtol
	mov	w1, #0
	mov	w2, #255
	bl	_SENSORS_LIMIT
	mov	x24, x0
	add	x23, x20, #16
	mov	x0, x23
	bl	_mutex_lock
Lloh0:
	adrp	x8, _F71882FG_REG_PWM_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _F71882FG_REG_PWM_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_f71882fg_read8
	str	w0, [x20]
	lsl	w8, w21, #1
	lsr	w8, w0, w8
	tbnz	w8, #0, LBB0_4
; %bb.1:
	cmp	x24, #29
	b.ge	LBB0_3
; %bb.2:
	mov	w24, #255
	b	LBB0_4
LBB0_3:
	mov	w8, #8160
	sub	x8, x8, x24, lsl #5
	sdiv	x24, x8, x24
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_F71882FG_REG_POINT_PWM
	mov	x1, x0
	mov	x0, x20
	mov	x2, x24
	bl	_f71882fg_write8
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x21, lsl #3]
	str	x24, [x8, x22, lsl #3]
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_F71882FG_REG_PWM_ENABLE,4,2    ; @F71882FG_REG_PWM_ENABLE
	.no_dead_strip	_store_pwm_auto_point_pwm
.subsections_via_symbols
