	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_door                           ## -- Begin function door
	.p2align	4, 0x90
_door:                                  ## @door
	.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	_doorstate@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_OPENING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.1:
	movq	_doorpos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_film@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	4(%rcx,%rax,4), %r8d
	movl	$2, %edi
	movl	$2, %esi
	movl	$12, %edx
	movl	$6, %ecx
	callq	_set_win_tiles
	movq	(%rbx), %rax
	movq	_NBDFRAMES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.2:
	movq	_OPENED@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_CLOSING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	_doorpos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	leaq	-1(%rax), %rcx
	movq	%rcx, (%rbx)
	movq	_film@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	-4(%rcx,%rax,4), %r8d
	movl	$2, %edi
	movl	$2, %esi
	movl	$12, %edx
	movl	$6, %ecx
	callq	_set_win_tiles
	cmpq	$0, (%rbx)
	jne	LBB0_7
## %bb.5:
	movq	_CLOSED@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_doorstate,8,3                  ## @doorstate
	.comm	_OPENING,8,3                    ## @OPENING
	.comm	_doorpos,8,3                    ## @doorpos
	.comm	_film,8,3                       ## @film
	.comm	_NBDFRAMES,8,3                  ## @NBDFRAMES
	.comm	_OPENED,8,3                     ## @OPENED
	.comm	_CLOSING,8,3                    ## @CLOSING
	.comm	_CLOSED,8,3                     ## @CLOSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_door                           ; -- Begin function door
	.p2align	2
_door:                                  ; @door
	.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
Lloh0:
	adrp	x19, _doorstate@GOTPAGE
Lloh1:
	ldr	x19, [x19, _doorstate@GOTPAGEOFF]
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _OPENING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OPENING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x20, _doorpos@GOTPAGE
Lloh6:
	ldr	x20, [x20, _doorpos@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
Lloh7:
	adrp	x9, _film@GOTPAGE
Lloh8:
	ldr	x9, [x9, _film@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w4, [x9, x8, lsl #2]
	mov	w0, #2
	mov	w1, #2
	mov	w2, #12
	mov	w3, #6
	bl	_set_win_tiles
	ldr	x8, [x20]
Lloh10:
	adrp	x9, _NBDFRAMES@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NBDFRAMES@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
Lloh13:
	adrp	x8, _OPENED@GOTPAGE
Lloh14:
	ldr	x8, [x8, _OPENED@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x9, _CLOSING@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CLOSING@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh18:
	adrp	x20, _doorpos@GOTPAGE
Lloh19:
	ldr	x20, [x20, _doorpos@GOTPAGEOFF]
	ldr	x8, [x20]
	sub	x8, x8, #1
	str	x8, [x20]
Lloh20:
	adrp	x9, _film@GOTPAGE
Lloh21:
	ldr	x9, [x9, _film@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	w4, [x9, x8, lsl #2]
	mov	w0, #2
	mov	w1, #2
	mov	w2, #12
	mov	w3, #6
	bl	_set_win_tiles
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.5:
Lloh23:
	adrp	x8, _CLOSED@GOTPAGE
Lloh24:
	ldr	x8, [x8, _CLOSED@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_doorstate,8,3                  ; @doorstate
	.comm	_OPENING,8,3                    ; @OPENING
	.comm	_doorpos,8,3                    ; @doorpos
	.comm	_film,8,3                       ; @film
	.comm	_NBDFRAMES,8,3                  ; @NBDFRAMES
	.comm	_OPENED,8,3                     ; @OPENED
	.comm	_CLOSING,8,3                    ; @CLOSING
	.comm	_CLOSED,8,3                     ; @CLOSED
.subsections_via_symbols
