	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_enable
_store_pwm_enable:                      ## @store_pwm_enable
	.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, %r14
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	(%r13), %rax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdx
	movq	(%rax,%rdx,8), %rcx
	movl	(%rcx), %r15d
	cmpl	$2, %ebx
	je	LBB0_4
## %bb.1:
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	movq	_ABIT_UGURU_FAN_PWM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r15d, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_ABIT_UGURU_FAN_PWM_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%r15d, %eax
LBB0_5:
	movl	%eax, (%rcx)
	cmpl	%r15d, %eax
	je	LBB0_9
## %bb.6:
	movq	_ABIT_UGURU_FAN_PWM@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r13, %rdi
	movl	$5, %r8d
	callq	_abituguru_write
	testl	%eax, %eax
	jg	LBB0_9
## %bb.7:
	movq	(%r13), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movl	%r15d, (%rax)
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABIT_UGURU_FAN_PWM_ENABLE,4,2  ## @ABIT_UGURU_FAN_PWM_ENABLE
	.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_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_enable
_store_pwm_enable:                      ; @store_pwm_enable
	.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	x20, x2
	mov	x22, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x21, x0
	mov	x0, x22
	bl	_dev_get_drvdata
	mov	x22, x0
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x23, x0
	add	x20, x22, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x22]
	ldr	x2, [x21]
	ldr	x3, [x8, x2, lsl #3]
	ldr	w24, [x3]
	cmp	w23, #2
	b.eq	LBB0_3
; %bb.1:
	cbnz	w23, LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _ABIT_UGURU_FAN_PWM_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABIT_UGURU_FAN_PWM_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w24, w8
	b	LBB0_4
LBB0_3:
Lloh3:
	adrp	x8, _ABIT_UGURU_FAN_PWM_ENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABIT_UGURU_FAN_PWM_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w24
LBB0_4:
	str	w8, [x3]
	cmp	w8, w24
	b.eq	LBB0_9
; %bb.5:
Lloh6:
	adrp	x8, _ABIT_UGURU_FAN_PWM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABIT_UGURU_FAN_PWM@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x1, x8, #1
	mov	x0, x22
	mov	w4, #5
	bl	_abituguru_write
	cmp	w0, #0
	b.gt	LBB0_9
; %bb.6:
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	w24, [x8]
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_9:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ABIT_UGURU_FAN_PWM_ENABLE,4,2  ; @ABIT_UGURU_FAN_PWM_ENABLE
	.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_enable
.subsections_via_symbols
