	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc_get_max_clock_from_voltage_dependency_table
_btc_get_max_clock_from_voltage_dependency_table: ## @btc_get_max_clock_from_voltage_dependency_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r9
	testq	%r9, %r9
	je	LBB0_8
## %bb.2:
	movq	8(%rdi), %rdx
	leaq	-1(%r9), %rax
	movl	%r9d, %r8d
	andl	$3, %r8d
	cmpq	$3, %rax
	jae	LBB0_10
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%edi, %edi
LBB0_4:
	testq	%r8, %r8
	je	LBB0_9
## %bb.5:
	leaq	(%rdx,%rdi,8), %rax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax,%rdx,8), %rdi
	cmpq	%rdi, %rcx
	cmovbeq	%rdi, %rcx
	incq	%rdx
	cmpq	%rdx, %r8
	jne	LBB0_6
	jmp	LBB0_9
LBB0_8:
	xorl	%ecx, %ecx
LBB0_9:
	movq	%rcx, (%rsi)
	popq	%rbp
	retq
LBB0_10:
	andq	$-4, %r9
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_12 Depth=1
	addq	$4, %rdi
	cmpq	%rdi, %r9
	je	LBB0_4
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rax
	cmpq	%rax, %rcx
	ja	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%rdx,%rdi,8), %rax
	cmpq	%rax, %rcx
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	16(%rdx,%rdi,8), %rax
	cmpq	%rax, %rcx
	ja	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	24(%rdx,%rdi,8), %rax
	cmpq	%rax, %rcx
	ja	LBB0_11
## %bb.19:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rax, %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_btc_get_max_clock_from_voltage_dependency_table
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc_get_max_clock_from_voltage_dependency_table
_btc_get_max_clock_from_voltage_dependency_table: ; @btc_get_max_clock_from_voltage_dependency_table
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x0]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x9, [x0, #8]
	cmp	x8, #8
	b.hs	LBB0_5
; %bb.3:
	mov	x11, #0
	mov	x10, #0
	b	LBB0_8
LBB0_4:
	str	xzr, [x1]
	ret
LBB0_5:
	and	x10, x8, #0xfffffffffffffff8
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v3, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v1, #0000000000000000
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	cmhi.2d	v16, v0, v4
	bif.16b	v0, v4, v16
	cmhi.2d	v4, v3, v5
	bif.16b	v3, v5, v4
	cmhi.2d	v4, v2, v6
	bif.16b	v2, v6, v4
	cmhi.2d	v4, v1, v7
	bif.16b	v1, v7, v4
	subs	x12, x12, #8
	b.ne	LBB0_6
; %bb.7:
	cmhi.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmhi.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmhi.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmhi	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x11, d0
	cmp	x8, x10
	b.eq	LBB0_10
LBB0_8:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x11, x10
	csel	x11, x11, x10, hi
	subs	x8, x8, #1
	b.ne	LBB0_9
LBB0_10:
	str	x11, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_btc_get_max_clock_from_voltage_dependency_table
.subsections_via_symbols
