	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function arm_rdi_create_inferior
_arm_rdi_create_inferior:               ## @arm_rdi_create_inferior
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_exec_bfd@GOTPCREL(%rip), %r15
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_error
	movq	(%r15), %rdi
LBB0_3:
	callq	_bfd_get_start_address
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_arm_rdi_kill
	xorl	%eax, %eax
	callq	_remove_breakpoints
	xorl	%eax, %eax
	callq	_init_wait_for_inferior
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r15,%rax), %edi
	addl	$12, %edi
	callq	_alloca
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_strcat
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcat
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_strcat
	movl	$42, %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_insert_breakpoints
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.5:
	addq	$8, %rbx
	leaq	L_.str.2(%rip), %r12
	leaq	-64(%rbp), %r14
	movq	_RDIError_NoError@GOTPCREL(%rip), %r13
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rsi
	movl	$8, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	-8(%rbx), %rdi
	addq	$8, %rdi
	leaq	-72(%rbp), %rsi
	xorl	%edx, %edx
	callq	_strtoul
	movq	%rax, -56(%rbp)
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf_filtered
	movq	_RDIInfo_SetTopMem@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdx
	callq	_angel_RDI_info
	cmpl	(%r13), %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf_filtered
	jmp	LBB0_9
LBB0_10:
	movq	_RDISet_Cmdline@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	callq	_angel_RDI_info
	movq	_RDIError_NoError@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %edi
	callq	_rdi_error_message
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf_filtered
LBB0_12:
	movq	_TARGET_SIGNAL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_proceed
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No executable file specified."

L_.str.1:                               ## @.str.1
	.asciz	" "

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
L_.str.2:                               ## @.str.2
	.asciz	"MEMSIZE="

L_.str.3:                               ## @.str.3
	.asciz	"Setting top-of-memory to 0x%lx\n"

	.comm	_RDIInfo_SetTopMem,4,2          ## @RDIInfo_SetTopMem
	.comm	_RDIError_NoError,4,2           ## @RDIError_NoError
L_.str.4:                               ## @.str.4
	.asciz	"RDI_info: %s\n"

	.comm	_RDISet_Cmdline,4,2             ## @RDISet_Cmdline
	.comm	_TARGET_SIGNAL_DEFAULT,4,2      ## @TARGET_SIGNAL_DEFAULT
	.no_dead_strip	_arm_rdi_create_inferior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function arm_rdi_create_inferior
_arm_rdi_create_inferior:               ; @arm_rdi_create_inferior
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x19, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x19, [x19, _exec_bfd@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	cbnz	x0, LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
	ldr	x0, [x19]
LBB0_3:
	bl	_bfd_get_start_address
	mov	x19, x0
	bl	_arm_rdi_kill
	bl	_remove_breakpoints
	bl	_init_wait_for_inferior
	mov	x0, x23
	bl	_strlen
	mov	x20, x0
	mov	x0, x22
	bl	_strlen
	add	w8, w20, w0
	add	w0, w8, #12
	bl	_alloca
	mov	x20, x0
	strb	wzr, [x0]
	mov	x1, x23
	bl	_strcat
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcat
	mov	x0, x20
	mov	x1, x22
	bl	_strcat
	mov	w0, #42
	bl	_pid_to_ptid
Lloh6:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh8:
	str	w0, [x8]
	bl	_insert_breakpoints
Lloh9:
	adrp	x24, _RDIError_NoError@GOTPAGE
Lloh10:
	ldr	x24, [x24, _RDIError_NoError@GOTPAGEOFF]
	cbz	x21, LBB0_10
; %bb.4:
	ldr	x0, [x21]
	cbz	x0, LBB0_10
; %bb.5:
	add	x25, x21, #8
Lloh11:
	adrp	x21, l_.str.2@PAGE
Lloh12:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh13:
	adrp	x22, l_.str.3@PAGE
Lloh14:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh15:
	adrp	x26, _RDIInfo_SetTopMem@GOTPAGE
Lloh16:
	ldr	x26, [x26, _RDIInfo_SetTopMem@GOTPAGEOFF]
Lloh17:
	adrp	x23, l_.str.4@PAGE
Lloh18:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [x25], #8
	cbz	x0, LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	mov	w2, #8
	bl	_strncmp
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x8, [x25, #-8]
	add	x0, x8, #8
	add	x1, sp, #8
	mov	w2, #0
	bl	_strtoul
	mov	x1, x0
	str	x0, [sp, #16]
	mov	x0, x22
	bl	_printf_filtered
	ldr	w0, [x26]
	add	x1, sp, #16
	add	x2, sp, #24
	bl	_angel_RDI_info
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_rdi_error_message
	mov	x1, x0
	mov	x0, x23
	bl	_printf_filtered
	b	LBB0_6
LBB0_10:
Lloh19:
	adrp	x8, _RDISet_Cmdline@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RDISet_Cmdline@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x2, sp, #24
	mov	x1, x20
	bl	_angel_RDI_info
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.11:
	bl	_rdi_error_message
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str.4@PAGE
Lloh23:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf_filtered
LBB0_12:
Lloh24:
	adrp	x8, _TARGET_SIGNAL_DEFAULT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TARGET_SIGNAL_DEFAULT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_proceed
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No executable file specified."

l_.str.1:                               ; @.str.1
	.asciz	" "

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
l_.str.2:                               ; @.str.2
	.asciz	"MEMSIZE="

l_.str.3:                               ; @.str.3
	.asciz	"Setting top-of-memory to 0x%lx\n"

	.comm	_RDIInfo_SetTopMem,4,2          ; @RDIInfo_SetTopMem
	.comm	_RDIError_NoError,4,2           ; @RDIError_NoError
l_.str.4:                               ; @.str.4
	.asciz	"RDI_info: %s\n"

	.comm	_RDISet_Cmdline,4,2             ; @RDISet_Cmdline
	.comm	_TARGET_SIGNAL_DEFAULT,4,2      ; @TARGET_SIGNAL_DEFAULT
	.no_dead_strip	_arm_rdi_create_inferior
.subsections_via_symbols
