	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_in8
_store_in8:                             ## @store_in8
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_SETUP_STORE_DATA_PARAM
	movq	_sda@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
	jmp	LBB0_6
LBB0_2:
	movq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_clamp_val
	movq	%rax, -32(%rbp)
	shlq	$6, %rax
	leaq	(%rax,%rax,2), %rax
	movq	_asc7621_in_scaling@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	movq	%rax, %rdi
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edi
LBB0_5:
	movq	%rdi, -32(%rbp)
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movq	%rax, -32(%rbp)
	movq	_data@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_mutex_lock
	movq	-32(%rbp), %rax
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_param@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rsi
	movq	%rax, (%rcx,%rsi,8)
	movq	_client@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rdx), %rsi
	movq	-32(%rbp), %rdx
	callq	_write_byte
	movq	(%rbx), %rdi
	addq	$8, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sda,8,3                        ## @sda
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_asc7621_in_scaling,8,3         ## @asc7621_in_scaling
	.comm	_data,8,3                       ## @data
	.comm	_param,8,3                      ## @param
	.comm	_client,4,2                     ## @client
	.no_dead_strip	_store_in8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_in8
_store_in8:                             ; @store_in8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	bl	_SETUP_STORE_DATA_PARAM
Lloh0:
	adrp	x8, _sda@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sda@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x21, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #10
	bl	_kstrtol
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #65535
	bl	_clamp_val
	str	x0, [sp, #8]
	add	x8, x0, x0, lsl #1
Lloh6:
	adrp	x9, _asc7621_in_scaling@GOTPAGE
Lloh7:
	ldr	x9, [x9, _asc7621_in_scaling@GOTPAGEOFF]
	lsl	x8, x8, #6
Lloh8:
	ldr	x9, [x9]
	ldr	x9, [x9, x21, lsl #3]
	sdiv	x0, x8, x9
	str	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	str	x0, [sp, #8]
Lloh9:
	adrp	x20, _data@GOTPAGE
Lloh10:
	ldr	x20, [x20, _data@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
Lloh11:
	adrp	x10, _param@GOTPAGE
Lloh12:
	ldr	x10, [x10, _param@GOTPAGEOFF]
	ldr	x9, [x9]
Lloh13:
	ldr	x10, [x10]
	ldr	x10, [x10]
	ldr	x11, [x10]
	str	x8, [x9, x11, lsl #3]
Lloh14:
	adrp	x8, _client@GOTPAGE
Lloh15:
	ldr	x8, [x8, _client@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x1, [x10]
	ldr	x2, [sp, #8]
	bl	_write_byte
	ldr	x8, [x20]
	add	x0, x8, #8
	bl	_mutex_unlock
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sda,8,3                        ; @sda
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_asc7621_in_scaling,8,3         ; @asc7621_in_scaling
	.comm	_data,8,3                       ; @data
	.comm	_param,8,3                      ; @param
	.comm	_client,4,2                     ; @client
	.no_dead_strip	_store_in8
.subsections_via_symbols
