	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_measure
_start_measure:                         ## @start_measure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movw	$0, -18(%rbp)
	addl	$-128, %esi
	cmpl	$4, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movslq	%esi, %rax
	leaq	l_switch.table.start_measure(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.start_measure.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %r14d
	movl	(%rcx), %esi
	movl	(%rdi), %edi
	xorl	%edx, %edx
	callq	_max8925_reg_write
	movl	(%rbx), %edi
	leaq	-18(%rbp), %rcx
	movl	%r14d, %esi
	movl	$2, %edx
	callq	_max8925_bulk_read
	movzwl	-18(%rbp), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	shrl	$4, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX8925_CMD_VCHG,4,2           ## @MAX8925_CMD_VCHG
	.comm	_MAX8925_ADC_VCHG,4,2           ## @MAX8925_ADC_VCHG
	.comm	_MAX8925_CMD_VBBATT,4,2         ## @MAX8925_CMD_VBBATT
	.comm	_MAX8925_ADC_VBBATT,4,2         ## @MAX8925_ADC_VBBATT
	.comm	_MAX8925_CMD_VMBATT,4,2         ## @MAX8925_CMD_VMBATT
	.comm	_MAX8925_ADC_VMBATT,4,2         ## @MAX8925_ADC_VMBATT
	.comm	_MAX8925_CMD_ISNS,4,2           ## @MAX8925_CMD_ISNS
	.comm	_MAX8925_ADC_ISNS,4,2           ## @MAX8925_ADC_ISNS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_start_measure
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.start_measure
l_switch.table.start_measure:
	.quad	_MAX8925_CMD_VMBATT
	.quad	_MAX8925_CMD_VCHG
	.quad	_MAX8925_CMD_VBBATT
	.quad	_MAX8925_CMD_ISNS

	.p2align	3                               ## @switch.table.start_measure.1
l_switch.table.start_measure.1:
	.quad	_MAX8925_ADC_VMBATT
	.quad	_MAX8925_ADC_VCHG
	.quad	_MAX8925_ADC_VBBATT
	.quad	_MAX8925_ADC_ISNS

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_measure
_start_measure:                         ; @start_measure
	.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
	strh	wzr, [sp, #14]
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #3, #32
Lloh0:
	adrp	x9, l_switch.table.start_measure@PAGE
Lloh1:
	add	x9, x9, l_switch.table.start_measure@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.start_measure.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.start_measure.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w20, [x8]
	ldr	w1, [x9]
	ldr	w0, [x0]
	mov	w2, #0
	bl	_max8925_reg_write
	ldr	w0, [x19]
	add	x3, sp, #14
	mov	x1, x20
	mov	w2, #2
	bl	_max8925_bulk_read
	ldrh	w8, [sp, #14]
	rev	w8, w8
	lsr	w0, w8, #20
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX8925_CMD_VCHG,4,2           ; @MAX8925_CMD_VCHG
	.comm	_MAX8925_ADC_VCHG,4,2           ; @MAX8925_ADC_VCHG
	.comm	_MAX8925_CMD_VBBATT,4,2         ; @MAX8925_CMD_VBBATT
	.comm	_MAX8925_ADC_VBBATT,4,2         ; @MAX8925_ADC_VBBATT
	.comm	_MAX8925_CMD_VMBATT,4,2         ; @MAX8925_CMD_VMBATT
	.comm	_MAX8925_ADC_VMBATT,4,2         ; @MAX8925_ADC_VMBATT
	.comm	_MAX8925_CMD_ISNS,4,2           ; @MAX8925_CMD_ISNS
	.comm	_MAX8925_ADC_ISNS,4,2           ; @MAX8925_ADC_ISNS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_start_measure
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.start_measure
l_switch.table.start_measure:
	.quad	_MAX8925_CMD_VMBATT
	.quad	_MAX8925_CMD_VCHG
	.quad	_MAX8925_CMD_VBBATT
	.quad	_MAX8925_CMD_ISNS

	.p2align	3                               ; @switch.table.start_measure.1
l_switch.table.start_measure.1:
	.quad	_MAX8925_ADC_VMBATT
	.quad	_MAX8925_ADC_VCHG
	.quad	_MAX8925_ADC_VBBATT
	.quad	_MAX8925_ADC_ISNS

.subsections_via_symbols
