	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SH2SortCodeBreakpoints
_SH2SortCodeBreakpoints:                ## @SH2SortCodeBreakpoints
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_MAX_BREAKPOINTS@GOTPCREL(%rip), %r8
	movl	(%r8), %r11d
	cmpl	$2, %r11d
	jl	LBB0_9
## %bb.1:
	movl	$1, %r10d
	xorl	%r9d, %r9d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-1(%r11), %eax
	cltq
	incq	%r10
	cmpq	%rax, %r9
	jge	LBB0_9
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r9, %rsi
	incq	%r9
	movslq	%r11d, %rax
	cmpq	%rax, %r9
	jge	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rdi), %rax
	movq	%r10, %rdx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rdx
	cmpl	%edx, %r11d
	jle	LBB0_2
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$-1, (%rax,%rsi,4)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%rax,%rdx,4), %ecx
	cmpl	$-1, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	%ecx, (%rax,%rsi,4)
	movl	$-1, (%rax,%rdx,4)
	movl	(%r8), %r11d
	jmp	LBB0_8
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BREAKPOINTS,4,2            ## @MAX_BREAKPOINTS
	.no_dead_strip	_SH2SortCodeBreakpoints
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SH2SortCodeBreakpoints
_SH2SortCodeBreakpoints:                ; @SH2SortCodeBreakpoints
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MAX_BREAKPOINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BREAKPOINTS@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x12, #0
	mov	w10, #1
	mov	w11, #-1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w12, w9, #1
	add	x10, x10, #1
	cmp	x13, w12, sxtw
	mov	x12, x13
	b.ge	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x13, x12, #1
	cmp	x13, w9, sxtw
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x0]
	mov	x15, x10
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x15, x15, #1
	cmp	w9, w15
	b.le	LBB0_2
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w16, [x14, x12, lsl #2]
	cmn	w16, #1
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w16, [x14, x15, lsl #2]
	cmn	w16, #1
	b.eq	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	str	w16, [x14, x12, lsl #2]
	str	w11, [x14, x15, lsl #2]
	ldr	w9, [x8]
	b	LBB0_5
LBB0_9:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BREAKPOINTS,4,2            ; @MAX_BREAKPOINTS
	.no_dead_strip	_SH2SortCodeBreakpoints
.subsections_via_symbols
