	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function remote_resume
_remote_resume:                         ## @remote_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r13d
	movl	%esi, %r15d
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_get_remote_state
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_alloca
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_PIDGET
	movl	%eax, %ebx
	movq	_last_sent_signal@GOTPCREL(%rip), %rax
	movl	%r13d, (%rax)
	movq	_last_sent_step@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	xorl	%eax, %eax
	callq	_target_resume_hook
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_remote_vcont_resume
	testq	%rax, %rax
	je	LBB0_1
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$-1, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_set_thread
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.2:
	movq	_step_range_end@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.3:
	movq	_TARGET_SIGNAL_0@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_4
## %bb.6:
	movq	_remote_protocol_e@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PACKET_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	leaq	1(%r14), %rdi
	movb	$101, (%r14)
	movq	_step_range_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hexnumstr
	cltq
	leaq	(%r14,%rax), %rcx
	incq	%rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax), %rdi
	addq	$2, %rdi
	movb	$44, 1(%r14,%rax)
	movl	(%rbx), %esi
	callq	_hexnumstr
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, 1(%rax,%rcx)
	movq	%r14, %rdi
	callq	_putpkt
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_getpkt
	movq	_remote_protocol_e@GOTPCREL(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movq	_remote_protocol_E@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PACKET_DISABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.5:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movb	$69, (%r14)
	movl	%r13d, %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_tohex
	movb	%al, 1(%r14)
	movl	%r13d, %edi
	andl	$15, %edi
	callq	_tohex
	movb	%al, 2(%r14)
	leaq	4(%r14), %rdi
	movb	$44, 3(%r14)
	movq	_step_range_start@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hexnumstr
	cltq
	leaq	(%r14,%rax), %rcx
	addq	$4, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax), %rdi
	addq	$5, %rdi
	movb	$44, 4(%r14,%rax)
	movl	(%rbx), %esi
	callq	_hexnumstr
	cltq
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, 1(%rax,%rcx)
	movq	%r14, %rdi
	callq	_putpkt
	movl	(%r12), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_getpkt
	movq	_remote_protocol_E@GOTPCREL(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_packet_ok
	movq	_PACKET_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
LBB0_9:
	movq	_TARGET_SIGNAL_0@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_10
## %bb.11:
	testl	%r15d, %r15d
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmovneq	%rax, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strcpy
	jmp	LBB0_12
LBB0_10:
	testl	%r15d, %r15d
	setne	%al
	shlb	$4, %al
	orb	$67, %al
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movb	%al, (%rbx)
	movl	%r13d, %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_tohex
	movb	%al, 1(%rbx)
	andl	$15, %r13d
	movl	%r13d, %edi
	callq	_tohex
	movb	%al, 2(%rbx)
	movb	$0, 3(%rbx)
LBB0_12:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_putpkt                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_last_sent_signal,4,2           ## @last_sent_signal
	.comm	_last_sent_step,4,2             ## @last_sent_step
	.comm	_step_range_end,8,3             ## @step_range_end
	.comm	_TARGET_SIGNAL_0,4,2            ## @TARGET_SIGNAL_0
	.comm	_remote_protocol_E,8,3          ## @remote_protocol_E
	.comm	_PACKET_DISABLE,8,3             ## @PACKET_DISABLE
	.comm	_step_range_start,8,3           ## @step_range_start
	.comm	_PACKET_OK,8,3                  ## @PACKET_OK
	.comm	_remote_protocol_e,8,3          ## @remote_protocol_e
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"s"

L_.str.1:                               ## @.str.1
	.asciz	"c"

	.no_dead_strip	_remote_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function remote_resume
_remote_resume:                         ; @remote_resume
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x24, x0
	bl	_get_remote_state
	mov	x22, x0
	ldr	w0, [x0]
	bl	_alloca
	mov	x19, x0
	mov	x0, x24
	bl	_PIDGET
	mov	x23, x0
Lloh0:
	adrp	x8, _last_sent_signal@GOTPAGE
Lloh1:
	ldr	x8, [x8, _last_sent_signal@GOTPAGEOFF]
Lloh2:
	str	w20, [x8]
Lloh3:
	adrp	x8, _last_sent_step@GOTPAGE
Lloh4:
	ldr	x8, [x8, _last_sent_step@GOTPAGEOFF]
Lloh5:
	str	w21, [x8]
	bl	_target_resume_hook
	mov	x0, x24
	mov	x1, x21
	mov	x2, x20
	bl	_remote_vcont_resume
	cbz	x0, LBB0_2
LBB0_1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
	cmn	w23, #1
	csel	w0, wzr, w23, eq
	mov	w1, #0
	bl	_set_thread
Lloh6:
	adrp	x24, _TARGET_SIGNAL_0@GOTPAGE
Lloh7:
	ldr	x24, [x24, _TARGET_SIGNAL_0@GOTPAGEOFF]
	cbz	w21, LBB0_10
; %bb.3:
Lloh8:
	adrp	x25, _step_range_end@GOTPAGE
Lloh9:
	ldr	x25, [x25, _step_range_end@GOTPAGEOFF]
	ldr	x8, [x25]
	cbz	x8, LBB0_10
; %bb.4:
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_7
; %bb.5:
Lloh10:
	adrp	x8, _remote_protocol_e@GOTPAGE
Lloh11:
	ldr	x8, [x8, _remote_protocol_e@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PACKET_DISABLE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PACKET_DISABLE@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:
	mov	w8, #101
	mov	x23, x19
	strb	w8, [x23], #1
Lloh16:
	adrp	x8, _step_range_start@GOTPAGE
Lloh17:
	ldr	x8, [x8, _step_range_start@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_hexnumstr
	add	x23, x23, w0, sxtw
	mov	w8, #44
	strb	w8, [x23], #1
	ldr	w1, [x25]
	mov	x0, x23
	bl	_hexnumstr
	strb	wzr, [x23, w0, sxtw]
	mov	x0, x19
	bl	_putpkt
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_getpkt
Lloh19:
	adrp	x1, _remote_protocol_e@GOTPAGE
Lloh20:
	ldr	x1, [x1, _remote_protocol_e@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh21:
	adrp	x8, _remote_protocol_E@GOTPAGE
Lloh22:
	ldr	x8, [x8, _remote_protocol_E@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x9, _PACKET_DISABLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PACKET_DISABLE@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.8:
	mov	w8, #69
	strb	w8, [x19]
	ubfx	w0, w20, #4, #4
	bl	_tohex
	strb	w0, [x19, #1]
	and	w0, w20, #0xf
	bl	_tohex
	strb	w0, [x19, #2]
	add	x23, x19, #4
	mov	w26, #44
	strb	w26, [x19, #3]
Lloh27:
	adrp	x8, _step_range_start@GOTPAGE
Lloh28:
	ldr	x8, [x8, _step_range_start@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_hexnumstr
	add	x23, x23, w0, sxtw
	strb	w26, [x23], #1
	ldr	w1, [x25]
	mov	x0, x23
	bl	_hexnumstr
	strb	wzr, [x23, w0, sxtw]
	mov	x0, x19
	bl	_putpkt
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_getpkt
Lloh30:
	adrp	x1, _remote_protocol_E@GOTPAGE
Lloh31:
	ldr	x1, [x1, _remote_protocol_E@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	bl	_packet_ok
Lloh32:
	adrp	x8, _PACKET_OK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PACKET_OK@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
LBB0_10:
	ldr	w8, [x24]
	cmp	w8, w20
	b.ne	LBB0_12
; %bb.11:
Lloh35:
	adrp	x8, l_.str.1@PAGE
Lloh36:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh37:
	adrp	x9, l_.str@PAGE
Lloh38:
	add	x9, x9, l_.str@PAGEOFF
	cmp	w21, #0
	csel	x1, x9, x8, ne
	mov	x0, x19
	bl	_strcpy
	b	LBB0_13
LBB0_12:
	mov	w8, #67
	mov	w9, #83
	cmp	w21, #0
	csel	w8, w9, w8, ne
	strb	w8, [x19]
	ubfx	w0, w20, #4, #4
	bl	_tohex
	strb	w0, [x19, #1]
	and	w0, w20, #0xf
	bl	_tohex
	strb	w0, [x19, #2]
	strb	wzr, [x19, #3]
LBB0_13:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_putpkt
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_last_sent_signal,4,2           ; @last_sent_signal
	.comm	_last_sent_step,4,2             ; @last_sent_step
	.comm	_step_range_end,8,3             ; @step_range_end
	.comm	_TARGET_SIGNAL_0,4,2            ; @TARGET_SIGNAL_0
	.comm	_remote_protocol_E,8,3          ; @remote_protocol_E
	.comm	_PACKET_DISABLE,8,3             ; @PACKET_DISABLE
	.comm	_step_range_start,8,3           ; @step_range_start
	.comm	_PACKET_OK,8,3                  ; @PACKET_OK
	.comm	_remote_protocol_e,8,3          ; @remote_protocol_e
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"s"

l_.str.1:                               ; @.str.1
	.asciz	"c"

	.no_dead_strip	_remote_resume
.subsections_via_symbols
