	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_soc_clocks
_cap_soc_clocks:                        ## @cap_soc_clocks
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %r14d
	testl	%r14d, %r14d
	jle	LBB0_32
## %bb.1:
	leaq	16(%rbp), %r9
	movslq	(%r9), %r15
	imulq	$274877907, %r15, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	movslq	4(%r9), %rcx
	movq	%rcx, %rax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %rcx, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	8(%r9), %rdx
	movq	%rdx, %rcx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %rdx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	movslq	12(%r9), %rsi
	movq	%rsi, %rdx
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %rsi, %rbx          ## imm = 0x10624DD3
	movq	%rbx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rbx
	addl	%edx, %ebx
	movslq	16(%r9), %rsi
	movq	%rsi, %rdx
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	imulq	$274877907, %rsi, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rdx
	shrq	$63, %rdx
	sarq	$38, %rsi
	addl	%edx, %esi
	movslq	20(%r9), %r8
	movq	%r8, %rdx
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	imulq	$274877907, %r8, %rdx           ## imm = 0x10624DD3
	movq	%rdx, %r8
	shrq	$63, %r8
	sarq	$38, %rdx
	addl	%r8d, %edx
	movslq	24(%r9), %r8
	imulq	$274877907, %r8, %r12           ## imm = 0x10624DD3
	movq	%r12, %r10
	shrq	$63, %r10
	sarq	$38, %r12
	addl	%r10d, %r12d
	movslq	28(%r9), %r9
	imulq	$274877907, %r9, %r10           ## imm = 0x10624DD3
	movq	%r10, %r11
	shrq	$63, %r11
	sarq	$38, %r10
	addl	%r11d, %r10d
	shll	$4, %eax
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, %r11
	shlq	$5, %r11
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	%r15, %rdi
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$32, %r15
	cmpq	%r15, %r11
	je	LBB0_27
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%edi, %edi
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r13d, (%r14,%r15)
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, (%r14,%r15)
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, 4(%r14,%r15)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, 4(%r14,%r15)
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ecx, 8(%r14,%r15)
	jle	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, 8(%r14,%r15)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -88(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%ebx, 12(%r14,%r15)
	jle	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, 12(%r14,%r15)
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -80(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%esi, 16(%r14,%r15)
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%esi, 16(%r14,%r15)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%edx, 20(%r14,%r15)
	jle	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%edx, 20(%r14,%r15)
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r8d, %r8d
	je	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r12d, 24(%r14,%r15)
	jle	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, 24(%r14,%r15)
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r9d, %r9d
	je	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r10d, 28(%r14,%r15)
	jle	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, 28(%r14,%r15)
	jmp	LBB0_26
LBB0_27:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpl	$3, %ebx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jl	LBB0_32
## %bb.28:
	movq	8(%r8), %rax
	movl	$4294967294, %ecx               ## imm = 0xFFFFFFFE
	addq	%rbx, %rcx
	leaq	-1(%rbx), %rdx
	pcmpeqd	%xmm0, %xmm0
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	decq	%rcx
	leaq	-1(%rdx), %rsi
	incq	%rdx
	cmpq	$3, %rdx
	movq	%rsi, %rdx
	jbe	LBB0_32
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %esi
	shlq	$5, %rsi
	movl	%edx, %edi
	shlq	$5, %rdi
	movdqu	(%rax,%rsi), %xmm1
	movdqu	16(%rax,%rsi), %xmm2
	movdqu	(%rax,%rdi), %xmm3
	pcmpeqd	%xmm1, %xmm3
	movdqu	16(%rax,%rdi), %xmm1
	pcmpeqd	%xmm2, %xmm1
	pxor	%xmm0, %xmm1
	pxor	%xmm0, %xmm3
	packssdw	%xmm1, %xmm3
	psllw	$15, %xmm3
	pmovmskb	%xmm3, %esi
	testl	$43690, %esi                    ## imm = 0xAAAA
	jne	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	decl	%ebx
	movl	%ebx, (%r8)
	jmp	LBB0_31
LBB0_32:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cap_soc_clocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_soc_clocks
_cap_soc_clocks:                        ; @cap_soc_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.1:
	ldr	x19, [x0, #8]
	mov	w7, #19923
	movk	w7, #4194, lsl #16
	ldpsw	x9, x10, [x1]
	mul	x11, x9, x7
	lsr	x12, x11, #63
	asr	x11, x11, #38
	add	w11, w11, w12
	mul	x12, x10, x7
	lsr	x13, x12, #63
	asr	x12, x12, #38
	add	w12, w12, w13
	lsl	w12, w12, #4
	ldpsw	x13, x14, [x1, #8]
	mul	x15, x13, x7
	lsr	x16, x15, #63
	asr	x15, x15, #38
	add	w15, w15, w16
	mul	x16, x14, x7
	lsr	x17, x16, #63
	asr	x16, x16, #38
	add	w16, w16, w17
	ldpsw	x17, x2, [x1, #16]
	mul	x3, x17, x7
	lsr	x4, x3, #63
	asr	x3, x3, #38
	add	w3, w3, w4
	mul	x4, x2, x7
	lsr	x5, x4, #63
	asr	x4, x4, #38
	add	w4, w4, w5
	ldpsw	x5, x1, [x1, #24]
	mul	x6, x5, x7
	lsr	x20, x6, #63
	asr	x6, x6, #38
	add	w6, w6, w20
	mul	x7, x1, x7
	lsr	x20, x7, #63
	asr	x7, x7, #38
	add	w7, w7, w20
	add	x19, x19, #16
	mov	x20, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x19, #32
	subs	x20, x20, #1
	b.eq	LBB0_26
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w9, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w21, [x19, #-16]
	cmp	w21, w11
	b.le	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	stur	w11, [x19, #-16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldur	w21, [x19, #-12]
	cmp	w21, w12
	ccmp	w10, #0, #4, gt
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	stur	w12, [x19, #-12]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w13, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	w21, [x19, #-8]
	cmp	w21, w15
	b.le	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	stur	w15, [x19, #-8]
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w14, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	ldur	w21, [x19, #-4]
	cmp	w21, w16
	b.le	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	stur	w16, [x19, #-4]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w17, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19]
	cmp	w21, w3
	b.le	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w3, [x19]
LBB0_17:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w2, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19, #4]
	cmp	w21, w4
	b.le	LBB0_20
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w4, [x19, #4]
LBB0_20:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w5, LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19, #8]
	cmp	w21, w6
	b.le	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w6, [x19, #8]
LBB0_23:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w1, LBB0_2
; %bb.24:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w21, [x19, #12]
	cmp	w21, w7
	b.le	LBB0_2
; %bb.25:                               ;   in Loop: Header=BB0_3 Depth=1
	str	w7, [x19, #12]
	b	LBB0_2
LBB0_26:
	cmp	w8, #3
	b.lt	LBB0_31
; %bb.27:
	ldr	x9, [x0, #8]
	mov	x11, x8
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	add	x12, x10, #1
	mov	x11, x10
	cmp	x12, #3
	b.ls	LBB0_31
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	sub	x10, x11, #1
	sub	w11, w11, #2
	add	x11, x9, x11, lsl #5
	and	x12, x10, #0xffffffff
	add	x12, x9, x12, lsl #5
	ldp	q0, q1, [x11]
	ldp	q2, q3, [x12]
	cmeq.4s	v1, v1, v3
	mvn.16b	v1, v1
	cmeq.4s	v0, v0, v2
	mvn.16b	v0, v0
	uzp1.8h	v0, v0, v1
	xtn.8b	v0, v0
	umov.b	w11, v0[1]
	and	w11, w11, #0x1
	umov.b	w12, v0[0]
	and	w12, w12, #0x1
	bfi	w12, w11, #1, #1
	umov.b	w11, v0[2]
	and	w11, w11, #0x1
	bfi	w12, w11, #2, #1
	umov.b	w11, v0[3]
	and	w11, w11, #0x1
	bfi	w12, w11, #3, #1
	umov.b	w11, v0[4]
	and	w11, w11, #0x1
	bfi	w12, w11, #4, #1
	umov.b	w11, v0[5]
	and	w11, w11, #0x1
	bfi	w12, w11, #5, #1
	umov.b	w11, v0[6]
	and	w11, w11, #0x1
	orr	w11, w12, w11, lsl #6
	umov.b	w12, v0[7]
	orr	w11, w11, w12, lsl #7
	tst	w11, #0xff
	b.ne	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	sub	w8, w8, #1
	str	w8, [x0]
	b	LBB0_28
LBB0_31:
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cap_soc_clocks
.subsections_via_symbols
