	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_auto_pwm
_store_auto_pwm:                        ## @store_auto_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %rbx
	movslq	4(%rax), %r15
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	cmpq	$256, %rax                      ## imm = 0x100
	jb	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_20
LBB0_1:
	movl	%eax, %r12d
	jmp	LBB0_20
LBB0_4:
	movq	%r14, %r13
	cmpl	(%r14), %r15d
	jne	LBB0_10
## %bb.5:
	movl	4(%r13), %ecx
	cmpl	$137, %ecx
	je	LBB0_7
## %bb.6:
	testq	%rax, %rax
	je	LBB0_3
LBB0_7:
	cmpl	$135, %ecx
	je	LBB0_10
## %bb.8:
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	$255, -48(%rbp)
LBB0_10:
	addq	$20, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	cmpl	(%r13), %r15d
	jge	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %edx
	callq	_NCT6775_AUTO_PWM
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movl	(%rcx,%r15,8), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
	jmp	LBB0_18
LBB0_12:
	movl	4(%r13), %eax
	leal	-128(%rax), %ecx
	cmpl	$8, %ecx
	jae	LBB0_13
LBB0_16:
	movq	32(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	callq	_nct6775_write_value
	movq	24(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
	movl	16(%r13), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	orl	%eax, %edx
	cmpq	$255, -48(%rbp)
	cmovel	%ecx, %edx
	movq	24(%r13), %rax
LBB0_17:
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
LBB0_18:
	callq	_nct6775_write_value
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leal	-138(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_16
## %bb.14:
	cmpl	$137, %eax
	jne	LBB0_19
## %bb.15:
	movq	_NCT6775_REG_CRITICAL_ENAB@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r13, %rdi
	callq	_nct6775_read_value
                                        ## kill: def $eax killed $eax def $rax
	xorl	%ecx, %ecx
	cmpq	$0, -48(%rbp)
	setne	%cl
	andl	$-3, %eax
	leal	(%rax,%rcx,2), %edx
	movq	(%r15), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NCT6775_REG_CRITICAL_ENAB,8,3  ## @NCT6775_REG_CRITICAL_ENAB
	.no_dead_strip	_store_auto_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_auto_pwm
_store_auto_pwm:                        ; @store_auto_pwm
	.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	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr_2
	ldpsw	x22, x23, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #256
	b.lo	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_17
LBB0_3:
	mov	x19, x0
	b	LBB0_17
LBB0_4:
	ldr	w9, [x20]
	cmp	w23, w9
	b.ne	LBB0_10
; %bb.5:
	ldr	w9, [x20, #4]
	cmp	w9, #137
	b.eq	LBB0_7
; %bb.6:
	cbz	x8, LBB0_2
LBB0_7:
	cmp	w9, #135
	b.eq	LBB0_10
; %bb.8:
	cbz	x8, LBB0_10
; %bb.9:
	mov	w8, #255
	str	x8, [sp, #8]
LBB0_10:
	add	x21, x20, #20
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20, #8]
	ldr	x9, [x9, x22, lsl #3]
	str	x8, [x9, x23, lsl #3]
	ldr	w8, [x20]
	cmp	w23, w8
	b.ge	LBB0_12
; %bb.11:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_NCT6775_AUTO_PWM
	mov	x1, x0
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x22, lsl #3]
	ldr	x2, [x8, x23, lsl #3]
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	b	LBB0_15
LBB0_12:
	ldr	w8, [x20, #4]
	sub	w9, w8, #128
	cmp	w9, #8
	b.hs	LBB0_18
LBB0_13:
	ldr	x8, [x20, #32]
	lsl	x22, x22, #2
	ldr	w1, [x8, x22]
	ldr	w2, [sp, #8]
	mov	x0, x20
	bl	_nct6775_write_value
	ldr	x8, [x20, #24]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_read_value
	ldr	x8, [sp, #8]
	ldr	w9, [x20, #16]
	bic	w10, w0, w9
	orr	w9, w9, w0
	cmp	x8, #255
	csel	w2, w10, w9, eq
	ldr	x8, [x20, #24]
LBB0_14:
	ldr	w1, [x8, x22]
	mov	x0, x20
LBB0_15:
	bl	_nct6775_write_value
LBB0_16:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_17:
	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
LBB0_18:
	sub	w9, w8, #138
	cmp	w9, #2
	b.lo	LBB0_13
; %bb.19:
	cmp	w8, #137
	b.ne	LBB0_16
; %bb.20:
Lloh3:
	adrp	x23, _NCT6775_REG_CRITICAL_ENAB@GOTPAGE
Lloh4:
	ldr	x23, [x23, _NCT6775_REG_CRITICAL_ENAB@GOTPAGEOFF]
	ldr	x8, [x23]
	lsl	x22, x22, #2
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_read_value
	mov	x2, x0
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, ne
	bfi	w2, w8, #1, #1
	ldr	x8, [x23]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NCT6775_REG_CRITICAL_ENAB,8,3  ; @NCT6775_REG_CRITICAL_ENAB
	.no_dead_strip	_store_auto_pwm
.subsections_via_symbols
