	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gcore_copy_callback
_gcore_copy_callback:                   ## @gcore_copy_callback
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_bfd_section_size
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bfd_get_section_flags
	movq	_SEC_LOAD@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bfd_section_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r15d, %edi
	callq	_xmalloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_error
LBB0_4:
	movq	_xfree@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r13, %rsi
	callq	_make_cleanup
	movq	%rax, %r12
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bfd_section_vma
	movl	%eax, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_target_read_memory
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r15d, %edi
	callq	_paddr_d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_bfd_section_vma
	movl	%eax, %edi
	callq	_paddr
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_warning
LBB0_6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_bfd_set_section_contents
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_warning
LBB0_8:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_do_cleanups                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_LOAD,4,2                   ## @SEC_LOAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"load"

L_.str.1:                               ## @.str.1
	.asciz	"Not enough memory to create corefile."

	.comm	_xfree,4,2                      ## @xfree
L_.str.2:                               ## @.str.2
	.asciz	"Memory read failed for corefile section, %s bytes at 0x%s\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to write corefile contents (%s)."

	.no_dead_strip	_gcore_copy_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gcore_copy_callback
_gcore_copy_callback:                   ; @gcore_copy_callback
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	bl	_bfd_section_size
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_get_section_flags
Lloh0:
	adrp	x8, _SEC_LOAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_LOAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_section_name
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
	mov	x0, x21
	bl	_xmalloc
	mov	x23, x0
	cbnz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_error
LBB0_5:
Lloh7:
	adrp	x8, _xfree@GOTPAGE
Lloh8:
	ldr	x8, [x8, _xfree@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_make_cleanup
	mov	x22, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_section_vma
	mov	x1, x23
	mov	x2, x21
	bl	_target_read_memory
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_paddr_d
	mov	x24, x0
	mov	x0, x20
	mov	x1, x19
	bl	_bfd_section_vma
	bl	_paddr
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x24
	bl	_warning
LBB0_7:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	w3, #0
	mov	x4, x21
	bl	_bfd_set_section_contents
	cbnz	w0, LBB0_9
; %bb.8:
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x1, x0
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_warning
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_do_cleanups
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_LOAD,4,2                   ; @SEC_LOAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"load"

l_.str.1:                               ; @.str.1
	.asciz	"Not enough memory to create corefile."

	.comm	_xfree,4,2                      ; @xfree
l_.str.2:                               ; @.str.2
	.asciz	"Memory read failed for corefile section, %s bytes at 0x%s\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to write corefile contents (%s)."

	.no_dead_strip	_gcore_copy_callback
.subsections_via_symbols
