	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2AddCodeBreakpoint           ## -- Begin function SH2AddCodeBreakpoint
	.p2align	4, 0x90
_SH2AddCodeBreakpoint:                  ## @SH2AddCodeBreakpoint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_MAX_BREAKPOINTS@GOTPCREL(%rip), %rdx
	movl	$-1, %eax
	cmpq	(%rdx), %rcx
	jae	LBB0_6
## %bb.1:
	movq	8(%rdi), %r8
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%r8,%rdx,8)
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_4
LBB0_5:
	movq	%rsi, (%r8,%rcx,8)
	incq	%rcx
	movq	%rcx, (%rdi)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BREAKPOINTS,8,3            ## @MAX_BREAKPOINTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SH2AddCodeBreakpoint           ; -- Begin function SH2AddCodeBreakpoint
	.p2align	2
_SH2AddCodeBreakpoint:                  ; @SH2AddCodeBreakpoint
	.cfi_startproc
; %bb.0:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _MAX_BREAKPOINTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_BREAKPOINTS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.hs	LBB0_6
; %bb.1:
	ldr	x10, [x0, #8]
	cbz	x9, LBB0_5
; %bb.2:
	mov	x8, x9
	mov	x11, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11]
	cmp	x12, x1
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x8, x8, #1
	b.ne	LBB0_3
LBB0_5:
	str	x1, [x10, x9, lsl #3]
	add	x9, x9, #1
	str	x9, [x0]
	mov	w0, #0
	ret
LBB0_6:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BREAKPOINTS,8,3            ; @MAX_BREAKPOINTS
.subsections_via_symbols
