	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_desired_inferior           ## -- Begin function set_desired_inferior
	.p2align	4, 0x90
_set_desired_inferior:                  ## @set_desired_inferior
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$1, %edi
	jne	LBB0_2
## %bb.1:
	movq	_general_thread@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_2:
	movq	_step_thread@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_cont_thread@GOTPCREL(%rip), %rbx
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.3:
	movl	(%rbx), %eax
	incl	%eax
	cmpl	$1, %eax
	ja	LBB0_5
## %bb.4:
	movq	_all_threads@GOTPCREL(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_find_inferior_id
	testq	%rax, %rax
	jne	LBB0_6
LBB0_5:
	movl	(%rbx), %esi
	movq	_all_threads@GOTPCREL(%rip), %rdi
	callq	_find_inferior_id
LBB0_6:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	_all_threads@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	movq	_current_inferior@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_all_threads,8,3                ## @all_threads
	.comm	_general_thread,4,2             ## @general_thread
	.comm	_step_thread,8,3                ## @step_thread
	.comm	_cont_thread,4,2                ## @cont_thread
	.comm	_current_inferior,8,3           ## @current_inferior
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_desired_inferior           ; -- Begin function set_desired_inferior
	.p2align	2
_set_desired_inferior:                  ; @set_desired_inferior
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _all_threads@GOTPAGE
Lloh1:
	ldr	x19, [x19, _all_threads@GOTPAGEOFF]
	cmp	w0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _general_thread@GOTPAGE
Lloh3:
	ldr	x8, [x8, _general_thread@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh4:
	adrp	x8, _step_thread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _step_thread@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
Lloh7:
	adrp	x8, _cont_thread@GOTPAGE
Lloh8:
	ldr	x8, [x8, _cont_thread@GOTPAGEOFF]
	cmp	x1, #1
	b.lt	LBB0_6
; %bb.3:
	ldr	w9, [x8]
	add	w9, w9, #1
	cmp	w9, #1
	b.hi	LBB0_6
; %bb.4:
Lloh9:
	adrp	x0, _all_threads@GOTPAGE
Lloh10:
	ldr	x0, [x0, _all_threads@GOTPAGEOFF]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_find_inferior_id
	cbnz	x0, LBB0_7
; %bb.5:
Lloh11:
	adrp	x8, _cont_thread@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cont_thread@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
Lloh13:
	adrp	x0, _all_threads@GOTPAGE
Lloh14:
	ldr	x0, [x0, _all_threads@GOTPAGEOFF]
	bl	_find_inferior_id
LBB0_7:
	ldr	x8, [x19]
	cmp	x0, #0
	csel	x8, x8, x0, eq
Lloh15:
	adrp	x9, _current_inferior@GOTPAGE
Lloh16:
	ldr	x9, [x9, _current_inferior@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_all_threads,8,3                ; @all_threads
	.comm	_general_thread,4,2             ; @general_thread
	.comm	_step_thread,8,3                ; @step_thread
	.comm	_cont_thread,4,2                ; @cont_thread
	.comm	_current_inferior,8,3           ; @current_inferior
.subsections_via_symbols
