	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcore_command
_gcore_command:                         ## @gcore_command
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -100(%rbp)
	movq	_target_has_execution@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	testq	%r15, %r15
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	callq	_noprocess
	testq	%r15, %r15
	je	LBB0_4
LBB0_3:
	cmpb	$0, (%r15)
	jne	LBB0_5
LBB0_4:
	leaq	-96(%rbp), %r15
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_sprintf
LBB0_5:
	movq	_info_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf_filtered
LBB0_7:
	xorl	%eax, %eax
	callq	_default_gcore_target
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_bfd_openw
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_error
LBB0_9:
	movq	%r14, %rdi
	callq	_make_cleanup_bfd_close
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	_bfd_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_bfd_set_format
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_default_gcore_arch
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_default_gcore_mach
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_bfd_set_arch_mach
	leaq	-100(%rbp), %rsi
	movq	%r14, %rdi
	callq	_target_make_corefile_notes
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	cmpl	$0, -100(%rbp)
	je	LBB0_14
## %bb.11:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_bfd_make_section_anyway
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_error
LBB0_13:
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_bfd_set_section_vma
	movq	_SEC_HAS_CONTENTS@GOTPCREL(%rip), %rax
	movq	_SEC_READONLY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_SEC_ALLOC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bfd_set_section_flags
	movq	%r14, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_bfd_set_section_alignment
	movl	-100(%rbp), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_bfd_set_section_size
LBB0_14:
	movq	%r14, %rdi
	callq	_gcore_memory_sections
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_error
LBB0_16:
	testq	%r13, %r13
	je	LBB0_20
## %bb.17:
	movl	-100(%rbp), %r8d
	testl	%r8d, %r8d
	je	LBB0_20
## %bb.18:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	callq	_bfd_set_section_contents
	testl	%eax, %eax
	jne	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.6(%rip), %rdi
	movl	%eax, %esi
	callq	_warning
LBB0_20:
	movq	_gdb_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdx
	callq	_fprintf_filtered
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	callq	_do_cleanups
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_target_has_execution,4,2       ## @target_has_execution
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core.%d"

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_info_verbose,8,3               ## @info_verbose
	.comm	_gdb_stdout,4,2                 ## @gdb_stdout
L_.str.1:                               ## @.str.1
	.asciz	"Opening corefile '%s' for output.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to open '%s' for output."

	.comm	_bfd_core,4,2                   ## @bfd_core
L_.str.3:                               ## @.str.3
	.asciz	"note0"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to create 'note' section for corefile: %s"

	.comm	_SEC_HAS_CONTENTS,4,2           ## @SEC_HAS_CONTENTS
	.comm	_SEC_READONLY,4,2               ## @SEC_READONLY
	.comm	_SEC_ALLOC,4,2                  ## @SEC_ALLOC
L_.str.5:                               ## @.str.5
	.asciz	"gcore: failed to get corefile memory sections from target."

L_.str.6:                               ## @.str.6
	.asciz	"writing note section (%s)"

L_.str.7:                               ## @.str.7
	.asciz	"Saved corefile %s\n"

	.no_dead_strip	_gcore_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcore_command
_gcore_command:                         ; @gcore_command
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	str	wzr, [sp, #12]
Lloh3:
	adrp	x8, _target_has_execution@GOTPAGE
Lloh4:
	ldr	x8, [x8, _target_has_execution@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.1:
	cbnz	x19, LBB0_3
	b	LBB0_4
LBB0_2:
	bl	_noprocess
	cbz	x19, LBB0_4
LBB0_3:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_5
LBB0_4:
	add	x19, sp, #16
Lloh6:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh7:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_PIDGET
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #16
	bl	_sprintf
LBB0_5:
Lloh11:
	adrp	x8, _info_verbose@GOTPAGE
Lloh12:
	ldr	x8, [x8, _info_verbose@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x24, _gdb_stdout@GOTPAGE
Lloh15:
	ldr	x24, [x24, _gdb_stdout@GOTPAGEOFF]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w0, [x24]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_fprintf_filtered
LBB0_7:
	bl	_default_gcore_target
	mov	x1, x0
	mov	x0, x19
	bl	_bfd_openw
	mov	x21, x0
	cbnz	x0, LBB0_9
; %bb.8:
	str	x19, [sp]
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_error
LBB0_9:
	mov	x0, x21
	bl	_make_cleanup_bfd_close
	mov	x20, x0
Lloh20:
	adrp	x8, _bfd_core@GOTPAGE
Lloh21:
	ldr	x8, [x8, _bfd_core@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_bfd_set_format
	bl	_default_gcore_arch
	mov	x22, x0
	bl	_default_gcore_mach
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_bfd_set_arch_mach
	add	x1, sp, #12
	mov	x0, x21
	bl	_target_make_corefile_notes
	mov	x22, x0
	mov	x23, #0
	cbz	x0, LBB0_14
; %bb.10:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_14
; %bb.11:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_bfd_make_section_anyway
	mov	x23, x0
	cbnz	x0, LBB0_13
; %bb.12:
	bl	_bfd_get_error
	bl	_bfd_errmsg
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_error
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_bfd_set_section_vma
Lloh27:
	adrp	x8, _SEC_HAS_CONTENTS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SEC_HAS_CONTENTS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _SEC_READONLY@GOTPAGE
Lloh31:
	ldr	x9, [x9, _SEC_READONLY@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh33:
	adrp	x9, _SEC_ALLOC@GOTPAGE
Lloh34:
	ldr	x9, [x9, _SEC_ALLOC@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x21
	mov	x1, x23
	bl	_bfd_set_section_flags
	mov	x0, x21
	mov	x1, x23
	mov	w2, #0
	bl	_bfd_set_section_alignment
	ldr	w2, [sp, #12]
	mov	x0, x21
	mov	x1, x23
	bl	_bfd_set_section_size
LBB0_14:
	mov	x0, x21
	bl	_gcore_memory_sections
	cbnz	x0, LBB0_16
; %bb.15:
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_error
LBB0_16:
	cbz	x22, LBB0_20
; %bb.17:
	ldr	w4, [sp, #12]
	cbz	w4, LBB0_20
; %bb.18:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_bfd_set_section_contents
	cbnz	w0, LBB0_20
; %bb.19:
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x1, x0
Lloh38:
	adrp	x0, l_.str.6@PAGE
Lloh39:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_warning
LBB0_20:
	ldr	w0, [x24]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x2, x19
	bl	_fprintf_filtered
	mov	x0, x20
	bl	_do_cleanups
	ldr	x8, [sp, #56]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpAdd	Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_target_has_execution,4,2       ; @target_has_execution
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core.%d"

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_info_verbose,8,3               ; @info_verbose
	.comm	_gdb_stdout,4,2                 ; @gdb_stdout
l_.str.1:                               ; @.str.1
	.asciz	"Opening corefile '%s' for output.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to open '%s' for output."

	.comm	_bfd_core,4,2                   ; @bfd_core
l_.str.3:                               ; @.str.3
	.asciz	"note0"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to create 'note' section for corefile: %s"

	.comm	_SEC_HAS_CONTENTS,4,2           ; @SEC_HAS_CONTENTS
	.comm	_SEC_READONLY,4,2               ; @SEC_READONLY
	.comm	_SEC_ALLOC,4,2                  ; @SEC_ALLOC
l_.str.5:                               ; @.str.5
	.asciz	"gcore: failed to get corefile memory sections from target."

l_.str.6:                               ; @.str.6
	.asciz	"writing note section (%s)"

l_.str.7:                               ; @.str.7
	.asciz	"Saved corefile %s\n"

	.no_dead_strip	_gcore_command
.subsections_via_symbols
