	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gdbsim_create_inferior
_gdbsim_create_inferior:                ## @gdbsim_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_exec_bfd@GOTPCREL(%rip), %r13
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%r13)
	jne	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_warning
LBB0_3:
	movq	_program_loaded@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_warning
LBB0_5:
	xorl	%eax, %eax
	callq	_sr_get_debug
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	testq	%r12, %r12
	leaq	L_.str.3(%rip), %rsi
	cmovneq	%r12, %rsi
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rdx
	callq	_printf_filtered
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_gdbsim_kill
	xorl	%eax, %eax
	callq	_remove_breakpoints
	xorl	%eax, %eax
	callq	_init_wait_for_inferior
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rbx,%rax), %edi
	addl	$12, %edi
	callq	_alloca
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_strcat
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcat
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_strcat
	movq	%rbx, %rdi
	callq	_buildargv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_make_cleanup_freeargv
LBB0_9:
	movq	_gdbsim_desc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_sim_create_inferior
	movl	$42, %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_insert_breakpoints
	xorl	%eax, %eax
	callq	_clear_proceed_status
	movq	_TARGET_SIGNAL_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$-1, %edi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_proceed                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_exec_bfd,8,3                   ## @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No executable file specified."

	.comm	_program_loaded,4,2             ## @program_loaded
L_.str.1:                               ## @.str.1
	.asciz	"No program loaded."

L_.str.2:                               ## @.str.2
	.asciz	"gdbsim_create_inferior: exec_file \"%s\", args \"%s\"\n"

L_.str.3:                               ## @.str.3
	.asciz	"(NULL)"

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

	.comm	_gdbsim_desc,4,2                ## @gdbsim_desc
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_TARGET_SIGNAL_DEFAULT,4,2      ## @TARGET_SIGNAL_DEFAULT
	.no_dead_strip	_gdbsim_create_inferior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gdbsim_create_inferior
_gdbsim_create_inferior:                ; @gdbsim_create_inferior
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x23, _exec_bfd@GOTPAGE
Lloh1:
	ldr	x23, [x23, _exec_bfd@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x23]
	cbnz	x8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_warning
LBB0_3:
Lloh4:
	adrp	x8, _program_loaded@GOTPAGE
Lloh5:
	ldr	x8, [x8, _program_loaded@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.4:
	bl	_sr_get_debug
	cbz	x0, LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, l_.str.3@PAGE
Lloh8:
	add	x8, x8, l_.str.3@PAGEOFF
	cmp	x21, #0
	csel	x1, x8, x21, eq
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_printf_filtered
LBB0_6:
	bl	_gdbsim_kill
	bl	_remove_breakpoints
	bl	_init_wait_for_inferior
	cbz	x21, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_strlen
	mov	x22, x0
	mov	x0, x20
	bl	_strlen
	add	w8, w22, w0
	add	w0, w8, #12
	bl	_alloca
	mov	x22, x0
	strb	wzr, [x0]
	mov	x1, x21
	bl	_strcat
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x22
	bl	_strcat
	mov	x0, x22
	mov	x1, x20
	bl	_strcat
	mov	x0, x22
	bl	_buildargv
	mov	x20, x0
	bl	_make_cleanup_freeargv
	b	LBB0_10
LBB0_8:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warning
	bl	_sr_get_debug
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_9:
	mov	x20, #0
LBB0_10:
Lloh15:
	adrp	x8, _gdbsim_desc@GOTPAGE
Lloh16:
	ldr	x8, [x8, _gdbsim_desc@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	x1, [x23]
	mov	x2, x20
	mov	x3, x19
	bl	_sim_create_inferior
	mov	w0, #42
	bl	_pid_to_ptid
Lloh18:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh19:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh20:
	str	w0, [x8]
	bl	_insert_breakpoints
	bl	_clear_proceed_status
Lloh21:
	adrp	x8, _TARGET_SIGNAL_DEFAULT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TARGET_SIGNAL_DEFAULT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w0, #-1
	mov	w2, #0
	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
	b	_proceed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_exec_bfd,8,3                   ; @exec_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No executable file specified."

	.comm	_program_loaded,4,2             ; @program_loaded
l_.str.1:                               ; @.str.1
	.asciz	"No program loaded."

l_.str.2:                               ; @.str.2
	.asciz	"gdbsim_create_inferior: exec_file \"%s\", args \"%s\"\n"

l_.str.3:                               ; @.str.3
	.asciz	"(NULL)"

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

	.comm	_gdbsim_desc,4,2                ; @gdbsim_desc
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_TARGET_SIGNAL_DEFAULT,4,2      ; @TARGET_SIGNAL_DEFAULT
	.no_dead_strip	_gdbsim_create_inferior
.subsections_via_symbols
