	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_get_state                 ## -- Begin function proc_get_state
	.p2align	4, 0x90
_proc_get_state:                        ## @proc_get_state
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	movl	(%rdi), %r15d
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_proc_debug
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_proc_abort
	testl	%r15d, %r15d
	jne	LBB0_3
## %bb.1:
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	$0, 4(%rbx)
LBB0_3:
	cmpl	$0, 4(%rbx)
	je	LBB0_4
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	movl	$1, 8(%rbx)
LBB0_7:
	addl	$12, %ebx
	movl	%ebx, %r15d
	jmp	LBB0_8
LBB0_4:
	movq	_THREAD_STATE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	16(%rbx), %edi
	movq	_THREAD_STATE_FLAVOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	12(%rbx), %edx
	leaq	-36(%rbp), %rcx
	callq	_thread_get_state
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_proc_debug
	xorl	%eax, %eax
	testl	%r12d, %r12d
	sete	%al
	movl	%eax, 4(%rbx)
	je	LBB0_5
LBB0_8:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"updating state info%s"

L_.str.1:                               ## @.str.1
	.asciz	" (with intention to modify)"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_THREAD_STATE_SIZE,4,2          ## @THREAD_STATE_SIZE
	.comm	_THREAD_STATE_FLAVOR,4,2        ## @THREAD_STATE_FLAVOR
L_.str.3:                               ## @.str.3
	.asciz	"getting thread state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proc_get_state                 ; -- Begin function proc_get_state
	.p2align	2
_proc_get_state:                        ; @proc_get_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w1, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_proc_debug
	mov	x0, x19
	mov	x1, x20
	bl	_proc_abort
	cbnz	w21, LBB0_3
; %bb.1:
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.2:
	str	wzr, [x19, #4]
LBB0_3:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_4:
	cbz	w20, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_6:
	add	w0, w19, #12
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _THREAD_STATE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THREAD_STATE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x19, #16]
Lloh9:
	adrp	x8, _THREAD_STATE_FLAVOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _THREAD_STATE_FLAVOR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	w2, w19, #12
	add	x3, sp, #12
	bl	_thread_get_state
	mov	x21, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_proc_debug
	cmp	w21, #0
	cset	w8, eq
	str	w8, [x19, #4]
	cbz	w21, LBB0_4
; %bb.8:
	mov	w0, #0
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"updating state info%s"

l_.str.1:                               ; @.str.1
	.asciz	" (with intention to modify)"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_THREAD_STATE_SIZE,4,2          ; @THREAD_STATE_SIZE
	.comm	_THREAD_STATE_FLAVOR,4,2        ; @THREAD_STATE_FLAVOR
l_.str.3:                               ; @.str.3
	.asciz	"getting thread state"

.subsections_via_symbols
