	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestSpriteWindow               ## -- Begin function TestSpriteWindow
	.p2align	4, 0x90
_TestSpriteWindow:                      ## @TestSpriteWindow
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_vdp2width@GOTPCREL(%rip), %rax
	imull	(%rax), %edx
	addl	%esi, %edx
	xorl	%eax, %eax
	cmpl	$360447, %edx                   ## imm = 0x57FFF
	jg	LBB0_6
## %bb.1:
	movl	$3, %eax
	testb	$32, %dil
	je	LBB0_6
## %bb.2:
	movq	_sprite_window_mask@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edx, %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	$0, %eax
	testb	$16, %dil
	jne	LBB0_3
## %bb.4:
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_5
LBB0_3:
	testl	%ecx, %ecx
	je	LBB0_6
LBB0_5:
	movl	$1, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vdp2width,4,2                  ## @vdp2width
	.comm	_sprite_window_mask,8,3         ## @sprite_window_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TestSpriteWindow               ; -- Begin function TestSpriteWindow
	.p2align	2
_TestSpriteWindow:                      ; @TestSpriteWindow
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _vdp2width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vdp2width@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	madd	w8, w8, w2, w1
	cmp	w8, #88, lsl #12                ; =360448
	b.lt	LBB0_2
LBB0_1:
	mov	w0, #0
	ret
LBB0_2:
	tbnz	w0, #5, LBB0_4
; %bb.3:
	mov	w0, #3
	ret
LBB0_4:
Lloh3:
	adrp	x9, _sprite_window_mask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sprite_window_mask@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	w8, [x9, w8, sxtw #2]
	tbnz	w0, #4, LBB0_6
; %bb.5:
	cbnz	w8, LBB0_1
	b	LBB0_7
LBB0_6:
	cbz	w8, LBB0_1
LBB0_7:
	mov	w0, #1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_vdp2width,4,2                  ; @vdp2width
	.comm	_sprite_window_mask,8,3         ; @sprite_window_mask
.subsections_via_symbols
