	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_resume
_vx_resume:                             ## @vx_resume
	.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
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r15d
	movq	_minus_one_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptid_equal
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	movq	_stop_signal@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_error
LBB0_5:
	movq	_PC_REGNUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_read_register
	movq	_stop_pc@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movl	$1, %ebx
	cmovnel	%eax, %ebx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	-32(%rbp), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%r15d, %edi
	callq	_PIDGET
	movl	%eax, -36(%rbp)
	movl	%ebx, -40(%rbp)
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_net_step
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movq	_rpcerr@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_error
LBB0_10:
	cmpl	$-1, -32(%rbp)
	jne	LBB0_12
## %bb.11:
	movl	-28(%rbp), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rdi
	callq	_perror_with_name
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_PTRACE_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	leaq	-32(%rbp), %rdx
	callq	_net_ptrace_clnt_call
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_minus_one_ptid,4,2             ## @minus_one_ptid
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_stop_signal,4,2                ## @stop_signal
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot send signals to VxWorks processes"

	.comm	_PC_REGNUM,4,2                  ## @PC_REGNUM
	.comm	_stop_pc,4,2                    ## @stop_pc
	.comm	_PTRACE_CONT,4,2                ## @PTRACE_CONT
	.comm	_rpcerr,8,3                     ## @rpcerr
	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Resuming remote process"

	.no_dead_strip	_vx_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_resume
_vx_resume:                             ; @vx_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _minus_one_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _minus_one_ptid@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_ptid_equal
Lloh3:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh4:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w20, w20, w8, eq
	cbz	w21, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _stop_signal@GOTPAGE
Lloh7:
	ldr	x8, [x8, _stop_signal@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_error
LBB0_3:
Lloh11:
	adrp	x8, _PC_REGNUM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PC_REGNUM@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_read_register
Lloh14:
	adrp	x8, _stop_pc@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stop_pc@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w0, w8
	csinc	w21, w0, wzr, ne
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, sp
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	bl	_PIDGET
	stp	w21, w0, [sp, #8]
	cbz	w19, LBB0_9
; %bb.4:
	bl	_net_step
	cbz	w0, LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _rpcerr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rpcerr@GOTPAGEOFF]
Lloh19:
	ldr	x0, [x8]
	bl	_error
LBB0_6:
	ldr	w8, [sp]
	cmn	w8, #1
	b.ne	LBB0_8
; %bb.7:
	ldr	w8, [sp, #4]
Lloh20:
	adrp	x9, _errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh22:
	str	w8, [x9]
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror_with_name
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
Lloh25:
	adrp	x8, _PTRACE_CONT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PTRACE_CONT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, sp
	bl	_net_ptrace_clnt_call
	cbnz	w0, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_minus_one_ptid,4,2             ; @minus_one_ptid
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_stop_signal,4,2                ; @stop_signal
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot send signals to VxWorks processes"

	.comm	_PC_REGNUM,4,2                  ; @PC_REGNUM
	.comm	_stop_pc,4,2                    ; @stop_pc
	.comm	_PTRACE_CONT,4,2                ; @PTRACE_CONT
	.comm	_rpcerr,8,3                     ; @rpcerr
	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Resuming remote process"

	.no_dead_strip	_vx_resume
.subsections_via_symbols
