	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function select_stopped_thread_of_process
_select_stopped_thread_of_process:      ## @select_stopped_thread_of_process
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	(%rsi), %rsi
	callq	_can_touch_threads_of_process
	movl	$1, %r14d
	testl	%eax, %eax
	je	LBB0_22
## %bb.1:
	leaq	-64(%rbp), %rsi
	movl	%ebx, %edi
	callq	_get_process_first_stopped_thread_id
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	_TTEVT_NONE@GOTPCREL(%rip), %r14
	leaq	-64(%rbp), %r12
	movq	_doing_fake_step@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_set_handled
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_get_process_next_stopped_thread_id
	testq	%rax, %rax
	je	LBB0_12
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r15)
	movq	-56(%rbp), %rdi
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_fake_step_tid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	movups	-64(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	%rdi, %r13
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_was_handled
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	testq	%r13, %r13
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r13
	movups	-64(%rbp), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	-48(%rbp), %rax
	movq	%rax, -80(%rbp)
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, (%r15)
	je	LBB0_19
## %bb.13:
	movl	$1, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_14:
	movq	_doing_fake_step@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
## %bb.15:
	xorl	%r13d, %r13d
LBB0_16:
	movq	_fake_step_tid@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_21
## %bb.17:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_18
LBB0_19:
	testq	%r13, %r13
	movl	$1, %r14d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_20
LBB0_21:
	movq	-80(%rbp), %rax
	movq	%rax, -48(%rbp)
	movaps	-96(%rbp), %xmm0
	movaps	%xmm0, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_copy_ttstate_t
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
LBB0_18:
	callq	_warning
	xorl	%r14d, %r14d
LBB0_22:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTEVT_NONE,8,3                 ## @TTEVT_NONE
	.comm	_doing_fake_step,8,3            ## @doing_fake_step
	.comm	_fake_step_tid,8,3              ## @fake_step_tid
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Internal error: fake-step failed to complete."

L_.str.2:                               ## @.str.2
	.asciz	"Internal error: no unhandled thread event to select"

	.comm	_TTEVT_SIGNAL,8,3               ## @TTEVT_SIGNAL
	.comm	_debug_on,8,3                   ## @debug_on
	.no_dead_strip	_select_stopped_thread_of_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function select_stopped_thread_of_process
_select_stopped_thread_of_process:      ; @select_stopped_thread_of_process
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x1
	mov	x20, x0
	ldr	x1, [x1]
	bl	_can_touch_threads_of_process
	cbz	w0, LBB0_16
; %bb.1:
	mov	x1, sp
	mov	x0, x20
	bl	_get_process_first_stopped_thread_id
Lloh0:
	adrp	x21, _fake_step_tid@GOTPAGE
Lloh1:
	ldr	x21, [x21, _fake_step_tid@GOTPAGEOFF]
	cbz	x0, LBB0_12
; %bb.2:
	mov	x22, #0
Lloh2:
	adrp	x23, _TTEVT_NONE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TTEVT_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x24, _doing_fake_step@GOTPAGE
Lloh5:
	ldr	x24, [x24, _doing_fake_step@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_set_handled
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_get_process_next_stopped_thread_id
	cbz	x0, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x24]
	ldr	x0, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, #0
	ccmp	x0, x9, #0, ne
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_was_handled
	cmp	w0, #0
	ccmp	x22, #0, #0, eq
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	q0, [sp]
	str	q0, [sp, #32]
	ldp	x22, x8, [sp, #8]
	str	x8, [sp, #48]
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	q0, [sp]
	str	q0, [sp, #32]
	ldr	x8, [sp, #16]
	str	x8, [sp, #48]
	mov	x22, x0
	b	LBB0_4
LBB0_10:
	ldr	x8, [x24]
	cbnz	x8, LBB0_14
; %bb.11:
	cbnz	x22, LBB0_15
	b	LBB0_18
LBB0_12:
Lloh6:
	adrp	x8, _doing_fake_step@GOTPAGE
Lloh7:
	ldr	x8, [x8, _doing_fake_step@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.13:
	mov	x22, #0
LBB0_14:
	ldr	x8, [x21]
	cmp	x22, x8
	b.ne	LBB0_17
LBB0_15:
	ldr	q0, [sp, #32]
	str	q0, [sp]
	ldr	x8, [sp, #48]
	str	x8, [sp, #16]
	mov	x1, sp
	mov	x0, x19
	bl	_copy_ttstate_t
LBB0_16:
	mov	w0, #1
	b	LBB0_20
LBB0_17:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_19
LBB0_18:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_19:
	bl	_warning
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TTEVT_NONE,8,3                 ; @TTEVT_NONE
	.comm	_doing_fake_step,8,3            ; @doing_fake_step
	.comm	_fake_step_tid,8,3              ; @fake_step_tid
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Internal error: fake-step failed to complete."

l_.str.2:                               ; @.str.2
	.asciz	"Internal error: no unhandled thread event to select"

	.comm	_TTEVT_SIGNAL,8,3               ; @TTEVT_SIGNAL
	.comm	_debug_on,8,3                   ; @debug_on
	.no_dead_strip	_select_stopped_thread_of_process
.subsections_via_symbols
