	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_kill
_vx_kill:                               ## @vx_kill
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_inferior_ptid@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_PIDGET
	movq	%rax, %rdi
	callq	_local_hex_string
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_printf_unfiltered
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r15), %edi
	callq	_PIDGET
	movq	%rax, -40(%rbp)
	movq	_PTRACE_KILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_net_ptrace_clnt_call
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$-1, -32(%rbp)
	jne	LBB0_4
## %bb.3:
	movl	-28(%rbp), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
	jmp	LBB0_4
LBB0_1:
	movq	_rpcerr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_warning
LBB0_4:
	movq	_null_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	callq	_pop_target
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Killing pid %s.\n"

	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_PTRACE_KILL,4,2                ## @PTRACE_KILL
	.comm	_rpcerr,4,2                     ## @rpcerr
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Killing VxWorks process"

	.comm	_null_ptid,4,2                  ## @null_ptid
	.no_dead_strip	_vx_kill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_kill
_vx_kill:                               ; @vx_kill
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x19, [x19, _inferior_ptid@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_PIDGET
	bl	_local_hex_string
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf_unfiltered
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w0, [x19]
	bl	_PIDGET
	str	x0, [sp, #8]
Lloh4:
	adrp	x8, _PTRACE_KILL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PTRACE_KILL@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_net_ptrace_clnt_call
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w8, [sp]
	cmn	w8, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	w8, [sp, #4]
Lloh7:
	adrp	x9, _errno@GOTPAGE
Lloh8:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
	b	LBB0_4
LBB0_3:
Lloh12:
	adrp	x8, _rpcerr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _rpcerr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_warning
LBB0_4:
Lloh15:
	adrp	x8, _null_ptid@GOTPAGE
Lloh16:
	ldr	x8, [x8, _null_ptid@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19]
	bl	_pop_target
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Killing pid %s.\n"

	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_PTRACE_KILL,4,2                ; @PTRACE_KILL
	.comm	_rpcerr,4,2                     ; @rpcerr
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Killing VxWorks process"

	.comm	_null_ptid,4,2                  ; @null_ptid
	.no_dead_strip	_vx_kill
.subsections_via_symbols
