	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ltc4222_get_value
_ltc4222_get_value:                     ## @ltc4222_get_value
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movl	%esi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	callq	_dev_get_drvdata
	leaq	-24(%rbp), %rdx
	movq	%rax, %rdi
	movl	%ebx, %esi
	movl	$2, %ecx
	callq	_regmap_bulk_read
	testl	%eax, %eax
	js	LBB0_9
## %bb.1:
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_11
## %bb.2:
	movl	-24(%rbp), %eax
	shll	$8, %eax
	addl	-20(%rbp), %eax
	sarl	$6, %eax
	movl	$3, %ecx
	btl	%ebx, %ecx
	jb	LBB0_5
## %bb.3:
	movl	$12, %ecx
	btl	%ebx, %ecx
	jae	LBB0_6
## %bb.4:
	imull	$125, %eax, %edi
	movl	$2, %esi
	jmp	LBB0_8
LBB0_5:
	imull	$125, %eax, %edi
	jmp	LBB0_7
LBB0_6:
	leal	(%rax,%rax,4), %edi
LBB0_7:
	movl	$4, %esi
LBB0_8:
	callq	_DIV_ROUND_CLOSEST
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_12
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ltc4222_get_value
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ltc4222_get_value
_ltc4222_get_value:                     ; @ltc4222_get_value
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_dev_get_drvdata
	mov	x2, sp
	mov	x1, x19
	mov	w3, #2
	bl	_regmap_bulk_read
	tbnz	w0, #31, LBB0_9
; %bb.1:
	sub	w9, w19, #128
	cmp	w9, #5
	b.hi	LBB0_11
; %bb.2:
	ldp	w8, w10, [sp]
	add	w8, w10, w8, lsl #8
	asr	w8, w8, #6
	mov	w10, #1
	lsl	w9, w10, w9
	tst	w9, #0x3
	b.ne	LBB0_5
; %bb.3:
	tst	w9, #0xc
	b.eq	LBB0_6
; %bb.4:
	mov	w9, #125
	mul	w0, w8, w9
	mov	w1, #2
	b	LBB0_8
LBB0_5:
	mov	w9, #125
	mul	w0, w8, w9
	b	LBB0_7
LBB0_6:
	add	w0, w8, w8, lsl #2
LBB0_7:
	mov	w1, #4
LBB0_8:
	bl	_DIV_ROUND_CLOSEST
LBB0_9:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_11:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ltc4222_get_value
.subsections_via_symbols
