	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ccnt
_read_ccnt:                             ## @read_ccnt
	.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
	movq	%rdx, %r14
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	movq	_PM8607_CCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	andl	$7, %ecx
	movl	$7, %edx
	callq	_pm860x_set_bits
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movl	(%rbx), %edi
	movq	_PM8607_CCNT_MEAS1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-18(%rbp), %rcx
	movl	$2, %edx
	callq	_pm860x_bulk_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movzwl	-18(%rbp), %eax
	rolw	$8, %ax
	movzwl	%ax, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PM8607_CCNT,4,2                ## @PM8607_CCNT
	.comm	_PM8607_CCNT_MEAS1,4,2          ## @PM8607_CCNT_MEAS1
	.no_dead_strip	_read_ccnt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ccnt
_read_ccnt:                             ; @read_ccnt
	.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, x2
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _PM8607_CCNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PM8607_CCNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w3, w1, #0x7
	mov	x1, x8
	mov	w2, #7
	bl	_pm860x_set_bits
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _PM8607_CCNT_MEAS1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM8607_CCNT_MEAS1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x3, sp, #14
	mov	w2, #2
	bl	_pm860x_bulk_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
	mov	w0, #0
	ldrh	w8, [sp, #14]
	rev16	w8, w8
	str	w8, [x19]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PM8607_CCNT,4,2                ; @PM8607_CCNT
	.comm	_PM8607_CCNT_MEAS1,4,2          ; @PM8607_CCNT_MEAS1
	.no_dead_strip	_read_ccnt
.subsections_via_symbols
