	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EmuScanEnd16_rot
_EmuScanEnd16_rot:                      ## @EmuScanEnd16_rot
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	notl	%eax
	testb	$3, %al
	jne	LBB0_4
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	movq	_g_screen_ptr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_rot_buff@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%edx
	movq	_Pico@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	testb	$1, 48(%rax)
	jne	LBB0_3
## %bb.2:
	movq	_PicoOpt@GOTPCREL(%rip), %r8
	movq	_POPT_EN_SOFTSCALE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%eax, (%r8)
	sete	%cl
LBB0_3:
	callq	_rotated_blit16
	popq	%rbp
LBB0_4:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_screen_ptr,4,2               ## @g_screen_ptr
	.comm	_rot_buff,4,2                   ## @rot_buff
	.comm	_Pico,8,3                       ## @Pico
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_EN_SOFTSCALE,4,2          ## @POPT_EN_SOFTSCALE
	.no_dead_strip	_EmuScanEnd16_rot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EmuScanEnd16_rot
_EmuScanEnd16_rot:                      ; @EmuScanEnd16_rot
	.cfi_startproc
; %bb.0:
	mvn	w9, w0
	tst	w9, #0x3
	b.ne	LBB0_5
; %bb.1:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
Lloh0:
	adrp	x9, _g_screen_ptr@GOTPAGE
Lloh1:
	ldr	x9, [x9, _g_screen_ptr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
Lloh3:
	adrp	x9, _rot_buff@GOTPAGE
Lloh4:
	ldr	x9, [x9, _rot_buff@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	w2, w8, #1
Lloh6:
	adrp	x8, _Pico@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldrb	w8, [x8, #48]
	tbnz	w8, #0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _PicoOpt@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PicoOpt@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _POPT_EN_SOFTSCALE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _POPT_EN_SOFTSCALE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w3, eq
	b	LBB0_4
LBB0_3:
	mov	w3, #0
LBB0_4:
	bl	_rotated_blit16
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
LBB0_5:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_screen_ptr,4,2               ; @g_screen_ptr
	.comm	_rot_buff,4,2                   ; @rot_buff
	.comm	_Pico,8,3                       ; @Pico
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_EN_SOFTSCALE,4,2          ; @POPT_EN_SOFTSCALE
	.no_dead_strip	_EmuScanEnd16_rot
.subsections_via_symbols
