	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ia64_memory_insert_breakpoint
_ia64_memory_insert_breakpoint:         ## @ia64_memory_insert_breakpoint
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_BUNDLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%r14d, %eax
	andl	$15, %eax
	movq	_SLOT_MULTIPLIER@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	idivl	(%rcx)
	movl	%eax, %ebx
	cmpl	$3, %eax
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_error
	movq	_BUNDLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	andl	$-16, %r14d
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%r12d, %edx
	callq	_target_read_memory
	movl	%eax, %r12d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$5, %edx
	callq	_extract_bit_field
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_template_encoding_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	8(%rax), %rax
	movq	_L@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	sete	%bl
	incl	%ebx
LBB0_4:
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_slotN_contents
	movq	%rax, -56(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	_IA64_BREAKPOINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_replace_slotN_contents
	testl	%r12d, %r12d
	jne	LBB0_6
## %bb.5:
	movq	_BUNDLE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movq	%r13, %rsi
	callq	_target_write_memory
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BUNDLE_LEN,4,2                 ## @BUNDLE_LEN
	.comm	_SLOT_MULTIPLIER,4,2            ## @SLOT_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can't insert breakpoint for slot numbers greater than 2."

	.comm	_template_encoding_table,8,3    ## @template_encoding_table
	.comm	_L,8,3                          ## @L
	.comm	_IA64_BREAKPOINT,4,2            ## @IA64_BREAKPOINT
	.no_dead_strip	_ia64_memory_insert_breakpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ia64_memory_insert_breakpoint
_ia64_memory_insert_breakpoint:         ; @ia64_memory_insert_breakpoint
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x24, _BUNDLE_LEN@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BUNDLE_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	and	w8, w0, #0xf
Lloh7:
	adrp	x9, _SLOT_MULTIPLIER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _SLOT_MULTIPLIER@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w23, w8, w9
	cmp	w23, #3
	b.lt	LBB0_2
; %bb.1:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	ldr	w2, [x24]
LBB0_2:
	and	w22, w21, #0xfffffff0
	mov	x0, x22
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_target_read_memory
	mov	x21, x0
	mov	x0, x19
	mov	w1, #0
	mov	w2, #5
	bl	_extract_bit_field
	cmp	w23, #1
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _template_encoding_table@GOTPAGE
Lloh13:
	ldr	x8, [x8, _template_encoding_table@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x8, [x8, #8]
Lloh15:
	adrp	x9, _L@GOTPAGE
Lloh16:
	ldr	x9, [x9, _L@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	w8, #1
	cinc	w23, w8, eq
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	bl	_slotN_contents
	stur	x0, [x29, #-64]
	sub	x1, x29, #64
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
Lloh18:
	adrp	x8, _IA64_BREAKPOINT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IA64_BREAKPOINT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x23
	bl	_replace_slotN_contents
	cbnz	w21, LBB0_6
; %bb.5:
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x19
	bl	_target_write_memory
LBB0_6:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_BUNDLE_LEN,4,2                 ; @BUNDLE_LEN
	.comm	_SLOT_MULTIPLIER,4,2            ; @SLOT_MULTIPLIER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can't insert breakpoint for slot numbers greater than 2."

	.comm	_template_encoding_table,8,3    ; @template_encoding_table
	.comm	_L,8,3                          ; @L
	.comm	_IA64_BREAKPOINT,4,2            ; @IA64_BREAKPOINT
	.no_dead_strip	_ia64_memory_insert_breakpoint
.subsections_via_symbols
