	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SetMobjState                 ## -- Begin function P_SetMobjState
	.p2align	4, 0x90
_P_SetMobjState:                        ## @P_SetMobjState
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_S_NULL@GOTPCREL(%rip), %r14
	movq	_states@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rsi
	testl	%eax, %eax
	jne	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%r14), %rsi
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rcx
	shlq	$5, %rsi
	leaq	(%rcx,%rsi), %r12
	movq	%r12, 16(%rbx)
	movl	24(%rcx,%rsi), %eax
	movl	%eax, 8(%rbx)
	movl	20(%rcx,%rsi), %edx
	movl	%edx, 4(%rbx)
	movl	16(%rcx,%rsi), %edx
	movl	%edx, (%rbx)
	movq	8(%rcx,%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	*%rcx
	movl	8(%rbx), %eax
	jmp	LBB0_5
LBB0_6:
	movl	$1, %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rsi, 16(%rbx)
	movq	%rbx, %rdi
	callq	_P_RemoveMobj
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_NULL,8,3                     ## @S_NULL
	.comm	_states,8,3                     ## @states
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SetMobjState                 ; -- Begin function P_SetMobjState
	.p2align	2
_P_SetMobjState:                        ; @P_SetMobjState
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _S_NULL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _S_NULL@GOTPAGEOFF]
Lloh2:
	adrp	x21, _states@GOTPAGE
Lloh3:
	ldr	x21, [x21, _states@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x22]
	cbnz	w8, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	cmp	x1, x8
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	add	x22, x8, x1, lsl #5
	str	x22, [x19, #16]
	ldr	w8, [x22, #24]
	str	w8, [x19, #8]
	ldr	d0, [x22, #16]
	str	d0, [x19]
	ldr	x9, [x22, #8]
	cbz	x9, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	blr	x9
	ldr	w8, [x19, #8]
	b	LBB0_1
LBB0_5:
	mov	w0, #1
	b	LBB0_7
LBB0_6:
	str	x1, [x19, #16]
	mov	x0, x19
	bl	_P_RemoveMobj
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_S_NULL,8,3                     ; @S_NULL
	.comm	_states,8,3                     ; @states
.subsections_via_symbols
