	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function insert_bp
_insert_bp:                             ## @insert_bp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_GEKKO_MAX_BP@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.4:
	movq	_bp_entries@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%eax, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rsi)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	addq	$24, %rsi
	cmpq	%rdx, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_1:
	xorl	%edx, %edx
LBB0_2:
	cmpq	%rcx, %rdx
	jne	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_bp_entries@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	_p_bpentries@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rdi
	movq	%rdi, 16(%rax,%rcx,8)
	movq	%rbx, (%rax,%rcx,8)
	movq	%rdx, (%rsi)
	movq	(%rax,%rcx,8), %rdx
	movl	(%rdx), %esi
	movl	%esi, 8(%rax,%rcx,8)
	movq	_BPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	andq	$-32, %rbx
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_DCStoreRangeNoSync
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_ICInvalidateRange
	xorl	%eax, %eax
	callq	__sync
	movl	$1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEKKO_MAX_BP,8,3               ## @GEKKO_MAX_BP
	.comm	_bp_entries,8,3                 ## @bp_entries
	.comm	_p_bpentries,8,3                ## @p_bpentries
	.comm	_BPCODE,4,2                     ## @BPCODE
	.no_dead_strip	_insert_bp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function insert_bp
_insert_bp:                             ; @insert_bp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _GEKKO_MAX_BP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEKKO_MAX_BP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	mov	x8, #0
Lloh3:
	adrp	x10, _bp_entries@GOTPAGE
Lloh4:
	ldr	x10, [x10, _bp_entries@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x10, x10, #24
	cmp	x9, x8
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	x8, #0
LBB0_5:
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_6:
	mov	x0, #0
	b	LBB0_8
LBB0_7:
Lloh6:
	adrp	x9, _bp_entries@GOTPAGE
Lloh7:
	ldr	x9, [x9, _bp_entries@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	mov	w10, #24
	madd	x8, x8, x10, x9
Lloh9:
	adrp	x9, _p_bpentries@GOTPAGE
Lloh10:
	ldr	x9, [x9, _p_bpentries@GOTPAGEOFF]
	ldr	x10, [x9]
	str	x10, [x8, #16]
	str	x0, [x8]
	str	x8, [x9]
	ldr	x9, [x8]
	ldr	w10, [x9]
	str	w10, [x8, #8]
Lloh11:
	adrp	x8, _BPCODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BPCODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x9]
	and	x19, x0, #0xffffffffffffffe0
	mov	x0, x19
	mov	w1, #32
	bl	_DCStoreRangeNoSync
	mov	x0, x19
	mov	w1, #32
	bl	_ICInvalidateRange
	bl	__sync
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GEKKO_MAX_BP,8,3               ; @GEKKO_MAX_BP
	.comm	_bp_entries,8,3                 ; @bp_entries
	.comm	_p_bpentries,8,3                ; @p_bpentries
	.comm	_BPCODE,4,2                     ; @BPCODE
	.no_dead_strip	_insert_bp
.subsections_via_symbols
