	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function core_open
_core_open:                             ## @core_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:
	movq	_core_bfd@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_2:
	movq	%rbx, %rdi
	callq	_tilde_expand
	movq	%rax, %r12
	cmpb	$47, (%rax)
	je	LBB0_4
## %bb.3:
	movq	_current_directory@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_concat
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_xfree
	movq	%rbx, %r12
LBB0_4:
	movq	_xfree@GOTPCREL(%rip), %rdi
	movq	%r12, %rsi
	callq	_make_cleanup
	movq	%rax, %r14
	movq	_O_BINARY@GOTPCREL(%rip), %rax
	movq	_write_files@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	_O_RDONLY@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_5:
	movq	_O_RDWR@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_perror_with_name
LBB0_9:
	movq	_gnutarget@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_bfd_fdopenr
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	%r12, %rdi
	callq	_perror_with_name
LBB0_11:
	movq	_bfd_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_bfd_check_format
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	%r15, %rdi
	callq	_gdb_check_format
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	callq	_make_cleanup_bfd_close
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.3(%rip), %rdi
	movq	%r12, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
LBB0_14:
	movq	%r14, %rdi
	callq	_discard_cleanups
	movq	_core_ops@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_unpush_target
	movq	_core_bfd@GOTPCREL(%rip), %r12
	movq	%r15, (%r12)
	movq	_core_close_cleanup@GOTPCREL(%rip), %rdi
	xorl	%esi, %esi
	callq	_make_cleanup
	movq	%rax, %r14
	movq	(%r12), %rdi
	callq	_gdbarch_from_bfd
	movq	_core_gdbarch@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	(%r12), %rdi
	callq	_sniff_core_bfd
	movq	_core_vec@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_validate_files
	movq	(%r12), %rdi
	leaq	4(%rbx), %rsi
	movq	%rbx, %rdx
	callq	_build_section_table
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	(%r12), %rdi
	callq	_bfd_get_filename
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.4(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_error
LBB0_16:
	movq	_exec_bfd@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	(%r12), %rdi
	callq	_set_gdbarch_from_file
LBB0_18:
	movq	_core_ops@GOTPCREL(%rip), %rdi
	callq	_push_target
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_discard_cleanups
	movq	(%r12), %rdi
	callq	_bfd_core_file_failing_command
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	leaq	L_.str.5(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_20:
	movq	(%r12), %rdi
	callq	_bfd_core_file_failing_signal
	testl	%eax, %eax
	jle	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_target_signal_from_host
	movl	%eax, %edi
	callq	_target_signal_to_string
	leaq	L_.str.6(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf_filtered
LBB0_22:
	xorl	%eax, %eax
	callq	_init_thread_list
	movq	(%r12), %rbx
	movq	_add_to_thread_list@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_bfd_get_section_by_name
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_bfd_map_over_sections
	testl	%r15d, %r15d
	je	LBB0_23
## %bb.24:
	movq	_target_longname@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_warning                        ## TAILCALL
LBB0_23:
	movl	$-1, %edi
	callq	_target_fetch_registers
	xorl	%eax, %eax
	callq	_flush_cached_frames
	xorl	%eax, %eax
	callq	_get_current_frame
	movl	%eax, %edi
	callq	_select_frame
	movq	_deprecated_selected_frame@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %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
	.comm	_core_bfd,8,3                   ## @core_bfd
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No core file specified.  (Use `detach' to stop debugging a core file.)"

L_.str.1:                               ## @.str.1
	.asciz	"No core file specified."

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

	.comm	_O_BINARY,4,2                   ## @O_BINARY
	.comm	_write_files,8,3                ## @write_files
	.comm	_O_RDWR,4,2                     ## @O_RDWR
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.comm	_gnutarget,4,2                  ## @gnutarget
	.comm	_bfd_core,4,2                   ## @bfd_core
L_.str.3:                               ## @.str.3
	.asciz	"\"%s\" is not a core dump: %s"

	.comm	_core_ops,8,2                   ## @core_ops
	.comm	_core_gdbarch,4,2               ## @core_gdbarch
	.comm	_core_vec,4,2                   ## @core_vec
L_.str.4:                               ## @.str.4
	.asciz	"\"%s\": Can't find sections: %s"

	.comm	_exec_bfd,4,2                   ## @exec_bfd
L_.str.5:                               ## @.str.5
	.asciz	"Core was generated by `%s'.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Program terminated with signal %d, %s.\n"

	.comm	_add_to_thread_list,4,2         ## @add_to_thread_list
L_.str.7:                               ## @.str.7
	.asciz	".reg"

	.comm	_deprecated_selected_frame,4,2  ## @deprecated_selected_frame
L_.str.8:                               ## @.str.8
	.asciz	"you won't be able to access this core file until you terminate\nyour %s; do ``info files''"

	.comm	_target_longname,4,2            ## @target_longname
	.comm	_RETURN_MASK_ALL,4,2            ## @RETURN_MASK_ALL
	.comm	_solib_add_stub,4,2             ## @solib_add_stub
	.no_dead_strip	_core_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function core_open
_core_open:                             ; @core_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
Lloh0:
	adrp	x22, _core_bfd@GOTPAGE
Lloh1:
	ldr	x22, [x22, _core_bfd@GOTPAGEOFF]
	cbnz	x19, LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, l_.str@PAGE
Lloh3:
	add	x9, x9, l_.str@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	x8, #0
	csel	x0, x10, x9, eq
	bl	_error
LBB0_2:
	mov	x0, x19
	bl	_tilde_expand
	mov	x19, x0
	ldrb	w8, [x0]
	cmp	w8, #47
	b.eq	LBB0_4
; %bb.3:
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_4:
Lloh11:
	adrp	x0, _xfree@GOTPAGE
Lloh12:
	ldr	x0, [x0, _xfree@GOTPAGEOFF]
	mov	x1, x19
	bl	_make_cleanup
	mov	x20, x0
Lloh13:
	adrp	x8, _O_BINARY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_BINARY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _write_files@GOTPAGE
Lloh17:
	ldr	x9, [x9, _write_files@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
Lloh19:
	adrp	x10, _O_RDWR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _O_RDWR@GOTPAGEOFF]
Lloh21:
	adrp	x11, _O_RDONLY@GOTPAGE
Lloh22:
	ldr	x11, [x11, _O_RDONLY@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	mov	w2, #0
	bl	_open
	mov	x21, x0
	tbz	w0, #31, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_perror_with_name
LBB0_6:
Lloh23:
	adrp	x8, _gnutarget@GOTPAGE
Lloh24:
	ldr	x8, [x8, _gnutarget@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_bfd_fdopenr
	mov	x21, x0
	cbnz	x0, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_perror_with_name
LBB0_8:
Lloh26:
	adrp	x8, _bfd_core@GOTPAGE
Lloh27:
	ldr	x8, [x8, _bfd_core@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bfd_check_format
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_gdb_check_format
	cbnz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_make_cleanup_bfd_close
	bl	_bfd_get_error
	bl	_bfd_errmsg
	stp	x19, x0, [sp]
Lloh29:
	adrp	x0, l_.str.3@PAGE
Lloh30:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_error
LBB0_11:
	mov	x0, x20
	bl	_discard_cleanups
Lloh31:
	adrp	x20, _core_ops@GOTPAGE
Lloh32:
	ldr	x20, [x20, _core_ops@GOTPAGEOFF]
	mov	x0, x20
	bl	_unpush_target
	str	x21, [x22]
Lloh33:
	adrp	x0, _core_close_cleanup@GOTPAGE
Lloh34:
	ldr	x0, [x0, _core_close_cleanup@GOTPAGEOFF]
	mov	x1, #0
	bl	_make_cleanup
	mov	x19, x0
	ldr	x0, [x22]
	bl	_gdbarch_from_bfd
Lloh35:
	adrp	x8, _core_gdbarch@GOTPAGE
Lloh36:
	ldr	x8, [x8, _core_gdbarch@GOTPAGEOFF]
Lloh37:
	str	w0, [x8]
	ldr	x0, [x22]
	bl	_sniff_core_bfd
Lloh38:
	adrp	x8, _core_vec@GOTPAGE
Lloh39:
	ldr	x8, [x8, _core_vec@GOTPAGEOFF]
Lloh40:
	str	w0, [x8]
	bl	_validate_files
	ldr	x0, [x22]
	add	x1, x20, #4
	mov	x2, x20
	bl	_build_section_table
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x22]
	bl	_bfd_get_filename
	mov	x20, x0
	bl	_bfd_get_error
	bl	_bfd_errmsg
	stp	x20, x0, [sp]
Lloh41:
	adrp	x0, l_.str.4@PAGE
Lloh42:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_13:
Lloh43:
	adrp	x8, _exec_bfd@GOTPAGE
Lloh44:
	ldr	x8, [x8, _exec_bfd@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	cbnz	w8, LBB0_15
; %bb.14:
	ldr	x0, [x22]
	bl	_set_gdbarch_from_file
LBB0_15:
Lloh46:
	adrp	x0, _core_ops@GOTPAGE
Lloh47:
	ldr	x0, [x0, _core_ops@GOTPAGEOFF]
	bl	_push_target
	mov	x20, x0
	mov	x0, x19
	bl	_discard_cleanups
	ldr	x0, [x22]
	bl	_bfd_core_file_failing_command
	cbz	x0, LBB0_17
; %bb.16:
	str	x0, [sp]
Lloh48:
	adrp	x0, l_.str.5@PAGE
Lloh49:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf_filtered
LBB0_17:
	ldr	x0, [x22]
	bl	_bfd_core_file_failing_signal
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.18:
	mov	x19, x0
	bl	_target_signal_from_host
	bl	_target_signal_to_string
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x19, x0, [sp]
Lloh50:
	adrp	x0, l_.str.6@PAGE
Lloh51:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf_filtered
LBB0_19:
	bl	_init_thread_list
	ldr	x19, [x22]
Lloh52:
	adrp	x8, _add_to_thread_list@GOTPAGE
Lloh53:
	ldr	x8, [x8, _add_to_thread_list@GOTPAGEOFF]
Lloh54:
	ldr	w21, [x8]
Lloh55:
	adrp	x1, l_.str.7@PAGE
Lloh56:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_bfd_get_section_by_name
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_bfd_map_over_sections
	cbz	w20, LBB0_21
; %bb.20:
Lloh57:
	adrp	x8, _target_longname@GOTPAGE
Lloh58:
	ldr	x8, [x8, _target_longname@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x0, l_.str.8@PAGE
Lloh61:
	add	x0, x0, l_.str.8@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_21:
	mov	w0, #-1
	bl	_target_fetch_registers
	bl	_flush_cached_frames
	bl	_get_current_frame
	bl	_select_frame
Lloh62:
	adrp	x8, _deprecated_selected_frame@GOTPAGE
Lloh63:
	ldr	x8, [x8, _deprecated_selected_frame@GOTPAGEOFF]
Lloh64:
	ldr	w19, [x8]
	mov	x0, x19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.comm	_core_bfd,8,3                   ; @core_bfd
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No core file specified.  (Use `detach' to stop debugging a core file.)"

l_.str.1:                               ; @.str.1
	.asciz	"No core file specified."

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

	.comm	_O_BINARY,4,2                   ; @O_BINARY
	.comm	_write_files,8,3                ; @write_files
	.comm	_O_RDWR,4,2                     ; @O_RDWR
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.comm	_gnutarget,4,2                  ; @gnutarget
	.comm	_bfd_core,4,2                   ; @bfd_core
l_.str.3:                               ; @.str.3
	.asciz	"\"%s\" is not a core dump: %s"

	.comm	_core_ops,8,2                   ; @core_ops
	.comm	_core_gdbarch,4,2               ; @core_gdbarch
	.comm	_core_vec,4,2                   ; @core_vec
l_.str.4:                               ; @.str.4
	.asciz	"\"%s\": Can't find sections: %s"

	.comm	_exec_bfd,4,2                   ; @exec_bfd
l_.str.5:                               ; @.str.5
	.asciz	"Core was generated by `%s'.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Program terminated with signal %d, %s.\n"

	.comm	_add_to_thread_list,4,2         ; @add_to_thread_list
l_.str.7:                               ; @.str.7
	.asciz	".reg"

	.comm	_deprecated_selected_frame,4,2  ; @deprecated_selected_frame
l_.str.8:                               ; @.str.8
	.asciz	"you won't be able to access this core file until you terminate\nyour %s; do ``info files''"

	.comm	_target_longname,4,2            ; @target_longname
	.comm	_RETURN_MASK_ALL,4,2            ; @RETURN_MASK_ALL
	.comm	_solib_add_stub,4,2             ; @solib_add_stub
	.no_dead_strip	_core_open
.subsections_via_symbols
