	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SH2UpdateCodeList
_SH2UpdateCodeList:                     ## @SH2UpdateCodeList
	.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
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %edi
	callq	_gtk_list_store_clear
	movl	(%rbx), %eax
	movl	8(%rbx), %edi
	movl	%r14d, %ecx
	subl	%eax, %ecx
	movq	%r14, -256(%rbp)                ## 8-byte Spill
	leal	-16(%r14), %edx
	cmpl	$40, %ecx
	cmovll	%eax, %edx
	movq	%rdx, -248(%rbp)                ## 8-byte Spill
	movq	%rbx, -224(%rbp)                ## 8-byte Spill
	movl	%edx, (%rbx)
	callq	_SH2GetBreakpointList
	movq	%rax, %r13
	xorl	%r12d, %r12d
	leaq	-216(%rbp), %r15
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r13), %edi
	movq	_GTK_STOCK_GO_FORWARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$-1, %r8d
	callq	_gtk_list_store_set
	movq	-232(%rbp), %r12                ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-224(%rbp), %r14                ## 8-byte Reload
	movl	4(%r14), %edi
	leaq	-216(%rbp), %r15
	movq	%r15, %rsi
	movl	$1, %edx
	leaq	-144(%rbp), %rcx
	movl	$-1, %r8d
	callq	_gtk_list_store_set
	movl	4(%r14), %edi
	movq	%r15, %rsi
	movl	$2, %edx
	leaq	-208(%rbp), %rcx
	movl	$-1, %r8d
	callq	_gtk_list_store_set
	incl	%r12d
	cmpl	$24, %r12d
	je	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-224(%rbp), %r13                ## 8-byte Reload
	movl	8(%r13), %edi
	leaq	-260(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_SH2GetRegisters
	movq	-248(%rbp), %rax                ## 8-byte Reload
	leaq	-208(%rbp), %r14
	movq	%r12, -232(%rbp)                ## 8-byte Spill
	leal	(%rax,%r12,2), %r12d
	movl	%r12d, %edi
	callq	_MappedMemoryReadWord
	movl	%r12d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	leaq	-112(%rbp), %rbx
	movq	%rbx, %r8
	callq	_SH2Disasm
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-212(%rbp), %rdx
	movq	%r14, %rcx
	callq	_sscanf
	movl	-212(%rbp), %edx
	leaq	-144(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_sprintf
	movl	4(%r13), %edi
	movq	%r15, %rsi
	callq	_gtk_list_store_append
	cmpl	-256(%rbp), %r12d               ## 4-byte Folded Reload
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_MAX_BREAKPOINTS@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	cmpl	$2, %eax
	movq	-232(%rbp), %r12                ## 8-byte Reload
	movq	-240(%rbp), %r13                ## 8-byte Reload
	movq	_GTK_STOCK_STOP@GOTPCREL(%rip), %r15
	jl	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%rbx
	leal	-1(%rax), %ecx
	movslq	%ecx, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13,%rbx,4), %ecx
	cmpl	-212(%rbp), %ecx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-224(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	movq	(%r15), %rcx
	leaq	-216(%rbp), %rsi
	xorl	%edx, %edx
	movl	$-1, %r8d
	callq	_gtk_list_store_set
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.9:
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%8X: %[^\n]"

L_.str.1:                               ## @.str.1
	.asciz	"0x%08X"

	.comm	_GTK_STOCK_GO_FORWARD,8,3       ## @GTK_STOCK_GO_FORWARD
	.comm	_MAX_BREAKPOINTS,4,2            ## @MAX_BREAKPOINTS
	.comm	_GTK_STOCK_STOP,8,3             ## @GTK_STOCK_STOP
	.no_dead_strip	_SH2UpdateCodeList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SH2UpdateCodeList
_SH2UpdateCodeList:                     ; @SH2UpdateCodeList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	w0, [x0, #4]
	bl	_gtk_list_store_clear
	ldr	w8, [x20]
	sub	w9, w19, w8
	sub	w10, w19, #16
	cmp	w9, #39
	csel	w25, w10, w8, gt
	str	w25, [x20]
	ldr	w0, [x20, #8]
	bl	_SH2GetBreakpointList
	mov	x21, x0
	mov	w26, #0
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x28, _MAX_BREAKPOINTS@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MAX_BREAKPOINTS@GOTPAGEOFF]
Lloh7:
	adrp	x27, _GTK_STOCK_STOP@GOTPAGE
Lloh8:
	ldr	x27, [x27, _GTK_STOCK_STOP@GOTPAGEOFF]
Lloh9:
	adrp	x23, l_.str.1@PAGE
Lloh10:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #4]
Lloh11:
	adrp	x8, _GTK_STOCK_GO_FORWARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GTK_STOCK_GO_FORWARD@GOTPAGEOFF]
Lloh13:
	ldr	x3, [x8]
	add	x1, sp, #8
	mov	w2, #0
	mov	w4, #-1
	bl	_gtk_list_store_set
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	add	x3, sp, #76
	mov	w2, #1
	mov	w4, #-1
	bl	_gtk_list_store_set
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	add	x3, sp, #12
	mov	w2, #2
	mov	w4, #-1
	bl	_gtk_list_store_set
	add	w26, w26, #1
	cmp	w26, #24
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x20, #8]
	mov	x1, sp
	bl	_SH2GetRegisters
	add	w24, w25, w26, lsl #1
	mov	x0, x24
	bl	_MappedMemoryReadWord
	mov	x1, x0
	mov	x3, sp
	add	x4, sp, #96
	mov	x0, x24
	mov	w2, #0
	bl	_SH2Disasm
	add	x0, sp, #96
	add	x2, sp, #4
	add	x3, sp, #12
	mov	x1, x22
	bl	_sscanf
	ldr	w2, [sp, #4]
	add	x0, sp, #76
	mov	x1, x23
	bl	_sprintf
	ldr	w0, [x20, #4]
	add	x1, sp, #8
	bl	_gtk_list_store_append
	cmp	w24, w19
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x24, x24, #1
	sub	w9, w8, #1
	cmp	x24, w9, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x21, x24, lsl #2]
	ldr	w10, [sp, #4]
	cmp	w9, w10
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x20, #4]
	ldr	x3, [x27]
	add	x1, sp, #8
	mov	w2, #0
	mov	w4, #-1
	bl	_gtk_list_store_set
	ldr	w8, [x28]
	b	LBB0_6
LBB0_9:
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%8X: %[^\n]"

l_.str.1:                               ; @.str.1
	.asciz	"0x%08X"

	.comm	_GTK_STOCK_GO_FORWARD,8,3       ; @GTK_STOCK_GO_FORWARD
	.comm	_MAX_BREAKPOINTS,4,2            ; @MAX_BREAKPOINTS
	.comm	_GTK_STOCK_STOP,8,3             ; @GTK_STOCK_STOP
	.no_dead_strip	_SH2UpdateCodeList
.subsections_via_symbols
