	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_construct_vid_mapping_table ## -- Begin function sumo_construct_vid_mapping_table
	.p2align	4, 0x90
_sumo_construct_vid_mapping_table:      ## @sumo_construct_vid_mapping_table
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %r8
	movq	(%r8), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	addq	$16, %rdx
	xorl	%ecx, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	addq	$24, %rdx
	cmpq	%rdi, %rcx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, -16(%rdx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-8(%rdx), %rbx
	movq	(%rdx), %r9
	movq	8(%rsi), %rax
	movq	%rbx, %rdi
	shlq	$4, %rdi
	movq	%r9, (%rax,%rdi)
	movq	%rbx, 8(%rax,%rdi)
	movq	(%r8), %rdi
	jmp	LBB0_4
LBB0_5:
	movq	_SUMO_MAX_NUMBER_VOLTAGES@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	8(%rsi), %r11
	movl	$1, %r10d
	xorl	%r9d, %r9d
	xorl	%r15d, %r15d
	jmp	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rcx
	cmpq	%rax, %rcx
	jne	LBB0_15
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movq	%r15, %rdi
	shlq	$4, %rdi
	cmpq	$0, (%r11,%rdi)
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpq	%r10, %rax
	movq	%r10, %r14
	cmovaq	%rax, %r14
	movq	%r9, %rbx
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incq	%rcx
	cmpq	%rax, %rcx
	jae	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	16(%rbx), %rdx
	cmpq	$0, 16(%r11,%rbx)
	movq	%rdx, %rbx
	je	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movups	(%r11,%rdx), %xmm0
	movups	%xmm0, (%r11,%rdi)
	movq	8(%rsi), %r11
	movq	$0, (%r11,%rdx)
	movq	(%r8), %rax
	cmpq	%rax, %rcx
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r15
	incq	%r10
	addq	$16, %r9
	cmpq	%rax, %r15
	jb	LBB0_8
	jmp	LBB0_16
LBB0_6:
	xorl	%r15d, %r15d
LBB0_16:
	movq	%r15, (%rsi)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,8,3 ## @SUMO_MAX_HARDWARE_POWERLEVELS
	.comm	_SUMO_MAX_NUMBER_VOLTAGES,8,3   ## @SUMO_MAX_NUMBER_VOLTAGES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_construct_vid_mapping_table ; -- Begin function sumo_construct_vid_mapping_table
	.p2align	2
_sumo_construct_vid_mapping_table:      ; @sumo_construct_vid_mapping_table
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
	ldr	x11, [x8]
	cbz	x11, LBB0_5
; %bb.1:
	mov	x9, #0
	add	x10, x2, #8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	add	x10, x10, #24
	cmp	x9, x11
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x10, #-8]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x1, #8]
	ldr	q0, [x10]
	ext.16b	v1, v0, v0, #8
	fmov	x12, d0
	str	q1, [x11, x12, lsl #4]
	ldr	x11, [x8]
	b	LBB0_2
LBB0_5:
Lloh2:
	adrp	x9, _SUMO_MAX_NUMBER_VOLTAGES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SUMO_MAX_NUMBER_VOLTAGES@GOTPAGEOFF]
	ldr	x13, [x9]
	cbz	x13, LBB0_15
; %bb.6:
	mov	x10, #0
	mov	x8, #0
	ldr	x11, [x1, #8]
	mov	w12, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x14, x16
	cmp	x14, x13
	b.ne	LBB0_13
	b	LBB0_14
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	lsl	x14, x8, #4
	ldr	x14, [x11, x14]
	cbnz	x14, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	x13, x12
	csel	x16, x13, x12, hi
	mov	x15, x10
	mov	x14, x8
LBB0_10:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x14, x14, #1
	cmp	x14, x13
	b.hs	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	add	x17, x11, x15
	ldr	x17, [x17, #16]
	add	x15, x15, #16
	cbz	x17, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	q0, [x11, x15]
	str	q0, [x11, x8, lsl #4]
	ldr	x11, [x1, #8]
	str	xzr, [x11, x15]
	ldr	x13, [x9]
	cmp	x14, x13
	b.eq	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x8, x8, #1
	add	x12, x12, #1
	add	x10, x10, #16
	cmp	x8, x13
	b.lo	LBB0_8
LBB0_14:
	str	x8, [x1]
	ret
LBB0_15:
	str	xzr, [x1]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,8,3 ; @SUMO_MAX_HARDWARE_POWERLEVELS
	.comm	_SUMO_MAX_NUMBER_VOLTAGES,8,3   ; @SUMO_MAX_NUMBER_VOLTAGES
.subsections_via_symbols
