	.file	"extr_trgt.c_kgdb_trgt_open.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No vmcore file specified."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Can't open a vmcore without a kernel"
	.section	.rodata.str1.1
.LC2:
	.string	"/"
.LC3:
	.string	"Failed to open vmcore: %s"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"you won't be able to access this vmcore until you terminate\nyour %s; do ``info files''"
	.text
	.p2align 4
	.type	kgdb_trgt_open, @function
kgdb_trgt_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	mov	edi, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	target_preopen@PLT
	test	rbp, rbp
	je	.L21
.L2:
	mov	eax, DWORD PTR exec_bfd[rip]
	test	eax, eax
	je	.L22
.L3:
	mov	rdi, rbp
	call	tilde_expand@PLT
	cmp	BYTE PTR [rax], 47
	mov	rbp, rax
	je	.L4
	mov	edi, DWORD PTR current_directory[rip]
	xor	ecx, ecx
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	call	concat@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	xfree@PLT
	mov	rbp, rbx
.L4:
	mov	rdi, QWORD PTR xfree@GOTPCREL[rip]
	mov	rsi, rbp
	call	make_cleanup@PLT
	cmp	QWORD PTR write_files[rip], 0
	mov	ebx, DWORD PTR kgdb_resolve_symbol[rip]
	mov	r14d, DWORD PTR kvm_err[rip]
	mov	r13d, DWORD PTR O_RDONLY[rip]
	mov	r12, rax
	je	.L6
	mov	r13d, DWORD PTR O_RDWR[rip]
.L6:
	mov	edi, DWORD PTR exec_bfd[rip]
	call	bfd_get_filename@PLT
	mov	r8d, ebx
	mov	ecx, r14d
	mov	edx, r13d
	mov	edi, eax
	mov	rsi, rbp
	call	kvm_open2@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L23
.L7:
	mov	rdi, r12
	call	discard_cleanups@PLT
	lea	rdi, kgdb_trgt_ops[rip]
	call	unpush_target@PLT
	mov	rdi, QWORD PTR kgdb_core_cleanup@GOTPCREL[rip]
	xor	esi, esi
	mov	QWORD PTR kvm[rip], rbx
	mov	QWORD PTR vmcore[rip], rbp
	call	make_cleanup@PLT
	lea	rdi, kgdb_trgt_ops[rip]
	mov	rbp, rax
	call	push_target@PLT
	mov	rdi, rbp
	mov	ebx, eax
	call	discard_cleanups@PLT
	xor	eax, eax
	call	kgdb_dmesg@PLT
	xor	eax, eax
	call	init_thread_list@PLT
	xor	eax, eax
	call	kgdb_thr_init@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 0[rbp]
	call	pid_to_ptid@PLT
	mov	edi, eax
	call	add_thread@PLT
	mov	rdi, rbp
	call	kgdb_thr_next@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L9
.L8:
	mov	rax, QWORD PTR curkthr[rip]
	test	rax, rax
	je	.L10
	mov	edi, DWORD PTR [rax]
	call	pid_to_ptid@PLT
	mov	DWORD PTR inferior_ptid[rip], eax
.L10:
	test	ebx, ebx
	jne	.L11
	xor	eax, eax
	call	kld_init@PLT
	xor	eax, eax
	call	flush_cached_frames@PLT
	xor	eax, eax
	call	get_current_frame@PLT
	mov	edi, eax
	call	select_frame@PLT
	xor	eax, eax
	call	get_selected_frame@PLT
	mov	edi, eax
	call	frame_relative_level@PLT
	mov	ebp, eax
	xor	eax, eax
	call	get_selected_frame@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	esi, ebp
	mov	edx, 1
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	print_stack_frame@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR target_longname[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, .LC4[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	warning@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	error@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	error@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L23:
	mov	esi, DWORD PTR kvm_err[rip]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	error@PLT
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	kgdb_trgt_open, .-kgdb_trgt_open
	.comm	write_files,8,8
	.comm	vmcore,8,8
	.comm	target_longname,4,4
	.comm	kvm_err,4,4
	.comm	kvm,8,8
	.comm	kgdb_trgt_ops,4,4
	.comm	kgdb_resolve_symbol,4,4
	.comm	inferior_ptid,4,4
	.comm	exec_bfd,4,4
	.comm	current_directory,4,4
	.comm	curkthr,8,8
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_trgt.c_kgdb_trgt_open.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No vmcore file specified.\000"
	.align	2
.LC1:
	.ascii	"Can't open a vmcore without a kernel\000"
	.align	2
.LC2:
	.ascii	"/\000"
	.align	2
.LC3:
	.ascii	"Failed to open vmcore: %s\000"
	.align	2
.LC4:
	.ascii	"you won't be able to access this vmcore until you t"
	.ascii	"erminate\012your %s; do ``info files''\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kgdb_trgt_open, %function
kgdb_trgt_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r0
	sub	sp, sp, #12
	mov	r0, r1
	bl	target_preopen
	cmp	r4, #0
	beq	.L24
.L2:
	ldr	r5, .L27
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L25
.L3:
	mov	r0, r4
	bl	tilde_expand
	ldrb	r3, [r0]	@ zero_extendqisi2
	mov	r4, r0
	cmp	r3, #47
	beq	.L4
	ldr	r2, .L27+4
	mov	r3, #0
	ldr	r0, [r2]
	ldr	r1, .L27+8
	mov	r2, r4
	bl	concat
	mov	r6, r0
	mov	r0, r4
	bl	xfree
	mov	r4, r6
.L4:
	mov	r1, r4
	ldr	r0, .L27+12
	bl	make_cleanup
	mov	r6, r0
	ldr	r0, [r5]
	bl	bfd_get_filename
	ldr	r3, .L27+16
	ldr	r7, .L27+20
	ldr	r3, [r3]
	mov	r1, r4
	cmp	r3, #0
	ldrne	r3, .L27+24
	ldreq	r3, .L27+28
	ldr	r2, [r3]
	ldr	r3, .L27+32
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [r7]
	bl	kvm_open2
	subs	r5, r0, #0
	beq	.L26
.L7:
	mov	r0, r6
	bl	discard_cleanups
	ldr	r0, .L27+36
	bl	unpush_target
	ldr	r2, .L27+40
	ldr	r3, .L27+44
	mov	r1, #0
	ldr	r0, .L27+48
	str	r5, [r2]
	str	r4, [r3]
	bl	make_cleanup
	mov	r4, r0
	ldr	r0, .L27+36
	bl	push_target
	mov	r5, r0
	mov	r0, r4
	bl	discard_cleanups
	bl	kgdb_dmesg
	bl	init_thread_list
	bl	kgdb_thr_init
	subs	r4, r0, #0
	beq	.L8
.L9:
	ldr	r0, [r4]
	bl	pid_to_ptid
	bl	add_thread
	mov	r0, r4
	bl	kgdb_thr_next
	subs	r4, r0, #0
	bne	.L9
.L8:
	ldr	r3, .L27+52
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r0, [r3]
	bl	pid_to_ptid
	ldr	r3, .L27+56
	str	r0, [r3]
.L10:
	cmp	r5, #0
	bne	.L11
	bl	kld_init
	bl	flush_cached_frames
	bl	get_current_frame
	bl	select_frame
	bl	get_selected_frame
	mov	r4, r0
	bl	get_selected_frame
	bl	frame_relative_level
	mov	r2, #1
	mov	r1, r0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	print_stack_frame
.L11:
	ldr	r3, .L27+60
	ldr	r0, .L27+64
	ldr	r1, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	warning
.L25:
	ldr	r0, .L27+68
	bl	error
	b	.L3
.L24:
	ldr	r0, .L27+72
	bl	error
	b	.L2
.L26:
	ldr	r1, [r7]
	ldr	r0, .L27+76
	bl	error
	b	.L7
.L28:
	.align	2
.L27:
	.word	exec_bfd
	.word	current_directory
	.word	.LC2
	.word	xfree
	.word	write_files
	.word	kvm_err
	.word	O_RDWR
	.word	O_RDONLY
	.word	kgdb_resolve_symbol
	.word	kgdb_trgt_ops
	.word	kvm
	.word	vmcore
	.word	kgdb_core_cleanup
	.word	curkthr
	.word	inferior_ptid
	.word	target_longname
	.word	.LC4
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	kgdb_trgt_open, .-kgdb_trgt_open
	.comm	write_files,4,4
	.comm	vmcore,4,4
	.comm	target_longname,4,4
	.comm	kvm_err,4,4
	.comm	kvm,4,4
	.comm	kgdb_trgt_ops,4,4
	.comm	kgdb_resolve_symbol,4,4
	.comm	inferior_ptid,4,4
	.comm	exec_bfd,4,4
	.comm	current_directory,4,4
	.comm	curkthr,4,4
	.comm	O_RDWR,4,4
	.comm	O_RDONLY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
