	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_rdi_insert_breakpoint
_arm_rdi_insert_breakpoint:             ## @arm_rdi_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_RDIPoint_EQ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_arm_pc_is_thumb
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_arm_pc_is_thumb_dummy
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_RDIPoint_16Bit@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_3:
	leaq	-20(%rbp), %rcx
	movl	%r14d, %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_angel_RDI_setbreak
	movl	%eax, %ebx
	movq	_RDIError_NoError@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edi
	callq	_rdi_error_message
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_filtered
LBB0_5:
	movl	$16, %edi
	callq	_xmalloc
	movl	%r14d, 12(%rax)
	movl	-20(%rbp), %ecx
	movl	%ecx, 8(%rax)
	movq	_local_bp_list@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%rdx, (%rax)
	movq	%rax, (%rcx)
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDIPoint_EQ,4,2                ## @RDIPoint_EQ
	.comm	_RDIPoint_16Bit,4,2             ## @RDIPoint_16Bit
	.comm	_RDIError_NoError,4,2           ## @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RDI_setbreak: %s\n"

	.comm	_local_bp_list,8,3              ## @local_bp_list
	.no_dead_strip	_arm_rdi_insert_breakpoint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_rdi_insert_breakpoint
_arm_rdi_insert_breakpoint:             ; @arm_rdi_insert_breakpoint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _RDIPoint_EQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDIPoint_EQ@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_arm_pc_is_thumb
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_arm_pc_is_thumb_dummy
	cbz	x0, LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _RDIPoint_16Bit@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDIPoint_16Bit@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
LBB0_3:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_angel_RDI_setbreak
	mov	x20, x0
Lloh6:
	adrp	x8, _RDIError_NoError@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RDIError_NoError@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_rdi_error_message
	mov	x1, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_filtered
LBB0_5:
	mov	w0, #16
	bl	_xmalloc
	ldr	w8, [sp, #12]
	stp	w8, w19, [x0, #8]
Lloh11:
	adrp	x8, _local_bp_list@GOTPAGE
Lloh12:
	ldr	x8, [x8, _local_bp_list@GOTPAGEOFF]
	ldr	x9, [x8]
	str	x9, [x0]
	str	x0, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_RDIPoint_EQ,4,2                ; @RDIPoint_EQ
	.comm	_RDIPoint_16Bit,4,2             ; @RDIPoint_16Bit
	.comm	_RDIError_NoError,4,2           ; @RDIError_NoError
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RDI_setbreak: %s\n"

	.comm	_local_bp_list,8,3              ; @local_bp_list
	.no_dead_strip	_arm_rdi_insert_breakpoint
.subsections_via_symbols
