	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_in_min
_store_in_min:                          ## @store_in_min
	.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, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %ebx
	movq	%r12, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movl	%r14d, %eax
	andl	$-2, %eax
	cmpl	$6, %eax
	jne	LBB0_3
## %bb.1:
	movq	_vccp_limit_type@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, -48(%rax,%r14,8)
	je	LBB0_3
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	-6(%r14), %rbx
	movq	24(%r12), %rax
	movl	-24(%rax,%r14,4), %edi
	callq	_LM93_VID_FROM_REG
	movq	(%r12), %rcx
	movl	$240, %r15d
	andl	-24(%rcx,%r14,4), %r15d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_LM93_IN_REL_TO_REG
	orl	%r15d, %eax
	movq	(%r12), %rcx
	movl	%eax, -24(%rcx,%r14,4)
	movl	%ebx, %edi
	callq	_LM93_REG_VCCP_LIMIT_OFF
	shlq	$2, %rbx
	addq	(%r12), %rbx
	jmp	LBB0_4
LBB0_3:
	movl	%r14d, %edi
	movl	%ebx, %esi
	callq	_LM93_IN_TO_REG
	movq	16(%r12), %rcx
	movq	%r14, %rbx
	shlq	$2, %rbx
	movl	%eax, (%rcx,%r14,4)
	movl	%r14d, %edi
	callq	_LM93_REG_IN_MIN
	addq	16(%r12), %rbx
LBB0_4:
	movl	(%rbx), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_lm93_write_byte
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vccp_limit_type,8,3            ## @vccp_limit_type
	.no_dead_strip	_store_in_min
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_in_min
_store_in_min:                          ; @store_in_min
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x21, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x23, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x24, x0
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	and	w8, w23, #0xfffffffe
	cmp	w8, #6
	b.ne	LBB0_3
; %bb.1:
	sub	w25, w23, #6
Lloh0:
	adrp	x8, _vccp_limit_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vccp_limit_type@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w25, sxtw #3]
	cbz	x8, LBB0_3
; %bb.2:
	sxtw	x8, w25
	ldr	x9, [x22, #24]
	lsl	x23, x8, #2
	ldr	w0, [x9, x23]
	bl	_LM93_VID_FROM_REG
	mov	x2, x0
	ldr	x8, [x22]
	ldr	w8, [x8, x23]
	and	w26, w8, #0xf0
	mov	x0, x24
	mov	w1, #0
	bl	_LM93_IN_REL_TO_REG
	orr	w8, w26, w0
	ldr	x9, [x22]
	str	w8, [x9, x23]
	mov	x0, x25
	bl	_LM93_REG_VCCP_LIMIT_OFF
	mov	x1, x0
	ldr	x8, [x22]
	add	x8, x8, x23
	b	LBB0_4
LBB0_3:
	mov	x0, x23
	mov	x1, x24
	bl	_LM93_IN_TO_REG
	ldr	x8, [x22, #16]
	lsl	x24, x23, #2
	str	w0, [x8, x24]
	mov	x0, x23
	bl	_LM93_REG_IN_MIN
	mov	x1, x0
	ldr	x8, [x22, #16]
	add	x8, x8, x24
LBB0_4:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_lm93_write_byte
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_vccp_limit_type,8,3            ; @vccp_limit_type
	.no_dead_strip	_store_in_min
.subsections_via_symbols
