	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function region_prevnext
_region_prevnext:                       ## @region_prevnext
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PicoRegionOverride@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testl	%edi, %edi
	je	LBB0_15
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.14:
	addl	%ecx, %ecx
	cmpl	$8, %ecx
	movl	$8, %edx
	cmovll	%ecx, %edx
	movl	%edx, (%rax)
	popq	%rbp
	retq
LBB0_15:
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.29:
	sarl	%ecx
	jmp	LBB0_30
LBB0_2:
	movq	_PicoAutoRgnOrder@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	$1047, %edx                     ## imm = 0x417
	jle	LBB0_3
## %bb.6:
	cmpl	$1048, %edx                     ## imm = 0x418
	je	LBB0_11
## %bb.7:
	cmpl	$2068, %edx                     ## imm = 0x814
	je	LBB0_10
## %bb.8:
	cmpl	$2113, %edx                     ## imm = 0x841
	jne	LBB0_13
## %bb.9:
	movl	$5, %esi
	jmp	LBB0_12
LBB0_16:
	movq	_PicoAutoRgnOrder@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$6, %ecx
	cmpl	$1152, %edx                     ## imm = 0x480
	jg	LBB0_20
## %bb.17:
	cmpl	$328, %edx                      ## imm = 0x148
	je	LBB0_31
## %bb.18:
	cmpl	$388, %edx                      ## imm = 0x184
	je	LBB0_19
## %bb.24:
	cmpl	$1048, %edx                     ## imm = 0x418
	jne	LBB0_28
## %bb.25:
	movl	$3, %ecx
	jmp	LBB0_28
LBB0_3:
	movl	$1, %esi
	cmpl	$328, %edx                      ## imm = 0x148
	je	LBB0_12
## %bb.4:
	cmpl	$388, %edx                      ## imm = 0x184
	jne	LBB0_13
## %bb.5:
	movl	$2, %esi
	jmp	LBB0_12
LBB0_20:
	cmpl	$1153, %edx                     ## imm = 0x481
	je	LBB0_27
## %bb.21:
	cmpl	$2113, %edx                     ## imm = 0x841
	je	LBB0_26
## %bb.22:
	cmpl	$2068, %edx                     ## imm = 0x814
	jne	LBB0_28
## %bb.23:
	movl	$2, %ecx
	jmp	LBB0_28
LBB0_11:
	movl	$4, %esi
	jmp	LBB0_12
LBB0_10:
	movl	$3, %esi
LBB0_12:
	leaq	_region_prevnext.rgn_orders(%rip), %rax
	movl	(%rax,%rsi,4), %eax
	movl	%eax, (%rcx)
	popq	%rbp
	retq
LBB0_13:
	movl	$1, (%rax)
	popq	%rbp
	retq
LBB0_19:
	movl	$1, %ecx
	jmp	LBB0_28
LBB0_27:
	movl	$5, %ecx
	jmp	LBB0_28
LBB0_26:
	movl	$4, %ecx
LBB0_28:
	decl	%ecx
	leaq	_region_prevnext.rgn_orders(%rip), %rdx
	movl	(%rdx,%rcx,4), %ecx
LBB0_30:
	movl	%ecx, (%rax)
LBB0_31:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @region_prevnext.rgn_orders
_region_prevnext.rgn_orders:
	.long	328                             ## 0x148
	.long	388                             ## 0x184
	.long	2068                            ## 0x814
	.long	1048                            ## 0x418
	.long	2113                            ## 0x841
	.long	1153                            ## 0x481

	.comm	_PicoRegionOverride,4,2         ## @PicoRegionOverride
	.comm	_PicoAutoRgnOrder,4,2           ## @PicoAutoRgnOrder
	.no_dead_strip	_region_prevnext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function region_prevnext
_region_prevnext:                       ; @region_prevnext
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _PicoRegionOverride@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PicoRegionOverride@GOTPAGEOFF]
	ldr	w8, [x9]
	cbz	w0, LBB0_3
; %bb.1:
	cbz	w8, LBB0_7
; %bb.2:
	lsl	w8, w8, #1
	mov	w10, #8
	cmp	w8, #8
	csel	w8, w8, w10, lt
	b	LBB0_5
LBB0_3:
	cbz	w8, LBB0_12
; %bb.4:
	asr	w8, w8, #1
LBB0_5:
	str	w8, [x9]
LBB0_6:
	ret
LBB0_7:
Lloh2:
	adrp	x8, _PicoAutoRgnOrder@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PicoAutoRgnOrder@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w10, #1047
	b.le	LBB0_17
; %bb.8:
	cmp	w10, #1048
	b.eq	LBB0_24
; %bb.9:
	cmp	w10, #2068
	b.eq	LBB0_25
; %bb.10:
	cmp	w10, #2113
	b.ne	LBB0_28
; %bb.11:
	mov	w9, #5
	b	LBB0_27
LBB0_12:
Lloh4:
	adrp	x8, _PicoAutoRgnOrder@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PicoAutoRgnOrder@GOTPAGEOFF]
	ldr	w10, [x8]
	mov	w9, #6
	cmp	w10, #1152
	b.gt	LBB0_20
; %bb.13:
	cmp	w10, #328
	b.eq	LBB0_6
; %bb.14:
	cmp	w10, #388
	b.eq	LBB0_29
; %bb.15:
	cmp	w10, #1048
	b.ne	LBB0_32
; %bb.16:
	mov	w9, #3
	b	LBB0_32
LBB0_17:
	cmp	w10, #328
	b.eq	LBB0_26
; %bb.18:
	cmp	w10, #388
	b.ne	LBB0_28
; %bb.19:
	mov	w9, #2
	b	LBB0_27
LBB0_20:
	cmp	w10, #1153
	b.eq	LBB0_30
; %bb.21:
	cmp	w10, #2113
	b.eq	LBB0_31
; %bb.22:
	cmp	w10, #2068
	b.ne	LBB0_32
; %bb.23:
	mov	w9, #2
	b	LBB0_32
LBB0_24:
	mov	w9, #4
	b	LBB0_27
LBB0_25:
	mov	w9, #3
	b	LBB0_27
LBB0_26:
	mov	w9, #1
LBB0_27:
Lloh6:
	adrp	x10, _region_prevnext.rgn_orders@PAGE
Lloh7:
	add	x10, x10, _region_prevnext.rgn_orders@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
	str	w9, [x8]
	ret
LBB0_28:
	mov	w8, #1
	b	LBB0_5
LBB0_29:
	mov	w9, #1
	b	LBB0_32
LBB0_30:
	mov	w9, #5
	b	LBB0_32
LBB0_31:
	mov	w9, #4
LBB0_32:
	sub	w9, w9, #1
Lloh8:
	adrp	x10, _region_prevnext.rgn_orders@PAGE
Lloh9:
	add	x10, x10, _region_prevnext.rgn_orders@PAGEOFF
	ldr	w9, [x10, w9, uxtw #2]
	str	w9, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @region_prevnext.rgn_orders
_region_prevnext.rgn_orders:
	.long	328                             ; 0x148
	.long	388                             ; 0x184
	.long	2068                            ; 0x814
	.long	1048                            ; 0x418
	.long	2113                            ; 0x841
	.long	1153                            ; 0x481

	.comm	_PicoRegionOverride,4,2         ; @PicoRegionOverride
	.comm	_PicoAutoRgnOrder,4,2           ; @PicoAutoRgnOrder
	.no_dead_strip	_region_prevnext
.subsections_via_symbols
