	.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
	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, %r13
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_platdata
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r12, %r15
	cmpq	$5, %rax
	jb	LBB0_6
## %bb.4:
	movq	(%r15), %rcx
	cmpq	(%rcx,%r14,8), %rax
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r13d
	jmp	LBB0_13
LBB0_6:
	movq	(%rbx), %rcx
	movq	_nct6776@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_8
## %bb.7:
	cmpq	$4, %rax
	jne	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_13
LBB0_8:
	addq	$16, %r12
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	(%rbx), %rax
	movq	_nct6775@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.9:
	movq	_nct6776@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_10
## %bb.11:
	movq	_W83627EHF_REG_PWM_ENABLE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	callq	_w83627ehf_read_value
	movq	_W83627EHF_PWM_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movb	(%rcx,%r14,4), %cl
	movl	$3, %esi
	shll	%cl, %esi
	notl	%esi
	andl	%eax, %esi
	movl	$4294967295, %edx               ## imm = 0xFFFFFFFF
	addq	-48(%rbp), %rdx
	shlq	%cl, %rdx
	orl	%esi, %edx
	jmp	LBB0_12
LBB0_10:
	movq	_NCT6775_REG_FAN_MODE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
	callq	_w83627ehf_read_value
                                        ## kill: def $eax killed $eax def $rax
	andl	$15, %eax
	movl	-48(%rbp), %ecx
	shll	$4, %ecx
	leal	(%rcx,%rax), %edx
	addl	$-16, %edx
LBB0_12:
	movq	(%rbx), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_w83627ehf_write_value
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nct6776,8,3                    ## @nct6776
	.comm	_nct6775,8,3                    ## @nct6775
	.comm	_NCT6775_REG_FAN_MODE,8,3       ## @NCT6775_REG_FAN_MODE
	.comm	_W83627EHF_REG_PWM_ENABLE,8,3   ## @W83627EHF_REG_PWM_ENABLE
	.comm	_W83627EHF_PWM_ENABLE_SHIFT,8,3 ## @W83627EHF_PWM_ENABLE_SHIFT
	.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:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_dev_get_platdata
	mov	x22, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_8
; %bb.2:
Lloh0:
	adrp	x24, _nct6776@GOTPAGE
Lloh1:
	ldr	x24, [x24, _nct6776@GOTPAGEOFF]
	cmp	x8, #5
	b.lo	LBB0_7
; %bb.3:
	ldr	x9, [x20]
	ldr	x9, [x9, x23, lsl #3]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_4:
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	str	x8, [x9, x23, lsl #3]
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _nct6775@GOTPAGE
Lloh3:
	ldr	x9, [x9, _nct6775@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x10, [x24]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_9
; %bb.5:
Lloh5:
	adrp	x22, _NCT6775_REG_FAN_MODE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _NCT6775_REG_FAN_MODE@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x20
	bl	_w83627ehf_read_value
	ldr	w8, [sp, #8]
	bfi	w0, w8, #4, #28
	sub	w2, w0, #16
	b	LBB0_10
LBB0_6:
	mov	x19, x0
	b	LBB0_11
LBB0_7:
	ldr	x9, [x22]
	ldr	x10, [x24]
	cmp	x9, x10
	ccmp	x8, #4, #0, eq
	b.ne	LBB0_4
LBB0_8:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_11
LBB0_9:
Lloh10:
	adrp	x22, _W83627EHF_REG_PWM_ENABLE@GOTPAGE
Lloh11:
	ldr	x22, [x22, _W83627EHF_REG_PWM_ENABLE@GOTPAGEOFF]
	ldr	x8, [x22]
	lsl	x24, x23, #2
	ldr	w1, [x8, x24]
	mov	x0, x20
	bl	_w83627ehf_read_value
Lloh12:
	adrp	x8, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _W83627EHF_PWM_ENABLE_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x8, x24]
	mov	w9, #3
	lsl	w9, w9, w8
	bic	w9, w0, w9
	ldr	x10, [sp, #8]
	mov	w11, #-1
	add	x10, x10, x11
	lsl	x8, x10, x8
	orr	w2, w9, w8
LBB0_10:
	ldr	x8, [x22]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x20
	bl	_w83627ehf_write_value
	mov	x0, x21
	bl	_mutex_unlock
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nct6776,8,3                    ; @nct6776
	.comm	_nct6775,8,3                    ; @nct6775
	.comm	_NCT6775_REG_FAN_MODE,8,3       ; @NCT6775_REG_FAN_MODE
	.comm	_W83627EHF_REG_PWM_ENABLE,8,3   ; @W83627EHF_REG_PWM_ENABLE
	.comm	_W83627EHF_PWM_ENABLE_SHIFT,8,3 ; @W83627EHF_PWM_ENABLE_SHIFT
	.no_dead_strip	_store_pwm_enable
.subsections_via_symbols
