	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnBlood                   ## -- Begin function P_SpawnBlood
	.p2align	4, 0x90
_P_SpawnBlood:                          ## @P_SpawnBlood
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r13d
	movl	%esi, %r15d
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_P_Random
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_P_Random
	subl	%eax, %ebx
	shll	$10, %ebx
	addl	%ebx, %r13d
	movq	_MT_BLOOD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%r13d, %edx
	callq	_P_SpawnMobj
	movq	%rax, %rbx
	movq	_FRACUNIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	callq	_P_Random
	andl	$3, %eax
	movl	4(%rbx), %ecx
	subl	%eax, %ecx
	cmpl	$2, %ecx
	movl	$1, %eax
	cmovgel	%ecx, %eax
	movl	%eax, 4(%rbx)
	leal	-9(%r14), %eax
	cmpl	$4, %eax
	jae	LBB0_2
## %bb.1:
	movq	_S_BLOOD2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	cmpl	$8, %r14d
	jg	LBB0_5
## %bb.3:
	movq	_S_BLOOD3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_P_SetMobjState                 ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_BLOOD,4,2                   ## @MT_BLOOD
	.comm	_FRACUNIT,4,2                   ## @FRACUNIT
	.comm	_S_BLOOD2,4,2                   ## @S_BLOOD2
	.comm	_S_BLOOD3,4,2                   ## @S_BLOOD3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_P_SpawnBlood                   ; -- Begin function P_SpawnBlood
	.p2align	2
_P_SpawnBlood:                          ; @P_SpawnBlood
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_P_Random
	mov	x23, x0
	bl	_P_Random
	sub	w8, w23, w0
	add	w2, w20, w8, lsl #10
Lloh0:
	adrp	x8, _MT_BLOOD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_BLOOD@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_P_SpawnMobj
	mov	x20, x0
Lloh3:
	adrp	x8, _FRACUNIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRACUNIT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [x0]
	bl	_P_Random
	and	w8, w0, #0x3
	ldr	w9, [x20, #4]
	sub	w8, w9, w8
	cmp	w8, #1
	csinc	w8, w8, wzr, gt
	str	w8, [x20, #4]
	sub	w8, w19, #9
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _S_BLOOD2@GOTPAGE
Lloh7:
	ldr	x8, [x8, _S_BLOOD2@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	cmp	w19, #8
	b.gt	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _S_BLOOD3@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_BLOOD3@GOTPAGEOFF]
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_P_SetMobjState
LBB0_5:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_BLOOD,4,2                   ; @MT_BLOOD
	.comm	_FRACUNIT,4,2                   ; @FRACUNIT
	.comm	_S_BLOOD2,4,2                   ; @S_BLOOD2
	.comm	_S_BLOOD3,4,2                   ; @S_BLOOD3
.subsections_via_symbols
