	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_thread
_set_thread:                            ## @set_thread
	.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
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_get_remote_state
	movq	%rax, %r15
	movl	(%rax), %edi
	callq	_alloca
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_continue_thread@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
	jmp	LBB0_14
LBB0_1:
	movq	_general_thread@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	je	LBB0_14
LBB0_4:
	testl	%r14d, %r14d
	setne	%al
	movb	$72, (%rbx)
	shlb	$2, %al
	orb	$99, %al
	movb	%al, 1(%rbx)
	movq	_MAGIC_NULL_PID@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_6
## %bb.5:
	movw	$48, 2(%rbx)
	jmp	LBB0_10
LBB0_6:
	movq	%rbx, %rdi
	addq	$2, %rdi
	testl	%r12d, %r12d
	js	LBB0_7
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	jmp	LBB0_9
LBB0_7:
	movl	%r12d, %edx
	negl	%edx
	leaq	L_.str(%rip), %rsi
LBB0_9:
	callq	_sprintf
LBB0_10:
	movq	%rbx, %rdi
	callq	_putpkt
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_getpkt
	testl	%r14d, %r14d
	jne	LBB0_11
## %bb.12:
	movq	_continue_thread@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_general_thread@GOTPCREL(%rip), %rax
LBB0_13:
	movl	%r12d, (%rax)
LBB0_14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_general_thread,4,2             ## @general_thread
	.comm	_continue_thread,4,2            ## @continue_thread
	.comm	_MAGIC_NULL_PID,4,2             ## @MAGIC_NULL_PID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-%x"

L_.str.1:                               ## @.str.1
	.asciz	"%x"

	.no_dead_strip	_set_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_thread
_set_thread:                            ; @set_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_get_remote_state
	mov	x21, x0
	ldr	w0, [x0]
	bl	_alloca
Lloh0:
	adrp	x23, _general_thread@GOTPAGE
Lloh1:
	ldr	x23, [x23, _general_thread@GOTPAGEOFF]
Lloh2:
	adrp	x24, _continue_thread@GOTPAGE
Lloh3:
	ldr	x24, [x24, _continue_thread@GOTPAGEOFF]
	cmp	w20, #0
	csel	x8, x24, x23, eq
	ldr	w8, [x8]
	cmp	w8, w19
	b.eq	LBB0_8
; %bb.1:
	mov	x22, x0
	mov	w8, #72
	strb	w8, [x0]
	mov	w8, #103
	mov	w9, #99
	cmp	w20, #0
	csel	w8, w9, w8, eq
	strb	w8, [x0, #1]
Lloh4:
	adrp	x8, _MAGIC_NULL_PID@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MAGIC_NULL_PID@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
	mov	w8, #48
	strh	w8, [x22, #2]
	b	LBB0_7
LBB0_3:
	add	x0, x22, #2
	tbnz	w19, #31, LBB0_5
; %bb.4:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	b	LBB0_6
LBB0_5:
	neg	w2, w19
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_sprintf
LBB0_7:
	mov	x0, x22
	bl	_putpkt
	ldr	w1, [x21]
	mov	x0, x22
	mov	w2, #0
	bl	_getpkt
	cmp	w20, #0
	csel	x8, x24, x23, eq
	str	w19, [x8]
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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_general_thread,4,2             ; @general_thread
	.comm	_continue_thread,4,2            ; @continue_thread
	.comm	_MAGIC_NULL_PID,4,2             ; @MAGIC_NULL_PID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-%x"

l_.str.1:                               ; @.str.1
	.asciz	"%x"

	.no_dead_strip	_set_thread
.subsections_via_symbols
