	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_SpawnFly                     ## -- Begin function A_SpawnFly
	.p2align	4, 0x90
_A_SpawnFly:                            ## @A_SpawnFly
	.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
	decq	32(%rdi)
	je	LBB0_1
## %bb.25:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r14
	movq	24(%rdi), %rbx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	16(%rbx), %edx
	movq	_MT_SPAWNFIRE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_P_SpawnMobj
	movq	_sfx_telept@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_S_StartSound
	xorl	%eax, %eax
	callq	_P_Random
	cmpl	$50, %eax
	jge	LBB0_3
## %bb.2:
	movq	_MT_TROOP@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_3:
	cmpl	$90, %eax
	jae	LBB0_5
## %bb.4:
	movq	_MT_SERGEANT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_5:
	cmpl	$120, %eax
	jae	LBB0_7
## %bb.6:
	movq	_MT_SHADOWS@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_7:
	cmpl	$130, %eax
	jae	LBB0_9
## %bb.8:
	movq	_MT_PAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_9:
	cmpl	$160, %eax
	jae	LBB0_11
## %bb.10:
	movq	_MT_HEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_11:
	cmpl	$162, %eax
	jae	LBB0_13
## %bb.12:
	movq	_MT_VILE@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_13:
	cmpl	$172, %eax
	jae	LBB0_15
## %bb.14:
	movq	_MT_UNDEAD@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_15:
	cmpl	$192, %eax
	jae	LBB0_17
## %bb.16:
	movq	_MT_BABY@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_17:
	cmpl	$222, %eax
	jae	LBB0_19
## %bb.18:
	movq	_MT_FATSO@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_19:
	cmpl	$246, %eax
	jae	LBB0_20
## %bb.21:
	movq	_MT_KNIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_20:
	movq	_MT_BRUISER@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %ecx
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movl	16(%rbx), %edx
	callq	_P_SpawnMobj
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_P_LookForPlayers
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_P_SetMobjState
LBB0_24:
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	%rbx, %rdi
	callq	_P_TeleportMove
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_P_RemoveMobj                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_SPAWNFIRE,4,2               ## @MT_SPAWNFIRE
	.comm	_sfx_telept,4,2                 ## @sfx_telept
	.comm	_MT_TROOP,4,2                   ## @MT_TROOP
	.comm	_MT_SERGEANT,4,2                ## @MT_SERGEANT
	.comm	_MT_SHADOWS,4,2                 ## @MT_SHADOWS
	.comm	_MT_PAIN,4,2                    ## @MT_PAIN
	.comm	_MT_HEAD,4,2                    ## @MT_HEAD
	.comm	_MT_VILE,4,2                    ## @MT_VILE
	.comm	_MT_UNDEAD,4,2                  ## @MT_UNDEAD
	.comm	_MT_BABY,4,2                    ## @MT_BABY
	.comm	_MT_FATSO,4,2                   ## @MT_FATSO
	.comm	_MT_KNIGHT,4,2                  ## @MT_KNIGHT
	.comm	_MT_BRUISER,4,2                 ## @MT_BRUISER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_SpawnFly                     ; -- Begin function A_SpawnFly
	.p2align	2
_A_SpawnFly:                            ; @A_SpawnFly
	.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
	ldr	x8, [x0, #32]
	subs	x8, x8, #1
	str	x8, [x0, #32]
	b.eq	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldp	w1, w0, [x20]
	ldr	w2, [x20, #16]
Lloh0:
	adrp	x8, _MT_SPAWNFIRE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_SPAWNFIRE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_P_SpawnMobj
Lloh3:
	adrp	x8, _sfx_telept@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sfx_telept@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_S_StartSound
	bl	_P_Random
	cmp	w0, #50
	b.ge	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MT_TROOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MT_TROOP@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	cmp	w0, #90
	b.hs	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _MT_SERGEANT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MT_SERGEANT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _MT_SHADOWS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MT_SHADOWS@GOTPAGEOFF]
Lloh12:
	adrp	x9, _MT_PAIN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MT_PAIN@GOTPAGEOFF]
Lloh14:
	adrp	x10, _MT_HEAD@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MT_HEAD@GOTPAGEOFF]
Lloh16:
	adrp	x11, _MT_VILE@GOTPAGE
Lloh17:
	ldr	x11, [x11, _MT_VILE@GOTPAGEOFF]
Lloh18:
	adrp	x12, _MT_UNDEAD@GOTPAGE
Lloh19:
	ldr	x12, [x12, _MT_UNDEAD@GOTPAGEOFF]
Lloh20:
	adrp	x13, _MT_BABY@GOTPAGE
Lloh21:
	ldr	x13, [x13, _MT_BABY@GOTPAGEOFF]
Lloh22:
	adrp	x14, _MT_FATSO@GOTPAGE
Lloh23:
	ldr	x14, [x14, _MT_FATSO@GOTPAGEOFF]
Lloh24:
	adrp	x15, _MT_BRUISER@GOTPAGE
Lloh25:
	ldr	x15, [x15, _MT_BRUISER@GOTPAGEOFF]
Lloh26:
	adrp	x16, _MT_KNIGHT@GOTPAGE
Lloh27:
	ldr	x16, [x16, _MT_KNIGHT@GOTPAGEOFF]
	cmp	w0, #246
	csel	x15, x16, x15, lo
	cmp	w0, #222
	csel	x14, x14, x15, lo
	cmp	w0, #192
	csel	x13, x13, x14, lo
	cmp	w0, #172
	csel	x12, x12, x13, lo
	cmp	w0, #162
	csel	x11, x11, x12, lo
	cmp	w0, #160
	csel	x10, x10, x11, lo
	cmp	w0, #130
	csel	x9, x9, x10, lo
	cmp	w0, #120
	csel	x8, x8, x9, lo
LBB0_7:
	ldr	w3, [x8]
	ldp	w1, w0, [x20]
	ldr	w2, [x20, #16]
	bl	_P_SpawnMobj
	mov	x20, x0
	mov	w1, #1
	bl	_P_LookForPlayers
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_P_SetMobjState
LBB0_9:
	ldp	w2, w1, [x20]
	mov	x0, x20
	bl	_P_TeleportMove
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_P_RemoveMobj
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_SPAWNFIRE,4,2               ; @MT_SPAWNFIRE
	.comm	_sfx_telept,4,2                 ; @sfx_telept
	.comm	_MT_TROOP,4,2                   ; @MT_TROOP
	.comm	_MT_SERGEANT,4,2                ; @MT_SERGEANT
	.comm	_MT_SHADOWS,4,2                 ; @MT_SHADOWS
	.comm	_MT_PAIN,4,2                    ; @MT_PAIN
	.comm	_MT_HEAD,4,2                    ; @MT_HEAD
	.comm	_MT_VILE,4,2                    ; @MT_VILE
	.comm	_MT_UNDEAD,4,2                  ; @MT_UNDEAD
	.comm	_MT_BABY,4,2                    ; @MT_BABY
	.comm	_MT_FATSO,4,2                   ; @MT_FATSO
	.comm	_MT_KNIGHT,4,2                  ; @MT_KNIGHT
	.comm	_MT_BRUISER,4,2                 ; @MT_BRUISER
.subsections_via_symbols
