	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kgdb_trgt_close
_kgdb_trgt_close:                       ## @kgdb_trgt_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	_kvm@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_inferior_ptid@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_CLEAR_SOLIB
	movq	(%rbx), %rdi
	callq	_kvm_close
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_vmcore@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%rbx), %rdi
	callq	_kvm_geterr
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_warning
LBB0_3:
	movq	$0, (%rbx)
	movq	_vmcore@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	callq	_xfree
	movq	$0, (%rbx)
	movq	_kgdb_trgt_ops@GOTPCREL(%rip), %rbx
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_xfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kvm,8,3                        ## @kvm
	.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	_vmcore,8,3                     ## @vmcore
	.comm	_kgdb_trgt_ops,16,3             ## @kgdb_trgt_ops
	.no_dead_strip	_kgdb_trgt_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kgdb_trgt_close
_kgdb_trgt_close:                       ; @kgdb_trgt_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x20, _kvm@GOTPAGE
Lloh1:
	ldr	x20, [x20, _kvm@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, 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	_CLEAR_SOLIB
	ldr	x0, [x20]
	bl	_kvm_close
Lloh8:
	adrp	x21, _vmcore@GOTPAGE
Lloh9:
	ldr	x21, [x21, _vmcore@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x19, [x21]
	ldr	x0, [x20]
	bl	_kvm_geterr
	mov	x2, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_warning
LBB0_3:
	str	xzr, [x20]
	ldr	x0, [x21]
	bl	_xfree
	str	xzr, [x21]
Lloh12:
	adrp	x19, _kgdb_trgt_ops@GOTPAGE
Lloh13:
	ldr	x19, [x19, _kgdb_trgt_ops@GOTPAGEOFF]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_xfree
	stp	xzr, xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_kvm,8,3                        ; @kvm
	.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	_vmcore,8,3                     ; @vmcore
	.comm	_kgdb_trgt_ops,16,3             ; @kgdb_trgt_ops
	.no_dead_strip	_kgdb_trgt_close
.subsections_via_symbols
