	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_type
_store_temp_type:                       ## @store_temp_type
	.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	$40, %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, %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_1
## %bb.2:
	movq	-48(%rbp), %rax
	cmpq	$4, %rax
	ja	LBB0_4
## %bb.3:
	movl	$26, %ecx
	btq	%rax, %rcx
	jae	LBB0_4
## %bb.5:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	addq	$12, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	movq	(%r12), %rcx
	movq	%rax, (%rcx,%r14,8)
	movl	$2, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	movl	8(%r12), %r15d
	movl	20(%r12), %esi
	shll	%cl, %r15d
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movl	%eax, %r14d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	notl	%ebx
	andl	%eax, %ebx
	movl	16(%r12), %esi
	movq	%r12, %rdi
	callq	_nct6775_read_value
	movl	%r15d, %r13d
	notl	%r13d
	andl	%eax, %r13d
	movq	-48(%rbp), %rcx
	cmpq	$3, %rcx
	je	LBB0_8
## %bb.6:
	cmpq	$1, %rcx
	jne	LBB0_9
## %bb.7:
	orl	-52(%rbp), %r14d                ## 4-byte Folded Reload
	orl	%r15d, %eax
	movl	%eax, %r13d
	movl	%r14d, %ebx
	jmp	LBB0_9
LBB0_1:
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_10
LBB0_8:
	orl	%r15d, %ebx
LBB0_9:
	movl	20(%r12), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_nct6775_write_value
	movl	16(%r12), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_nct6775_write_value
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_store_temp_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_type
_store_temp_type:                       ; @store_temp_type
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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_4
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #4
	mov	w9, #1
	lsl	x8, x9, x8
	mov	w9, #26
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_3
; %bb.2:
	add	x21, x20, #12
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	str	x8, [x9, x22, lsl #3]
	mov	w8, #2
	lsl	w23, w8, w22
	ldr	w8, [x20, #8]
	lsl	w24, w8, w22
	ldr	w1, [x20, #20]
	mov	x0, x20
	bl	_nct6775_read_value
	mov	x22, x0
	bic	w25, w0, w23
	ldr	w1, [x20, #16]
	mov	x0, x20
	bl	_nct6775_read_value
	bic	w8, w0, w24
	ldr	x9, [sp, #8]
	orr	w10, w25, w24
	cmp	x9, #1
	orr	w11, w22, w23
	orr	w12, w0, w24
	csel	w12, w8, w12, ne
	csel	w11, w25, w11, ne
	cmp	x9, #3
	csel	w22, w8, w12, eq
	csel	w2, w10, w11, eq
	ldr	w1, [x20, #20]
	mov	x0, x20
	bl	_nct6775_write_value
	ldr	w1, [x20, #16]
	mov	x0, x20
	mov	x2, x22
	bl	_nct6775_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_store_temp_type
.subsections_via_symbols
