	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_pwm_temp_sel
_store_pwm_temp_sel:                    ## @store_pwm_temp_sel
	.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, %r15
	movq	%rsi, %rbx
	callq	_nct6775_update_device
	movq	%rax, %r12
	movq	%rbx, %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_7
## %bb.1:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_NUM_TEMP@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	ja	LBB0_3
## %bb.4:
	movl	(%r12), %ebx
	decq	%rdi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_3
## %bb.5:
	movq	8(%r12), %rax
	movq	-48(%rbp), %rcx
	cmpl	$0, -4(%rax,%rcx,4)
	je	LBB0_3
## %bb.6:
	movq	%r12, %r15
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movq	%r13, %rbx
	movl	-4(%rcx,%rax,4), %r13d
	movl	%r13d, (%rdx,%r14,4)
	movq	32(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	andl	$224, %eax
	orl	%eax, %r13d
	movq	32(%r12), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_nct6775_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_TEMP,8,3                   ## @NUM_TEMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_store_pwm_temp_sel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_pwm_temp_sel
_store_pwm_temp_sel:                    ; @store_pwm_temp_sel
	.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	_nct6775_update_device
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr
	ldrsw	x22, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_7
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _NUM_TEMP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NUM_TEMP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hi	LBB0_6
; %bb.3:
	ldr	w21, [x20]
	sub	x0, x8, #1
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x20, #8]
	ldr	x9, [sp, #8]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	cbz	w8, LBB0_6
; %bb.5:
	add	x21, x20, #24
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldp	x9, x10, [x20, #8]
	add	x8, x9, x8, lsl #2
	ldur	w23, [x8, #-4]
	lsl	x22, x22, #2
	str	w23, [x10, x22]
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_read_value
	and	w8, w0, #0xe0
	orr	w2, w8, w23
	ldr	x8, [x20, #32]
	ldr	w1, [x8, x22]
	mov	x0, x20
	bl	_nct6775_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_TEMP,8,3                   ; @NUM_TEMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_store_pwm_temp_sel
.subsections_via_symbols
