	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BossDeath                    ## -- Begin function A_BossDeath
	.p2align	4, 0x90
_A_BossDeath:                           ## @A_BossDeath
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_gamemode@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_commercial@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	cmpq	%r10, %r9
	jne	LBB0_4
## %bb.1:
	movq	_gamemap@GOTPCREL(%rip), %rax
	cmpl	$7, (%rax)
	jne	LBB0_44
## %bb.2:
	movq	(%rdi), %rax
	movq	_MT_FATSO@GOTPCREL(%rip), %rcx
	movl	$7, %r8d
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.3:
	movq	_MT_BABY@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_4:
	movq	_gameepisode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	$3, %eax
	ja	LBB0_17
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	_gamemap@GOTPCREL(%rip), %rax
	cmpl	$8, (%rax)
	jne	LBB0_44
## %bb.7:
	movq	(%rdi), %rax
	movq	_MT_BRUISER@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_17:
	movq	_gamemap@GOTPCREL(%rip), %rax
	movl	$8, %r8d
	cmpl	$8, (%rax)
	je	LBB0_18
	jmp	LBB0_44
LBB0_10:
	movq	_gamemap@GOTPCREL(%rip), %rax
	cmpl	$8, (%rax)
	jne	LBB0_44
## %bb.11:
	movq	(%rdi), %rax
	movq	_MT_CYBORG@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_12:
	movq	_gamemap@GOTPCREL(%rip), %rax
	cmpl	$8, (%rax)
	je	LBB0_13
	jmp	LBB0_44
LBB0_14:
	movq	_gamemap@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$8, %eax
	je	LBB0_13
## %bb.15:
	cmpl	$6, %eax
	jne	LBB0_44
## %bb.16:
	movq	(%rdi), %rax
	movq	_MT_CYBORG@GOTPCREL(%rip), %rcx
	movl	$6, %r8d
	jmp	LBB0_9
LBB0_13:
	movq	(%rdi), %rax
	movq	_MT_SPIDER@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	$8, %r8d
LBB0_9:
	cmpq	(%rcx), %rax
	jne	LBB0_44
LBB0_18:
	movq	_MAXPLAYERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	jle	LBB0_19
## %bb.32:
	movq	_playeringame@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_players@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_35:                                ##   in Loop: Header=BB0_33 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	je	LBB0_44
LBB0_33:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_33 Depth=1
	cmpq	$0, (%rcx,%rdx,8)
	jle	LBB0_35
## %bb.20:
	cmpl	%esi, %edx
	jne	LBB0_21
	jmp	LBB0_44
LBB0_19:
	xorl	%edx, %edx
	cmpl	%esi, %edx
	je	LBB0_44
LBB0_21:
	movq	_thinkercap@GOTPCREL(%rip), %rsi
	movq	8(%rsi), %rdx
	cmpq	%rsi, %rdx
	je	LBB0_28
## %bb.22:
	movq	_P_MobjThinker@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	8(%rdx), %rdx
	cmpq	%rsi, %rdx
	je	LBB0_28
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rax, (%rdx)
	jne	LBB0_27
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	%rdi, %rdx
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	(%rdi), %rax
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=1
	cmpq	$0, 8(%rdx)
	jle	LBB0_27
	jmp	LBB0_44
LBB0_28:
	cmpq	%r10, %r9
	jne	LBB0_38
## %bb.29:
	movq	(%rdi), %rax
	movq	_MT_FATSO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_30
## %bb.36:
	movq	_MT_BABY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_40
## %bb.37:
	movl	$667, -8(%rbp)                  ## imm = 0x29B
	movq	_raiseToTexture@GOTPCREL(%rip), %rax
	jmp	LBB0_31
LBB0_38:
	movq	_gameepisode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$4, %eax
	je	LBB0_41
## %bb.39:
	cmpl	$1, %eax
	je	LBB0_30
	jmp	LBB0_40
LBB0_41:
	cmpl	$8, %r8d
	je	LBB0_30
## %bb.42:
	cmpl	$6, %r8d
	jne	LBB0_40
## %bb.43:
	movl	$666, -8(%rbp)                  ## imm = 0x29A
	movq	_blazeOpen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdi
	callq	_EV_DoDoor
	jmp	LBB0_44
LBB0_30:
	movl	$666, -8(%rbp)                  ## imm = 0x29A
	movq	_lowerFloorToLowest@GOTPCREL(%rip), %rax
LBB0_31:
	movl	(%rax), %esi
	leaq	-8(%rbp), %rdi
	callq	_EV_DoFloor
LBB0_44:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_40:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	jmp	_G_ExitLevel                    ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_gamemode,8,3                   ## @gamemode
	.comm	_commercial,8,3                 ## @commercial
	.comm	_gamemap,4,2                    ## @gamemap
	.comm	_MT_FATSO,8,3                   ## @MT_FATSO
	.comm	_MT_BABY,8,3                    ## @MT_BABY
	.comm	_gameepisode,4,2                ## @gameepisode
	.comm	_MT_BRUISER,8,3                 ## @MT_BRUISER
	.comm	_MT_CYBORG,8,3                  ## @MT_CYBORG
	.comm	_MT_SPIDER,8,3                  ## @MT_SPIDER
	.comm	_MAXPLAYERS,4,2                 ## @MAXPLAYERS
	.comm	_playeringame,8,3               ## @playeringame
	.comm	_players,8,3                    ## @players
	.comm	_thinkercap,16,3                ## @thinkercap
	.comm	_P_MobjThinker,8,3              ## @P_MobjThinker
	.comm	_lowerFloorToLowest,4,2         ## @lowerFloorToLowest
	.comm	_raiseToTexture,4,2             ## @raiseToTexture
	.comm	_blazeOpen,4,2                  ## @blazeOpen
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_A_BossDeath                    ; -- Begin function A_BossDeath
	.p2align	2
_A_BossDeath:                           ; @A_BossDeath
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _gamemode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _gamemode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _commercial@GOTPAGE
Lloh4:
	ldr	x9, [x9, _commercial@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x10, _gamemap@GOTPAGE
Lloh7:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w10, #7
	b.ne	LBB0_43
; %bb.2:
	ldr	x10, [x0]
Lloh9:
	adrp	x11, _MT_FATSO@GOTPAGE
Lloh10:
	ldr	x11, [x11, _MT_FATSO@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
Lloh12:
	adrp	x12, _MT_BABY@GOTPAGE
Lloh13:
	ldr	x12, [x12, _MT_BABY@GOTPAGEOFF]
Lloh14:
	ldr	x12, [x12]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_43
; %bb.3:
	mov	w10, #7
	b	LBB0_19
LBB0_4:
Lloh15:
	adrp	x10, _gameepisode@GOTPAGE
Lloh16:
	ldr	x10, [x10, _gameepisode@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	sub	w10, w10, #1
	cmp	w10, #3
	b.hi	LBB0_8
; %bb.5:
Lloh18:
	adrp	x11, lJTI0_0@PAGE
Lloh19:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_6
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_6:
Lloh20:
	adrp	x10, _gamemap@GOTPAGE
Lloh21:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	w10, #8
	b.ne	LBB0_43
; %bb.7:
	ldr	x10, [x0]
Lloh23:
	adrp	x11, _MT_BRUISER@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MT_BRUISER@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh25:
	adrp	x10, _gamemap@GOTPAGE
Lloh26:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	cmp	w10, #8
	b.eq	LBB0_19
	b	LBB0_43
LBB0_9:
Lloh28:
	adrp	x10, _gamemap@GOTPAGE
Lloh29:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	cmp	w10, #8
	b.ne	LBB0_43
; %bb.10:
	ldr	x10, [x0]
Lloh31:
	adrp	x11, _MT_CYBORG@GOTPAGE
Lloh32:
	ldr	x11, [x11, _MT_CYBORG@GOTPAGEOFF]
	b	LBB0_17
LBB0_11:
Lloh33:
	adrp	x10, _gamemap@GOTPAGE
Lloh34:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	w10, #8
	b.ne	LBB0_43
	b	LBB0_16
LBB0_12:
Lloh36:
	adrp	x10, _gamemap@GOTPAGE
Lloh37:
	ldr	x10, [x10, _gamemap@GOTPAGEOFF]
Lloh38:
	ldr	w10, [x10]
	cmp	w10, #8
	b.eq	LBB0_16
; %bb.13:
	cmp	w10, #6
	b.ne	LBB0_43
; %bb.14:
	ldr	x10, [x0]
Lloh39:
	adrp	x11, _MT_CYBORG@GOTPAGE
Lloh40:
	ldr	x11, [x11, _MT_CYBORG@GOTPAGEOFF]
Lloh41:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_43
; %bb.15:
	mov	w10, #6
	b	LBB0_19
LBB0_16:
	ldr	x10, [x0]
Lloh42:
	adrp	x11, _MT_SPIDER@GOTPAGE
Lloh43:
	ldr	x11, [x11, _MT_SPIDER@GOTPAGEOFF]
LBB0_17:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_43
; %bb.18:
	mov	w10, #8
LBB0_19:
Lloh44:
	adrp	x11, _MAXPLAYERS@GOTPAGE
Lloh45:
	ldr	x11, [x11, _MAXPLAYERS@GOTPAGEOFF]
Lloh46:
	ldr	w11, [x11]
	cmp	w11, #1
	b.lt	LBB0_25
; %bb.20:
	mov	x12, #0
Lloh47:
	adrp	x13, _playeringame@GOTPAGE
Lloh48:
	ldr	x13, [x13, _playeringame@GOTPAGEOFF]
Lloh49:
	ldr	x13, [x13]
Lloh50:
	adrp	x14, _players@GOTPAGE
Lloh51:
	ldr	x14, [x14, _players@GOTPAGEOFF]
Lloh52:
	ldr	x14, [x14]
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x12, x12, #1
	cmp	x11, x12
	b.eq	LBB0_43
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x13, x12, lsl #3]
	cbz	x15, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x15, [x14, x12, lsl #3]
	cmp	x15, #0
	b.le	LBB0_21
; %bb.24:
	cmp	w12, w11
	b.ne	LBB0_26
	b	LBB0_43
LBB0_25:
	mov	w12, #0
	cmp	w12, w11
	b.eq	LBB0_43
LBB0_26:
Lloh53:
	adrp	x11, _thinkercap@GOTPAGE
Lloh54:
	ldr	x11, [x11, _thinkercap@GOTPAGEOFF]
	ldr	x12, [x11, #8]
	cmp	x12, x11
	b.eq	LBB0_32
; %bb.27:
Lloh55:
	adrp	x13, _P_MobjThinker@GOTPAGE
Lloh56:
	ldr	x13, [x13, _P_MobjThinker@GOTPAGEOFF]
Lloh57:
	ldr	x13, [x13]
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=1
	ldr	x12, [x12, #8]
	cmp	x12, x11
	b.eq	LBB0_32
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12]
	cmp	x14, x13
	ccmp	x12, x0, #4, eq
	b.eq	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x14, [x0]
	cmp	x13, x14
	b.ne	LBB0_28
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	x14, [x12, #8]
	cmp	x14, #0
	b.le	LBB0_28
	b	LBB0_43
LBB0_32:
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.33:
	ldr	x8, [x0]
Lloh58:
	adrp	x9, _MT_FATSO@GOTPAGE
Lloh59:
	ldr	x9, [x9, _MT_FATSO@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_41
; %bb.34:
Lloh61:
	adrp	x9, _MT_BABY@GOTPAGE
Lloh62:
	ldr	x9, [x9, _MT_BABY@GOTPAGEOFF]
Lloh63:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_44
; %bb.35:
	mov	w8, #667
	str	w8, [sp, #8]
Lloh64:
	adrp	x8, _raiseToTexture@GOTPAGE
Lloh65:
	ldr	x8, [x8, _raiseToTexture@GOTPAGEOFF]
	b	LBB0_42
LBB0_36:
Lloh66:
	adrp	x8, _gameepisode@GOTPAGE
Lloh67:
	ldr	x8, [x8, _gameepisode@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
	cmp	w8, #4
	b.eq	LBB0_38
; %bb.37:
	cmp	w8, #1
	b.eq	LBB0_41
	b	LBB0_44
LBB0_38:
	cmp	w10, #8
	b.eq	LBB0_41
; %bb.39:
	cmp	w10, #6
	b.ne	LBB0_44
; %bb.40:
	mov	w8, #666
	str	w8, [sp, #8]
Lloh69:
	adrp	x8, _blazeOpen@GOTPAGE
Lloh70:
	ldr	x8, [x8, _blazeOpen@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_EV_DoDoor
	b	LBB0_43
LBB0_41:
	mov	w8, #666
	str	w8, [sp, #8]
Lloh72:
	adrp	x8, _lowerFloorToLowest@GOTPAGE
Lloh73:
	ldr	x8, [x8, _lowerFloorToLowest@GOTPAGEOFF]
LBB0_42:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_EV_DoFloor
LBB0_43:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_44:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_G_ExitLevel
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
                                        ; -- End function
	.comm	_gamemode,8,3                   ; @gamemode
	.comm	_commercial,8,3                 ; @commercial
	.comm	_gamemap,4,2                    ; @gamemap
	.comm	_MT_FATSO,8,3                   ; @MT_FATSO
	.comm	_MT_BABY,8,3                    ; @MT_BABY
	.comm	_gameepisode,4,2                ; @gameepisode
	.comm	_MT_BRUISER,8,3                 ; @MT_BRUISER
	.comm	_MT_CYBORG,8,3                  ; @MT_CYBORG
	.comm	_MT_SPIDER,8,3                  ; @MT_SPIDER
	.comm	_MAXPLAYERS,4,2                 ; @MAXPLAYERS
	.comm	_playeringame,8,3               ; @playeringame
	.comm	_players,8,3                    ; @players
	.comm	_thinkercap,16,3                ; @thinkercap
	.comm	_P_MobjThinker,8,3              ; @P_MobjThinker
	.comm	_lowerFloorToLowest,4,2         ; @lowerFloorToLowest
	.comm	_raiseToTexture,4,2             ; @raiseToTexture
	.comm	_blazeOpen,4,2                  ; @blazeOpen
.subsections_via_symbols
