	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_program_bsp
_sumo_program_bsp:                      ## @sumo_program_bsp
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_sumo_get_pi
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sumo_get_ps
	movq	%rax, %r15
	movq	8(%rax), %rax
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
	movq	_SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	andl	4(%r15), %ecx
	movq	%r14, %rdx
	addq	$8, %rdx
	testl	%ecx, %ecx
	cmoveq	%rax, %rdx
	movl	(%rdx), %esi
	movq	%r12, %rdi
	callq	_sumo_calculate_bsp
	cmpl	$2, (%r15)
	jl	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movq	_CG_BSP_0@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movl	4(%r14), %esi
	callq	_WREG32
	incq	%r13
	movslq	(%r15), %rax
	decq	%rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_3
## %bb.4:
	andl	$-4, %ebx
	movq	_SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPCREL(%rip), %r13
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_CG_BSP_0@GOTPCREL(%rip), %r12
	addq	(%r12), %rbx
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_WREG32
	movl	(%r13), %eax
	testl	%eax, 4(%r15)
	je	LBB0_6
## %bb.7:
	movq	_BOOST_DPM_LEVEL@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r12), %rdi
	movl	(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,2 ## @SUMO_POWERSTATE_FLAGS_BOOST_STATE
	.comm	_CG_BSP_0,8,3                   ## @CG_BSP_0
	.comm	_BOOST_DPM_LEVEL,4,2            ## @BOOST_DPM_LEVEL
	.no_dead_strip	_sumo_program_bsp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sumo_program_bsp
_sumo_program_bsp:                      ; @sumo_program_bsp
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_sumo_get_pi
	mov	x19, x0
	mov	x0, x20
	bl	_sumo_get_ps
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldp	w9, w10, [x0]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	add	x8, x8, x9, lsl #2
Lloh0:
	adrp	x22, _SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPAGEOFF]
	sub	x8, x8, #4
	ldr	w9, [x22]
	add	x11, x19, #8
	tst	w9, w10
	csel	x8, x8, x11, eq
	ldr	w1, [x8]
	mov	x0, x21
	bl	_sumo_calculate_bsp
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _CG_BSP_0@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CG_BSP_0@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	mov	x23, #0
	mov	x24, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	add	x0, x23, x8
	ldr	w1, [x19, #4]
	bl	_WREG32
	add	x24, x24, #1
	ldrsw	x8, [x20]
	sub	x8, x8, #1
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_2
; %bb.3:
	and	x8, x23, #0xfffffffc
	b	LBB0_5
LBB0_4:
	mov	x8, #0
LBB0_5:
	ldr	x9, [x21]
	add	x0, x9, x8
	ldr	w1, [x19]
	bl	_WREG32
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh4:
	adrp	x8, _BOOST_DPM_LEVEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BOOST_DPM_LEVEL@GOTPAGEOFF]
	ldr	x9, [x21]
Lloh6:
	ldrsw	x8, [x8]
	add	x0, x9, x8, lsl #2
	ldr	w1, [x19]
	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
	b	_WREG32
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,2 ; @SUMO_POWERSTATE_FLAGS_BOOST_STATE
	.comm	_CG_BSP_0,8,3                   ; @CG_BSP_0
	.comm	_BOOST_DPM_LEVEL,4,2            ; @BOOST_DPM_LEVEL
	.no_dead_strip	_sumo_program_bsp
.subsections_via_symbols
