	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_initialize_m3_arb         ## -- Begin function sumo_initialize_m3_arb
	.p2align	4, 0x90
_sumo_initialize_m3_arb:                ## @sumo_initialize_m3_arb
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_sumo_get_pi
	cmpl	$0, 24(%rax)
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	_NUMBER_OF_M3ARB_PARAM_SETS@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.10:
	xorl	%ebx, %ebx
	movq	_MCU_M3ARB_PARAMS@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	16(%r14), %rax
	movl	(%rax,%rbx), %esi
	callq	_WREG32_RCU
	incq	%r13
	movslq	(%r15), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r13
	jl	LBB0_11
	jmp	LBB0_3
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	leal	(%rcx,%rcx), %eax
	cmpl	%eax, %r13d
	jge	LBB0_6
## %bb.4:
	movl	%r13d, %r12d
	shlq	$2, %r12
	movq	_MCU_M3ARB_PARAMS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	andl	$-4, %edi
	addq	(%rbx), %rdi
	movq	8(%r14), %rsi
	movl	%r13d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rsi,%rdx,4), %esi
	callq	_WREG32_RCU
	movl	(%r15), %ecx
	leal	(%rcx,%rcx), %eax
	addq	$4, %r12
	incl	%r13d
	cmpl	%r13d, %eax
	jg	LBB0_5
LBB0_6:
	leal	(%rcx,%rcx,2), %eax
	cmpl	%eax, %r13d
	jge	LBB0_9
## %bb.7:
	movl	%r13d, %r12d
	shlq	$2, %r12
	movq	_MCU_M3ARB_PARAMS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %edi
	andl	$-4, %edi
	addq	(%rbx), %rdi
	movq	(%r14), %rsi
	movl	%r13d, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movl	(%rsi,%rdx,4), %esi
	callq	_WREG32_RCU
	movl	(%r15), %ecx
	leal	(%rcx,%rcx,2), %eax
	addq	$4, %r12
	incl	%r13d
	cmpl	%r13d, %eax
	jg	LBB0_8
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMBER_OF_M3ARB_PARAM_SETS,4,2 ## @NUMBER_OF_M3ARB_PARAM_SETS
	.comm	_MCU_M3ARB_PARAMS,8,3           ## @MCU_M3ARB_PARAMS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_initialize_m3_arb         ; -- Begin function sumo_initialize_m3_arb
	.p2align	2
_sumo_initialize_m3_arb:                ; @sumo_initialize_m3_arb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_sumo_get_pi
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _NUMBER_OF_M3ARB_PARAM_SETS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _NUMBER_OF_M3ARB_PARAM_SETS@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _MCU_M3ARB_PARAMS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MCU_M3ARB_PARAMS@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x23, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x23, x8
	ldr	x8, [x19, #16]
	ldr	w1, [x8, x23]
	bl	_WREG32_RCU
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x23, x23, #4
	cmp	x22, x8
	b.lt	LBB0_3
; %bb.4:
	cmp	w22, w8, lsl #1
	b.lt	LBB0_6
	b	LBB0_8
LBB0_5:
	mov	w22, #0
	cmp	w22, w8, lsl #1
	b.ge	LBB0_8
LBB0_6:
	mov	w9, w22
	lsl	x23, x9, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	and	x10, x23, #0xfffffffc
	add	x0, x9, x10
	ldr	x9, [x19, #8]
	sdiv	w10, w22, w8
	msub	w8, w10, w8, w22
	ldr	w1, [x9, w8, uxtw #2]
	bl	_WREG32_RCU
	ldr	w8, [x20]
	add	x23, x23, #4
	add	w22, w22, #1
	cmp	w22, w8, lsl #1
	b.lt	LBB0_7
LBB0_8:
	add	w9, w8, w8, lsl #1
	cmp	w22, w9
	b.ge	LBB0_11
; %bb.9:
	mov	w9, w22
	lsl	x23, x9, #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21]
	and	x10, x23, #0xfffffffc
	add	x0, x9, x10
	ldr	x9, [x19]
	sdiv	w10, w22, w8
	msub	w8, w10, w8, w22
	ldr	w1, [x9, w8, uxtw #2]
	bl	_WREG32_RCU
	ldr	w8, [x20]
	add	w9, w8, w8, lsl #1
	add	x23, x23, #4
	add	w22, w22, #1
	cmp	w9, w22
	b.gt	LBB0_10
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMBER_OF_M3ARB_PARAM_SETS,4,2 ; @NUMBER_OF_M3ARB_PARAM_SETS
	.comm	_MCU_M3ARB_PARAMS,8,3           ; @MCU_M3ARB_PARAMS
.subsections_via_symbols
