	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_in_max
_store_in_max:                          ## @store_in_max
	.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	_dev_get_drvdata
	movq	%rax, %r15
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	-32(%rbp), %rax
	leaq	7(%rax), %rdi
	testq	%rax, %rax
	cmovnsq	%rax, %rdi
	sarq	$3, %rdi
	movq	%rdi, -32(%rbp)
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movq	%rax, -32(%rbp)
	movq	%r15, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_f81866a@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_F81866_REG_IN1_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_F71882FG_REG_IN1_HIGH@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	-32(%rbp), %rdx
	movq	%r15, %rdi
	callq	_f71882fg_write8
	movq	-32(%rbp), %rax
	movq	%rax, 8(%r15)
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_f81866a,8,3                    ## @f81866a
	.comm	_F81866_REG_IN1_HIGH,4,2        ## @F81866_REG_IN1_HIGH
	.comm	_F71882FG_REG_IN1_HIGH,4,2      ## @F71882FG_REG_IN1_HIGH
	.no_dead_strip	_store_in_max
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_in_max
_store_in_max:                          ; @store_in_max
	.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	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x8, [sp, #8]
	add	x9, x8, #7
	cmp	x8, #0
	csel	x8, x9, x8, lt
	asr	x0, x8, #3
	str	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	str	x0, [sp, #8]
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _f81866a@GOTPAGE
Lloh1:
	ldr	x9, [x9, _f81866a@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _F81866_REG_IN1_HIGH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _F81866_REG_IN1_HIGH@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _F71882FG_REG_IN1_HIGH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _F71882FG_REG_IN1_HIGH@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_f71882fg_write8
	ldr	x8, [sp, #8]
	str	x8, [x20, #8]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_5:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_f81866a,8,3                    ; @f81866a
	.comm	_F81866_REG_IN1_HIGH,4,2        ; @F81866_REG_IN1_HIGH
	.comm	_F71882FG_REG_IN1_HIGH,4,2      ; @F71882FG_REG_IN1_HIGH
	.no_dead_strip	_store_in_max
.subsections_via_symbols
