	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function temp_st_store
_temp_st_store:                         ## @temp_st_store
	.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, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	16(%rax), %rbx
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subq	(%rax), %r13
	jmp	LBB0_11
LBB0_2:
	movl	(%r12), %r12d
	testl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movl	$1, %r14d
	cmpl	$1, %r12d
	jne	LBB0_6
## %bb.5:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_3:
	movq	_REG_ENHANCE_ACOUSTICS1@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_6:
	movl	$4, %r12d
LBB0_7:
	movq	_REG_ENHANCE_ACOUSTICS2@GOTPCREL(%rip), %rax
LBB0_8:
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	movl	-48(%rbp), %ebx
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.9:
	movq	_ad7475_st_map@GOTPCREL(%rip), %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%r14d, %esi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_find_closest_descending
	orl	$8, %eax
	movl	%eax, -48(%rbp)
LBB0_10:
	movq	%r15, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	$15, %eax
	movl	%r12d, %ecx
	shll	%cl, %eax
	notl	%eax
	movq	(%r15), %rsi
	andl	(%rsi,%r14,4), %eax
	movl	%eax, (%rsi,%r14,4)
	movl	-48(%rbp), %edx
	shll	%cl, %edx
	orl	%eax, %edx
	movl	%edx, (%rsi,%r14,4)
	movzbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_smbus_write_byte_data
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_REG_ENHANCE_ACOUSTICS1,1,0     ## @REG_ENHANCE_ACOUSTICS1
	.comm	_REG_ENHANCE_ACOUSTICS2,1,0     ## @REG_ENHANCE_ACOUSTICS2
	.comm	_ad7475_st_map,4,2              ## @ad7475_st_map
	.no_dead_strip	_temp_st_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function temp_st_store
_temp_st_store:                         ; @temp_st_store
	.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	x23, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x22, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x21, x0
	ldr	x20, [x0, #16]
	add	x2, sp, #12
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_5
LBB0_2:
	ldr	w8, [x22]
Lloh3:
	adrp	x9, _REG_ENHANCE_ACOUSTICS1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _REG_ENHANCE_ACOUSTICS1@GOTPAGEOFF]
	mov	w10, #4
Lloh5:
	adrp	x11, _REG_ENHANCE_ACOUSTICS2@GOTPAGE
Lloh6:
	ldr	x11, [x11, _REG_ENHANCE_ACOUSTICS2@GOTPAGEOFF]
	mov	w12, #1
Lloh7:
	adrp	x13, _REG_ENHANCE_ACOUSTICS2@GOTPAGE
Lloh8:
	ldr	x13, [x13, _REG_ENHANCE_ACOUSTICS2@GOTPAGEOFF]
	mov	w14, #1
	cmp	w8, #1
	csel	w10, w10, wzr, ne
	csel	x11, x11, x13, ne
	csel	x12, x12, x14, ne
	cmp	w8, #0
	csel	w25, w8, w10, eq
	csel	x8, x9, x11, eq
	csel	x26, xzr, x12, eq
	ldrb	w22, [x8]
	ldr	w23, [sp, #12]
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _ad7475_st_map@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ad7475_st_map@GOTPAGEOFF]
Lloh11:
	ldr	w24, [x8]
	mov	x0, x24
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_find_closest_descending
	orr	w8, w0, #0x8
	str	w8, [sp, #12]
LBB0_4:
	add	x23, x21, #8
	mov	x0, x23
	bl	_mutex_lock
	mov	w8, #15
	lsl	w8, w8, w25
	ldr	x9, [x21]
	lsl	x10, x26, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	ldr	w11, [sp, #12]
	lsl	w11, w11, w25
	orr	w2, w11, w8
	str	w2, [x9, x10]
	mov	x0, x20
	mov	x1, x22
	bl	_i2c_smbus_write_byte_data
	mov	x0, x23
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_REG_ENHANCE_ACOUSTICS1,1,0     ; @REG_ENHANCE_ACOUSTICS1
	.comm	_REG_ENHANCE_ACOUSTICS2,1,0     ; @REG_ENHANCE_ACOUSTICS2
	.comm	_ad7475_st_map,4,2              ; @ad7475_st_map
	.no_dead_strip	_temp_st_store
.subsections_via_symbols
