	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swrun_OS_get_proc_status
_swrun_OS_get_proc_status:              ## @swrun_OS_get_proc_status
	.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	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	_SRS_INVALID@GOTPCREL(%rip), %r14
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edx
	leal	-128(%rdx), %eax
	cmpl	$7, %eax
	jae	LBB0_2
## %bb.3:
	cltq
	leaq	l_switch.table.swrun_OS_get_proc_status(%rip), %rcx
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_4
LBB0_2:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_syslog
LBB0_4:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRS_INVALID,4,2                ## @SRS_INVALID
	.comm	_SRS_NOT_RUNNABLE,4,2           ## @SRS_NOT_RUNNABLE
	.comm	_SRS_RUNNABLE,4,2               ## @SRS_RUNNABLE
	.comm	_SRS_RUNNING,4,2                ## @SRS_RUNNING
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown process state: %d"

	.no_dead_strip	_swrun_OS_get_proc_status
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.swrun_OS_get_proc_status
l_switch.table.swrun_OS_get_proc_status:
	.quad	_SRS_INVALID
	.quad	_SRS_RUNNABLE
	.quad	_SRS_NOT_RUNNABLE
	.quad	_SRS_RUNNABLE
	.quad	_SRS_RUNNING
	.quad	_SRS_RUNNABLE
	.quad	_SRS_RUNNING

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swrun_OS_get_proc_status
_swrun_OS_get_proc_status:              ; @swrun_OS_get_proc_status
	.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
	mov	x19, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	cbz	x19, LBB0_4
; %bb.1:
	ldr	w2, [x19]
	sub	w8, w2, #128
	cmp	w8, #7
	b.hs	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.swrun_OS_get_proc_status@PAGE
Lloh1:
	add	x9, x9, l_switch.table.swrun_OS_get_proc_status@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_syslog
LBB0_4:
Lloh7:
	adrp	x8, _SRS_INVALID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SRS_INVALID@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SRS_INVALID,4,2                ; @SRS_INVALID
	.comm	_SRS_NOT_RUNNABLE,4,2           ; @SRS_NOT_RUNNABLE
	.comm	_SRS_RUNNABLE,4,2               ; @SRS_RUNNABLE
	.comm	_SRS_RUNNING,4,2                ; @SRS_RUNNING
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown process state: %d"

	.no_dead_strip	_swrun_OS_get_proc_status
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.swrun_OS_get_proc_status
l_switch.table.swrun_OS_get_proc_status:
	.quad	_SRS_INVALID
	.quad	_SRS_RUNNABLE
	.quad	_SRS_NOT_RUNNABLE
	.quad	_SRS_RUNNABLE
	.quad	_SRS_RUNNING
	.quad	_SRS_RUNNABLE
	.quad	_SRS_RUNNING

.subsections_via_symbols
