	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M68KAddCodeBreakpoint          ## -- Begin function M68KAddCodeBreakpoint
	.p2align	4, 0x90
_M68KAddCodeBreakpoint:                 ## @M68KAddCodeBreakpoint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_ScspInternalVars@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%r8), %edx
	movq	_MAX_BREAKPOINTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	movq	8(%r8), %rsi
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, (%rsi,%rcx,8)
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_2
## %bb.4:
	movq	%rdx, %rcx
LBB0_5:
	movq	%rdi, (%rsi,%rcx,8)
	incl	%edx
	movl	%edx, (%r8)
	movq	_M68KExecBP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_m68kexecptr@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_7:
	movl	$-1, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ScspInternalVars,8,3           ## @ScspInternalVars
	.comm	_MAX_BREAKPOINTS,4,2            ## @MAX_BREAKPOINTS
	.comm	_M68KExecBP,4,2                 ## @M68KExecBP
	.comm	_m68kexecptr,4,2                ## @m68kexecptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M68KAddCodeBreakpoint          ; -- Begin function M68KAddCodeBreakpoint
	.p2align	2
_M68KAddCodeBreakpoint:                 ; @M68KAddCodeBreakpoint
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ScspInternalVars@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ScspInternalVars@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	ldr	w10, [x9]
Lloh3:
	adrp	x8, _MAX_BREAKPOINTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_BREAKPOINTS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w10, w8
	b.ge	LBB0_6
; %bb.1:
	ldr	x11, [x9, #8]
	cmp	w10, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x8, x10
	mov	x12, x11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12]
	cmp	x13, x0
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x12, x12, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
; %bb.5:
	mov	x12, x10
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	ret
LBB0_7:
	mov	x12, #0
LBB0_8:
	str	x0, [x11, x12, lsl #3]
	add	w10, w10, #1
	str	w10, [x9]
Lloh6:
	adrp	x9, _M68KExecBP@GOTPAGE
Lloh7:
	ldr	x9, [x9, _M68KExecBP@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _m68kexecptr@GOTPAGE
Lloh10:
	ldr	x10, [x10, _m68kexecptr@GOTPAGEOFF]
Lloh11:
	str	w9, [x10]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ScspInternalVars,8,3           ; @ScspInternalVars
	.comm	_MAX_BREAKPOINTS,4,2            ; @MAX_BREAKPOINTS
	.comm	_M68KExecBP,4,2                 ; @M68KExecBP
	.comm	_m68kexecptr,4,2                ; @m68kexecptr
.subsections_via_symbols
