	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_setting
_store_pwm_setting:                     ## @store_pwm_setting
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	_abituguru_pwm_settings_multiplier@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r14), %rcx
	movl	(%rdx,%rcx,4), %esi
	movl	%esi, %edx
	shrl	$31, %edx
	addl	%esi, %edx
	sarl	%edx
	addl	%edx, %eax
	cltd
	idivl	%esi
	movslq	%eax, %rbx
	cmpq	$0, 8(%r14)
	jne	LBB0_2
## %bb.1:
	leaq	-1(%rcx), %rdx
	movl	$77, %eax
	cmpq	$2, %rdx
	jae	LBB0_2
## %bb.3:
	cmpq	%rbx, %rax
	jbe	LBB0_4
	jmp	LBB0_5
LBB0_2:
	movq	_abituguru_pwm_min@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	cmpq	%rbx, %rax
	ja	LBB0_5
LBB0_4:
	movq	_abituguru_pwm_max@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rbx, (%rax,%rcx,8)
	jae	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movq	(%r15), %rcx
	movq	(%rcx,%rdx,8), %rcx
	testb	$1, %al
	jne	LBB0_7
## %bb.9:
	cmpq	%rbx, -8(%rcx,%rax,8)
	jb	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	cmpq	%rbx, 8(%rcx,%rax,8)
	jbe	LBB0_8
LBB0_10:
	movq	(%rcx,%rax,8), %rsi
	cmpq	%rbx, %rsi
	je	LBB0_14
## %bb.11:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, (%rcx,%rax,8)
	movq	_ABIT_UGURU_FAN_PWM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	(%r15), %rax
	movq	(%rax,%rdx,8), %rcx
	movq	%r15, %rdi
	movl	$5, %r8d
	callq	_abituguru_write
	movq	(%r14), %rcx
	cmpq	%rcx, %rax
	ja	LBB0_14
## %bb.12:
	movq	(%r15), %rax
	movq	8(%r14), %rdx
	movq	(%rax,%rdx,8), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, (%rax,%rcx,8)
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_13:
	xorl	%r13d, %r13d
	subq	(%rax), %r13
LBB0_14:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_15:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_abituguru_pwm_settings_multiplier,8,3 ## @abituguru_pwm_settings_multiplier
	.comm	_abituguru_pwm_min,8,3          ## @abituguru_pwm_min
	.comm	_abituguru_pwm_max,8,3          ## @abituguru_pwm_max
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ABIT_UGURU_FAN_PWM,8,3         ## @ABIT_UGURU_FAN_PWM
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_store_pwm_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_setting
_store_pwm_setting:                     ; @store_pwm_setting
	.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	x22, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x20, x0
	mov	x0, x21
	bl	_dev_get_drvdata
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
Lloh0:
	adrp	x8, _abituguru_pwm_settings_multiplier@GOTPAGE
Lloh1:
	ldr	x8, [x8, _abituguru_pwm_settings_multiplier@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldp	x8, x10, [x20]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #0
	cinc	w11, w9, lt
	add	w11, w0, w11, asr #1
	sdiv	w9, w11, w9
	sxtw	x23, w9
	cbnz	x10, LBB0_3
; %bb.1:
	sub	x9, x8, #1
	cmp	x9, #2
	b.hs	LBB0_3
; %bb.2:
	mov	w9, #77
	cmp	x9, x23
	b.ls	LBB0_4
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x9, _abituguru_pwm_min@GOTPAGE
Lloh4:
	ldr	x9, [x9, _abituguru_pwm_min@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x9, [x9, x8, lsl #3]
	cmp	x9, x23
	b.hi	LBB0_5
LBB0_4:
Lloh6:
	adrp	x9, _abituguru_pwm_max@GOTPAGE
Lloh7:
	ldr	x9, [x9, _abituguru_pwm_max@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	cmp	x8, x23
	b.hs	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_15
LBB0_6:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x9, [x21]
	ldp	x8, x2, [x20]
	ldr	x9, [x9, x2, lsl #3]
	add	x10, x9, x8, lsl #3
	tbnz	w8, #0, LBB0_9
; %bb.7:
	ldur	x10, [x10, #-8]
	cmp	x10, x23
	b.lo	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	ldr	x10, [x10, #8]
	cmp	x10, x23
	b.ls	LBB0_8
LBB0_10:
	ldr	x24, [x9, x8, lsl #3]
	cmp	x24, x23
	b.eq	LBB0_14
; %bb.11:
	str	x23, [x9, x8, lsl #3]
Lloh14:
	adrp	x8, _ABIT_UGURU_FAN_PWM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ABIT_UGURU_FAN_PWM@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	add	x1, x8, #1
	ldr	x8, [x21]
	ldr	x3, [x8, x2, lsl #3]
	mov	x0, x21
	mov	w4, #5
	bl	_abituguru_write
	ldr	x8, [x20]
	cmp	x0, x8
	b.hi	LBB0_14
; %bb.12:
	ldr	x9, [x21]
	ldr	x10, [x20, #8]
	ldr	x9, [x9, x10, lsl #3]
	str	x24, [x9, x8, lsl #3]
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_13:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_14:
	mov	x0, x22
	bl	_mutex_unlock
LBB0_15:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_abituguru_pwm_settings_multiplier,8,3 ; @abituguru_pwm_settings_multiplier
	.comm	_abituguru_pwm_min,8,3          ; @abituguru_pwm_min
	.comm	_abituguru_pwm_max,8,3          ; @abituguru_pwm_max
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ABIT_UGURU_FAN_PWM,8,3         ; @ABIT_UGURU_FAN_PWM
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_store_pwm_setting
.subsections_via_symbols
