	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgdb_trgt_open
_kgdb_trgt_open:                        ## @kgdb_trgt_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_target_preopen
	testq	%rbx, %rbx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_2:
	movq	_exec_bfd@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_4:
	movq	%rbx, %rdi
	callq	_tilde_expand
	movq	%rax, %r15
	cmpb	$47, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_current_directory@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_concat
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_xfree
	movq	%rbx, %r15
LBB0_6:
	movq	_xfree@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_make_cleanup
	movq	%rax, %r14
	movl	(%r12), %edi
	callq	_bfd_get_filename
	movq	_write_files@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_7
## %bb.8:
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %edx
	movq	_kvm_err@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	_kgdb_resolve_symbol@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_kvm_open2
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_11:
	movq	%r14, %rdi
	callq	_discard_cleanups
	movq	_kgdb_trgt_ops@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_unpush_target
	movq	_kvm@GOTPCREL(%rip), %rax
	movq	%rbx, (%rax)
	movq	_vmcore@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	movq	_kgdb_core_cleanup@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_make_cleanup
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_push_target
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_discard_cleanups
	xorl	%eax, %eax
	callq	_kgdb_dmesg
	xorl	%eax, %eax
	callq	_init_thread_list
	xorl	%eax, %eax
	callq	_kgdb_thr_init
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_pid_to_ptid
	movl	%eax, %edi
	callq	_add_thread
	movq	%rbx, %rdi
	callq	_kgdb_thr_next
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_13
LBB0_14:
	movq	_curkthr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%rax), %edi
	callq	_pid_to_ptid
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_16:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.18:
	movq	_target_longname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_17:
	xorl	%eax, %eax
	callq	_kld_init
	xorl	%eax, %eax
	callq	_flush_cached_frames
	xorl	%eax, %eax
	callq	_get_current_frame
	movl	%eax, %edi
	callq	_select_frame
	xorl	%eax, %eax
	callq	_get_selected_frame
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_get_selected_frame
	movl	%eax, %edi
	callq	_frame_relative_level
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	$1, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_print_stack_frame              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No vmcore file specified."

	.comm	_exec_bfd,4,2                   ## @exec_bfd
L_.str.1:                               ## @.str.1
	.asciz	"Can't open a vmcore without a kernel"

	.comm	_current_directory,4,2          ## @current_directory
L_.str.2:                               ## @.str.2
	.asciz	"/"

	.comm	_write_files,8,3                ## @write_files
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_kvm_err,4,2                    ## @kvm_err
	.comm	_kgdb_resolve_symbol,4,2        ## @kgdb_resolve_symbol
L_.str.3:                               ## @.str.3
	.asciz	"Failed to open vmcore: %s"

	.comm	_kgdb_trgt_ops,4,2              ## @kgdb_trgt_ops
	.comm	_kvm,8,3                        ## @kvm
	.comm	_vmcore,8,3                     ## @vmcore
	.comm	_curkthr,8,3                    ## @curkthr
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
L_.str.4:                               ## @.str.4
	.asciz	"you won't be able to access this vmcore until you terminate\nyour %s; do ``info files''"

	.comm	_target_longname,4,2            ## @target_longname
	.no_dead_strip	_kgdb_trgt_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kgdb_trgt_open
_kgdb_trgt_open:                        ; @kgdb_trgt_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	mov	x0, x1
	bl	_target_preopen
	cbnz	x19, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_2:
Lloh2:
	adrp	x21, _exec_bfd@GOTPAGE
Lloh3:
	ldr	x21, [x21, _exec_bfd@GOTPAGEOFF]
	ldr	w8, [x21]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_4:
	mov	x0, x19
	bl	_tilde_expand
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _current_directory@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_directory@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, #0
	bl	_concat
	mov	x20, x0
	mov	x0, x19
	bl	_xfree
	mov	x19, x20
LBB0_6:
Lloh11:
	adrp	x0, _xfree@GOTPAGE
Lloh12:
	ldr	x0, [x0, _xfree@GOTPAGEOFF]
	mov	x1, x19
	bl	_make_cleanup
	mov	x20, x0
	ldr	w0, [x21]
	bl	_bfd_get_filename
Lloh13:
	adrp	x8, _write_files@GOTPAGE
Lloh14:
	ldr	x8, [x8, _write_files@GOTPAGEOFF]
Lloh15:
	adrp	x9, _O_RDWR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_RDWR@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
Lloh18:
	adrp	x10, _O_RDONLY@GOTPAGE
Lloh19:
	ldr	x10, [x10, _O_RDONLY@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w2, [x8]
Lloh20:
	adrp	x22, _kvm_err@GOTPAGE
Lloh21:
	ldr	x22, [x22, _kvm_err@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh22:
	adrp	x8, _kgdb_resolve_symbol@GOTPAGE
Lloh23:
	ldr	x8, [x8, _kgdb_resolve_symbol@GOTPAGEOFF]
Lloh24:
	ldr	w4, [x8]
	mov	x1, x19
	bl	_kvm_open2
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x22]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.3@PAGE
Lloh26:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_8:
	mov	x0, x20
	bl	_discard_cleanups
Lloh27:
	adrp	x20, _kgdb_trgt_ops@GOTPAGE
Lloh28:
	ldr	x20, [x20, _kgdb_trgt_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_unpush_target
Lloh29:
	adrp	x8, _kvm@GOTPAGE
Lloh30:
	ldr	x8, [x8, _kvm@GOTPAGEOFF]
Lloh31:
	str	x21, [x8]
Lloh32:
	adrp	x8, _vmcore@GOTPAGE
Lloh33:
	ldr	x8, [x8, _vmcore@GOTPAGEOFF]
Lloh34:
	str	x19, [x8]
Lloh35:
	adrp	x0, _kgdb_core_cleanup@GOTPAGE
Lloh36:
	ldr	x0, [x0, _kgdb_core_cleanup@GOTPAGEOFF]
	mov	x1, #0
	bl	_make_cleanup
	mov	x21, x0
	mov	x0, x20
	bl	_push_target
	mov	x19, x0
	mov	x0, x21
	bl	_discard_cleanups
	bl	_kgdb_dmesg
	bl	_init_thread_list
	bl	_kgdb_thr_init
	cbz	x0, LBB0_11
; %bb.9:
	mov	x20, x0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_pid_to_ptid
	bl	_add_thread
	mov	x0, x20
	bl	_kgdb_thr_next
	mov	x20, x0
	cbnz	x0, LBB0_10
LBB0_11:
Lloh37:
	adrp	x8, _curkthr@GOTPAGE
Lloh38:
	ldr	x8, [x8, _curkthr@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w0, [x8]
	bl	_pid_to_ptid
Lloh40:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh41:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh42:
	str	w0, [x8]
LBB0_13:
	cbz	w19, LBB0_15
; %bb.14:
Lloh43:
	adrp	x8, _target_longname@GOTPAGE
Lloh44:
	ldr	x8, [x8, _target_longname@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x0, l_.str.4@PAGE
Lloh47:
	add	x0, x0, l_.str.4@PAGEOFF
	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
	add	sp, sp, #64
	b	_warning
LBB0_15:
	bl	_kld_init
	bl	_flush_cached_frames
	bl	_get_current_frame
	bl	_select_frame
	bl	_get_selected_frame
	mov	x19, x0
	bl	_get_selected_frame
	bl	_frame_relative_level
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	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
	add	sp, sp, #64
	b	_print_stack_frame
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotStr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotStr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No vmcore file specified."

	.comm	_exec_bfd,4,2                   ; @exec_bfd
l_.str.1:                               ; @.str.1
	.asciz	"Can't open a vmcore without a kernel"

	.comm	_current_directory,4,2          ; @current_directory
l_.str.2:                               ; @.str.2
	.asciz	"/"

	.comm	_write_files,8,3                ; @write_files
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_kvm_err,4,2                    ; @kvm_err
	.comm	_kgdb_resolve_symbol,4,2        ; @kgdb_resolve_symbol
l_.str.3:                               ; @.str.3
	.asciz	"Failed to open vmcore: %s"

	.comm	_kgdb_trgt_ops,4,2              ; @kgdb_trgt_ops
	.comm	_kvm,8,3                        ; @kvm
	.comm	_vmcore,8,3                     ; @vmcore
	.comm	_curkthr,8,3                    ; @curkthr
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
l_.str.4:                               ; @.str.4
	.asciz	"you won't be able to access this vmcore until you terminate\nyour %s; do ``info files''"

	.comm	_target_longname,4,2            ; @target_longname
	.no_dead_strip	_kgdb_trgt_open
.subsections_via_symbols
