	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function arm_rdi_open
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_arm_rdi_open:                          ## @arm_rdi_open
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_2:
	movq	%r14, %rdi
	callq	_xstrdup
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movb	$0, (%rax)
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rax), %rbx
	cmpb	$32, 1(%rax)
	movq	%rbx, %rax
	je	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%edi, %edi
	callq	_arm_rdi_close
	movq	_rdi_heartbeat@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_Adp_OpenDevice
	movq	_adp_ok@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_error
LBB0_8:
	movq	_TARGET_BYTE_ORDER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_BFD_ENDIAN_BIG@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	orl	$2, %edx
	movq	_gdb_config@GOTPCREL(%rip), %rsi
	movl	%edx, (%rsi)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,1,2]
	movups	%xmm0, 4(%rsi)
	movq	_myprint@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_gdb_hostif@GOTPCREL(%rip), %rdx
	movl	%eax, 44(%rdx)
	movq	_mypause@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rdx)
	movq	$0, 32(%rdx)
	movq	_mywritec@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rdx)
	movq	_myreadc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdx)
	movq	_mywrite@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdx)
	movq	_mygets@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdx)
	movq	$0, 8(%rdx)
	movq	_voiddummy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdx)
	movl	$10, %edi
	xorl	%ecx, %ecx
	callq	_angel_RDI_open
	movq	_RDIError_BigEndian@GOTPCREL(%rip), %rcx
	movq	_RDIError_NoError@GOTPCREL(%rip), %rbx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.9:
	movq	_RDIError_LittleEndian@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.10:
	cmpl	(%rbx), %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
	xorl	%eax, %eax
	callq	_Adp_CloseDevice
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_12:
	movq	_RDIInfo_Target@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_14:
	movq	_RDIInfo_Points@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_16:
	movq	_RDIInfo_Step@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_18:
	movq	_RDIInfo_CoPro@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_20:
	movq	_RDIInfo_SemiHosting@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_22:
	movq	_RDIInfo_GetLoadSize@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_24:
	movq	-32(%rbp), %rax
	movq	_max_load_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_arm_rdi_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movl	$-1, %edi
	callq	_target_fetch_registers
	movq	_gdb_config@GOTPCREL(%rip), %rsi
	movl	$1, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_angel_RDI_open
	cmpl	(%rbx), %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_26:
	movq	_rom_at_zero@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax)
	movl	$315, %eax                      ## imm = 0x13B
	cmovneq	%rcx, %rax
	movq	%rax, -32(%rbp)
	movq	_RDIVector_Catch@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_28
## %bb.27:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_28:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, -32(%rbp)
	movq	_RDISet_Cmdline@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	callq	_angel_RDI_info
	cmpl	(%rbx), %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_30:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf_filtered
	movq	_closed_already@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movl	$42, %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"To open an RDI connection, you need to specify what serial\ndevice is attached to the remote system (e.g. /dev/ttya)."

	.comm	_rdi_heartbeat,4,2              ## @rdi_heartbeat
	.comm	_adp_ok,4,2                     ## @adp_ok
L_.str.1:                               ## @.str.1
	.asciz	"Could not open device \"%s\""

	.comm	_TARGET_BYTE_ORDER,8,3          ## @TARGET_BYTE_ORDER
	.comm	_BFD_ENDIAN_BIG,8,3             ## @BFD_ENDIAN_BIG
	.comm	_gdb_config,20,2                ## @gdb_config
	.comm	_myprint,4,2                    ## @myprint
	.comm	_gdb_hostif,48,3                ## @gdb_hostif
	.comm	_mypause,4,2                    ## @mypause
	.comm	_mywritec,4,2                   ## @mywritec
	.comm	_myreadc,4,2                    ## @myreadc
	.comm	_mywrite,4,2                    ## @mywrite
	.comm	_mygets,4,2                     ## @mygets
	.comm	_voiddummy,4,2                  ## @voiddummy
	.comm	_RDIError_BigEndian,4,2         ## @RDIError_BigEndian
	.comm	_RDIError_LittleEndian,4,2      ## @RDIError_LittleEndian
	.comm	_RDIError_NoError,4,2           ## @RDIError_NoError
L_.str.2:                               ## @.str.2
	.asciz	"RDI_open: %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"RDI_open failed\n"

	.comm	_RDIInfo_Target,4,2             ## @RDIInfo_Target
L_.str.4:                               ## @.str.4
	.asciz	"RDI_info: %s\n"

	.comm	_RDIInfo_Points,4,2             ## @RDIInfo_Points
	.comm	_RDIInfo_Step,4,2               ## @RDIInfo_Step
	.comm	_RDIInfo_CoPro,4,2              ## @RDIInfo_CoPro
	.comm	_RDIInfo_SemiHosting,4,2        ## @RDIInfo_SemiHosting
	.comm	_RDIInfo_GetLoadSize,4,2        ## @RDIInfo_GetLoadSize
	.comm	_max_load_size,8,3              ## @max_load_size
	.comm	_arm_rdi_ops,4,2                ## @arm_rdi_ops
	.comm	_rom_at_zero,8,3                ## @rom_at_zero
	.comm	_RDIVector_Catch,4,2            ## @RDIVector_Catch
L_.str.5:                               ## @.str.5
	.space	1

	.comm	_RDISet_Cmdline,4,2             ## @RDISet_Cmdline
	.comm	_local_bp_list,8,3              ## @local_bp_list
L_.str.6:                               ## @.str.6
	.asciz	"Connected to ARM RDI target.\n"

	.comm	_closed_already,8,3             ## @closed_already
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.no_dead_strip	_arm_rdi_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function arm_rdi_open
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_arm_rdi_open:                          ; @arm_rdi_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
	mov	x0, x19
	bl	_xstrdup
	mov	x20, x0
	mov	w1, #32
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.3:
	strb	wzr, [x21]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, #1]!
	cmp	w8, #32
	b.eq	LBB0_4
LBB0_5:
	mov	w0, #0
	bl	_arm_rdi_close
Lloh2:
	adrp	x8, _rdi_heartbeat@GOTPAGE
Lloh3:
	ldr	x8, [x8, _rdi_heartbeat@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_Adp_OpenDevice
Lloh5:
	adrp	x8, _adp_ok@GOTPAGE
Lloh6:
	ldr	x8, [x8, _adp_ok@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	str	x19, [sp]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_7:
Lloh10:
	adrp	x8, _TARGET_BYTE_ORDER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TARGET_BYTE_ORDER@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _BFD_ENDIAN_BIG@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BFD_ENDIAN_BIG@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	orr	w8, w8, #0x2
Lloh16:
	adrp	x1, _gdb_config@GOTPAGE
Lloh17:
	ldr	x1, [x1, _gdb_config@GOTPAGEOFF]
	str	w8, [x1]
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [x1, #4]
Lloh20:
	adrp	x8, _myprint@GOTPAGE
Lloh21:
	ldr	x8, [x8, _myprint@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x2, _gdb_hostif@GOTPAGE
Lloh24:
	ldr	x2, [x2, _gdb_hostif@GOTPAGEOFF]
Lloh25:
	adrp	x9, _mypause@GOTPAGE
Lloh26:
	ldr	x9, [x9, _mypause@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #40]
	str	xzr, [x2, #32]
Lloh28:
	adrp	x8, _mywritec@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mywritec@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _myreadc@GOTPAGE
Lloh32:
	ldr	x9, [x9, _myreadc@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
Lloh34:
	adrp	x10, _mywrite@GOTPAGE
Lloh35:
	ldr	x10, [x10, _mywrite@GOTPAGEOFF]
	stp	w9, w8, [x2, #24]
Lloh36:
	ldr	w8, [x10]
Lloh37:
	adrp	x9, _mygets@GOTPAGE
Lloh38:
	ldr	x9, [x9, _mygets@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	stp	w9, w8, [x2, #16]
	str	xzr, [x2, #8]
Lloh40:
	adrp	x8, _voiddummy@GOTPAGE
Lloh41:
	ldr	x8, [x8, _voiddummy@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [x2]
	mov	w0, #10
	mov	x3, #0
	bl	_angel_RDI_open
Lloh43:
	adrp	x8, _RDIError_BigEndian@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RDIError_BigEndian@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
Lloh46:
	adrp	x19, _RDIError_NoError@GOTPAGE
Lloh47:
	ldr	x19, [x19, _RDIError_NoError@GOTPAGEOFF]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.8:
Lloh48:
	adrp	x8, _RDIError_LittleEndian@GOTPAGE
Lloh49:
	ldr	x8, [x8, _RDIError_LittleEndian@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.9:
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.10:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh51:
	adrp	x0, l_.str.2@PAGE
Lloh52:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_filtered
	bl	_Adp_CloseDevice
Lloh53:
	adrp	x0, l_.str.3@PAGE
Lloh54:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_11:
Lloh55:
	adrp	x8, _RDIInfo_Target@GOTPAGE
Lloh56:
	ldr	x8, [x8, _RDIInfo_Target@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_13
; %bb.12:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh58:
	adrp	x0, l_.str.4@PAGE
Lloh59:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_13:
Lloh60:
	adrp	x8, _RDIInfo_Points@GOTPAGE
Lloh61:
	ldr	x8, [x8, _RDIInfo_Points@GOTPAGEOFF]
Lloh62:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_15
; %bb.14:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh63:
	adrp	x0, l_.str.4@PAGE
Lloh64:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_15:
Lloh65:
	adrp	x8, _RDIInfo_Step@GOTPAGE
Lloh66:
	ldr	x8, [x8, _RDIInfo_Step@GOTPAGEOFF]
Lloh67:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.16:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh68:
	adrp	x0, l_.str.4@PAGE
Lloh69:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_17:
Lloh70:
	adrp	x8, _RDIInfo_CoPro@GOTPAGE
Lloh71:
	ldr	x8, [x8, _RDIInfo_CoPro@GOTPAGEOFF]
Lloh72:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_19
; %bb.18:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh73:
	adrp	x0, l_.str.4@PAGE
Lloh74:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_19:
Lloh75:
	adrp	x8, _RDIInfo_SemiHosting@GOTPAGE
Lloh76:
	ldr	x8, [x8, _RDIInfo_SemiHosting@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_21
; %bb.20:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh78:
	adrp	x0, l_.str.4@PAGE
Lloh79:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_21:
Lloh80:
	adrp	x8, _RDIInfo_GetLoadSize@GOTPAGE
Lloh81:
	ldr	x8, [x8, _RDIInfo_GetLoadSize@GOTPAGEOFF]
Lloh82:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_23
; %bb.22:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh83:
	adrp	x0, l_.str.4@PAGE
Lloh84:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_23:
	ldr	x8, [sp, #24]
Lloh85:
	adrp	x9, _max_load_size@GOTPAGE
Lloh86:
	ldr	x9, [x9, _max_load_size@GOTPAGEOFF]
Lloh87:
	str	x8, [x9]
Lloh88:
	adrp	x0, _arm_rdi_ops@GOTPAGE
Lloh89:
	ldr	x0, [x0, _arm_rdi_ops@GOTPAGEOFF]
	bl	_push_target
	mov	w0, #-1
	bl	_target_fetch_registers
Lloh90:
	adrp	x1, _gdb_config@GOTPAGE
Lloh91:
	ldr	x1, [x1, _gdb_config@GOTPAGEOFF]
	mov	w0, #1
	mov	x2, #0
	mov	x3, #0
	bl	_angel_RDI_open
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_25
; %bb.24:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh92:
	adrp	x0, l_.str.2@PAGE
Lloh93:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf_filtered
LBB0_25:
Lloh94:
	adrp	x8, _rom_at_zero@GOTPAGE
Lloh95:
	ldr	x8, [x8, _rom_at_zero@GOTPAGEOFF]
Lloh96:
	ldr	x8, [x8]
	mov	w9, #315
	cmp	x8, #0
	csel	x8, x9, xzr, eq
	str	x8, [sp, #24]
Lloh97:
	adrp	x8, _RDIVector_Catch@GOTPAGE
Lloh98:
	ldr	x8, [x8, _RDIVector_Catch@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_27
; %bb.26:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh100:
	adrp	x0, l_.str.4@PAGE
Lloh101:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_27:
Lloh102:
	adrp	x8, l_.str.5@PAGE
Lloh103:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [sp, #24]
Lloh104:
	adrp	x8, _RDISet_Cmdline@GOTPAGE
Lloh105:
	ldr	x8, [x8, _RDISet_Cmdline@GOTPAGEOFF]
Lloh106:
	ldr	w0, [x8]
	add	x1, sp, #24
	add	x2, sp, #16
	bl	_angel_RDI_info
	ldr	w8, [x19]
	cmp	w0, w8
	b.eq	LBB0_29
; %bb.28:
	bl	_rdi_error_message
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh107:
	adrp	x0, l_.str.4@PAGE
Lloh108:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_29:
Lloh109:
	adrp	x0, l_.str.6@PAGE
Lloh110:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf_filtered
Lloh111:
	adrp	x8, _closed_already@GOTPAGE
Lloh112:
	ldr	x8, [x8, _closed_already@GOTPAGEOFF]
Lloh113:
	str	xzr, [x8]
	mov	w0, #42
	bl	_pid_to_ptid
Lloh114:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh115:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh116:
	str	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdrp	Lloh18, Lloh20
	.loh AdrpLdr	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh90, Lloh91
	.loh AdrpLdrGot	Lloh88, Lloh89
	.loh AdrpLdrGotStr	Lloh85, Lloh86, Lloh87
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh104, Lloh105, Lloh106
	.loh AdrpAdd	Lloh102, Lloh103
	.loh AdrpAdd	Lloh107, Lloh108
	.loh AdrpLdrGotStr	Lloh114, Lloh115, Lloh116
	.loh AdrpLdrGotStr	Lloh111, Lloh112, Lloh113
	.loh AdrpAdd	Lloh109, Lloh110
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"To open an RDI connection, you need to specify what serial\ndevice is attached to the remote system (e.g. /dev/ttya)."

	.comm	_rdi_heartbeat,4,2              ; @rdi_heartbeat
	.comm	_adp_ok,4,2                     ; @adp_ok
l_.str.1:                               ; @.str.1
	.asciz	"Could not open device \"%s\""

	.comm	_TARGET_BYTE_ORDER,8,3          ; @TARGET_BYTE_ORDER
	.comm	_BFD_ENDIAN_BIG,8,3             ; @BFD_ENDIAN_BIG
	.comm	_gdb_config,20,2                ; @gdb_config
	.comm	_myprint,4,2                    ; @myprint
	.comm	_gdb_hostif,48,3                ; @gdb_hostif
	.comm	_mypause,4,2                    ; @mypause
	.comm	_mywritec,4,2                   ; @mywritec
	.comm	_myreadc,4,2                    ; @myreadc
	.comm	_mywrite,4,2                    ; @mywrite
	.comm	_mygets,4,2                     ; @mygets
	.comm	_voiddummy,4,2                  ; @voiddummy
	.comm	_RDIError_BigEndian,4,2         ; @RDIError_BigEndian
	.comm	_RDIError_LittleEndian,4,2      ; @RDIError_LittleEndian
	.comm	_RDIError_NoError,4,2           ; @RDIError_NoError
l_.str.2:                               ; @.str.2
	.asciz	"RDI_open: %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"RDI_open failed\n"

	.comm	_RDIInfo_Target,4,2             ; @RDIInfo_Target
l_.str.4:                               ; @.str.4
	.asciz	"RDI_info: %s\n"

	.comm	_RDIInfo_Points,4,2             ; @RDIInfo_Points
	.comm	_RDIInfo_Step,4,2               ; @RDIInfo_Step
	.comm	_RDIInfo_CoPro,4,2              ; @RDIInfo_CoPro
	.comm	_RDIInfo_SemiHosting,4,2        ; @RDIInfo_SemiHosting
	.comm	_RDIInfo_GetLoadSize,4,2        ; @RDIInfo_GetLoadSize
	.comm	_max_load_size,8,3              ; @max_load_size
	.comm	_arm_rdi_ops,4,2                ; @arm_rdi_ops
	.comm	_rom_at_zero,8,3                ; @rom_at_zero
	.comm	_RDIVector_Catch,4,2            ; @RDIVector_Catch
l_.str.5:                               ; @.str.5
	.space	1

	.comm	_RDISet_Cmdline,4,2             ; @RDISet_Cmdline
	.comm	_local_bp_list,8,3              ; @local_bp_list
l_.str.6:                               ; @.str.6
	.asciz	"Connected to ARM RDI target.\n"

	.comm	_closed_already,8,3             ; @closed_already
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.no_dead_strip	_arm_rdi_open
.subsections_via_symbols
