	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_resume_reply           ## -- Begin function prepare_resume_reply
	.p2align	4, 0x90
_prepare_resume_reply:                  ## @prepare_resume_reply
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	movb	%r14b, (%rdi)
	movl	%edx, %edi
	callq	_target_signal_from_host
	movq	%rax, %r15
	movl	%r15d, %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_tohex
	movb	%al, 1(%r12)
	andl	$15, %r15d
	movl	%r15d, %edi
	callq	_tohex
	movb	%al, 2(%r12)
	addq	$3, %r12
	cmpb	$84, %r14b
	jne	LBB0_8
## %bb.1:
	movq	_gdbserver_expedite_regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.2:
	addq	$8, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_find_regno
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_outreg
	movq	%rax, %r12
	movq	(%rbx), %rdi
	addq	$8, %rbx
	testq	%rdi, %rdi
	jne	LBB0_3
LBB0_4:
	movq	_using_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_current_inferior@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movq	_thread_from_wait@GOTPCREL(%rip), %r14
	movl	%edx, (%r14)
	movq	_debug_threads@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	(%r14), %edx
LBB0_7:
	movq	_general_thread@GOTPCREL(%rip), %rax
	movl	%edx, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_sprintf
	movq	%r12, %rdi
	callq	_strlen
	cltq
	addq	%rax, %r12
	movl	(%r14), %eax
	movq	_old_thread_from_wait@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movb	$0, (%r12)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_gdbserver_expedite_regs,8,3    ## @gdbserver_expedite_regs
	.comm	_using_threads,8,3              ## @using_threads
	.comm	_current_inferior,8,3           ## @current_inferior
	.comm	_thread_from_wait,4,2           ## @thread_from_wait
	.comm	_debug_threads,8,3              ## @debug_threads
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Writing resume reply for %d\n\n"

	.comm	_general_thread,4,2             ## @general_thread
L_.str.1:                               ## @.str.1
	.asciz	"thread:%x;"

	.comm	_old_thread_from_wait,4,2       ## @old_thread_from_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_prepare_resume_reply           ; -- Begin function prepare_resume_reply
	.p2align	2
_prepare_resume_reply:                  ; @prepare_resume_reply
	.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
	mov	x20, x1
	mov	x21, x0
	strb	w1, [x0]
	mov	x0, x2
	bl	_target_signal_from_host
	mov	x19, x0
	ubfx	w0, w19, #4, #4
	bl	_tohex
	strb	w0, [x21, #1]
	and	w0, w19, #0xf
	bl	_tohex
	add	x19, x21, #3
	strb	w0, [x21, #2]
	cmp	w20, #84
	b.ne	LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _gdbserver_expedite_regs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gdbserver_expedite_regs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x0, [x8]
	cbz	x0, LBB0_4
; %bb.2:
	add	x20, x8, #8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_find_regno
	mov	x1, x19
	bl	_outreg
	mov	x19, x0
	ldr	x0, [x20], #8
	cbnz	x0, LBB0_3
LBB0_4:
Lloh3:
	adrp	x8, _using_threads@GOTPAGE
Lloh4:
	ldr	x8, [x8, _using_threads@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh6:
	adrp	x8, _current_inferior@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current_inferior@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w2, [x8]
Lloh9:
	adrp	x20, _thread_from_wait@GOTPAGE
Lloh10:
	ldr	x20, [x20, _thread_from_wait@GOTPAGEOFF]
	str	w2, [x20]
Lloh11:
	adrp	x8, _debug_threads@GOTPAGE
Lloh12:
	ldr	x8, [x8, _debug_threads@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w2, [x20]
LBB0_7:
Lloh19:
	adrp	x8, _general_thread@GOTPAGE
Lloh20:
	ldr	x8, [x8, _general_thread@GOTPAGEOFF]
Lloh21:
	str	w2, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x0, x19
	bl	_strlen
	add	x19, x19, w0, sxtw
	ldr	w8, [x20]
Lloh24:
	adrp	x9, _old_thread_from_wait@GOTPAGE
Lloh25:
	ldr	x9, [x9, _old_thread_from_wait@GOTPAGEOFF]
Lloh26:
	str	w8, [x9]
LBB0_8:
	strb	wzr, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_gdbserver_expedite_regs,8,3    ; @gdbserver_expedite_regs
	.comm	_using_threads,8,3              ; @using_threads
	.comm	_current_inferior,8,3           ; @current_inferior
	.comm	_thread_from_wait,4,2           ; @thread_from_wait
	.comm	_debug_threads,8,3              ; @debug_threads
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Writing resume reply for %d\n\n"

	.comm	_general_thread,4,2             ; @general_thread
l_.str.1:                               ; @.str.1
	.asciz	"thread:%x;"

	.comm	_old_thread_from_wait,4,2       ; @old_thread_from_wait
.subsections_via_symbols
