	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inf_set_step_thread            ## -- Begin function inf_set_step_thread
	.p2align	4, 0x90
_inf_set_step_thread:                   ## @inf_set_step_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_proc_is_thread
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_gdb_assert
	movl	8(%r14), %edx
	movl	8(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_inf_debug
	jmp	LBB0_3
LBB0_2:
	movl	$1, %edi
	callq	_gdb_assert
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_inf_debug
LBB0_3:
	movq	(%r14), %rdi
	cmpq	%rbx, %rdi
	je	LBB0_11
## %bb.4:
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	movq	(%rdi), %rax
	movq	_MACH_PORT_NULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.6:
	xorl	%esi, %esi
	callq	_proc_trace
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_proc_trace
	testq	%rax, %rax
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, (%r14)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting step thread: %d/%d"

L_.str.1:                               ## @.str.1
	.asciz	"clearing step thread"

	.comm	_MACH_PORT_NULL,8,3             ## @MACH_PORT_NULL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inf_set_step_thread            ; -- Begin function inf_set_step_thread
	.p2align	2
_inf_set_step_thread:                   ; @inf_set_step_thread
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_proc_is_thread
	cmp	x0, #0
	cset	w0, ne
	bl	_gdb_assert
	ldr	w8, [x19, #8]
	ldr	w9, [x20, #8]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:
	mov	w0, #1
	bl	_gdb_assert
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_inf_debug
	ldr	x0, [x19]
	cmp	x0, x20
	b.eq	LBB0_11
; %bb.4:
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x0]
Lloh4:
	adrp	x9, _MACH_PORT_NULL@GOTPAGE
Lloh5:
	ldr	x9, [x9, _MACH_PORT_NULL@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	mov	w1, #0
	bl	_proc_trace
	cbz	x0, LBB0_11
LBB0_7:
	cbz	x20, LBB0_9
; %bb.8:
	mov	x0, x20
	mov	w1, #1
	bl	_proc_trace
	cbnz	x0, LBB0_10
LBB0_9:
	mov	x20, #0
LBB0_10:
	str	x20, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting step thread: %d/%d"

l_.str.1:                               ; @.str.1
	.asciz	"clearing step thread"

	.comm	_MACH_PORT_NULL,8,3             ; @MACH_PORT_NULL
.subsections_via_symbols
