	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function core_close
_core_close:                            ## @core_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_core_bfd@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	callq	_bfd_get_filename
	movq	%rax, %rbx
	movq	(%r14), %rdi
	callq	_bfd_close
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movl	%eax, %edi
	callq	_bfd_errmsg
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_warning
LBB0_3:
	movq	%rbx, %rdi
	callq	_xfree
	movq	$0, (%r14)
	movq	_core_ops@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_xfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_5:
	movq	_core_vec@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_core_gdbarch@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_core_bfd,8,3                   ## @core_bfd
	.comm	_null_ptid,4,2                  ## @null_ptid
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot close \"%s\": %s"

	.comm	_core_ops,16,3                  ## @core_ops
	.comm	_core_vec,8,3                   ## @core_vec
	.comm	_core_gdbarch,8,3               ## @core_gdbarch
	.no_dead_strip	_core_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function core_close
_core_close:                            ; @core_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _core_bfd@GOTPAGE
Lloh1:
	ldr	x20, [x20, _core_bfd@GOTPAGEOFF]
	ldr	x0, [x20]
	cbz	x0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x8, _null_ptid@GOTPAGE
Lloh3:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _inferior_ptid@GOTPAGE
Lloh6:
	ldr	x9, [x9, _inferior_ptid@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
	bl	_bfd_get_filename
	mov	x19, x0
	ldr	x0, [x20]
	bl	_bfd_close
	cbnz	w0, LBB0_3
; %bb.2:
	bl	_bfd_get_error
	bl	_bfd_errmsg
	mov	x2, x0
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warning
LBB0_3:
	mov	x0, x19
	bl	_xfree
	str	xzr, [x20]
Lloh10:
	adrp	x19, _core_ops@GOTPAGE
Lloh11:
	ldr	x19, [x19, _core_ops@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_xfree
	stp	xzr, xzr, [x19]
LBB0_5:
Lloh12:
	adrp	x8, _core_vec@GOTPAGE
Lloh13:
	ldr	x8, [x8, _core_vec@GOTPAGEOFF]
Lloh14:
	str	xzr, [x8]
Lloh15:
	adrp	x8, _core_gdbarch@GOTPAGE
Lloh16:
	ldr	x8, [x8, _core_gdbarch@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_core_bfd,8,3                   ; @core_bfd
	.comm	_null_ptid,4,2                  ; @null_ptid
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot close \"%s\": %s"

	.comm	_core_ops,16,3                  ; @core_ops
	.comm	_core_vec,8,3                   ; @core_vec
	.comm	_core_gdbarch,8,3               ; @core_gdbarch
	.no_dead_strip	_core_close
.subsections_via_symbols
