	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_pico_ptr
_draw_pico_ptr:                         ## @draw_pico_ptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pico_inp_mode@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	movq	_currentConfig@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RT_16BIT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_8
## %bb.2:
	movq	_g_screen_ptr@GOTPCREL(%rip), %r8
	movq	_pico_pen_x@GOTPCREL(%rip), %rsi
	movq	_PICO_PEN_ADJUST_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pico_pen_y@GOTPCREL(%rip), %r9
	movq	_PICO_PEN_ADJUST_Y@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_Pico@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	addl	(%rsi), %eax
	testb	$1, 48(%rdi)
	jne	LBB0_4
## %bb.3:
	movq	_PicoOpt@GOTPCREL(%rip), %r10
	movq	_POPT_DIS_32C_BORDER@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	leal	32(%rax), %esi
	testl	%edi, (%r10)
	cmovnel	%eax, %esi
	movl	%esi, %eax
LBB0_4:
	addl	(%r9), %edx
	movq	(%r8), %rsi
	movq	_EOPT_WIZ_TEAR_FIX@GOTPCREL(%rip), %rdi
	testl	%ecx, (%rdi)
	je	LBB0_6
## %bb.5:
	movl	$319, %ecx                      ## imm = 0x13F
	subl	%eax, %ecx
	imull	$240, %ecx, %eax
	addl	%edx, %eax
	movl	$240, %ecx
	jmp	LBB0_7
LBB0_6:
	leal	(%rdx,%rdx,4), %ecx
	shll	$6, %ecx
	addl	%ecx, %eax
	movl	$320, %ecx                      ## imm = 0x140
LBB0_7:
	cltq
	leaq	(%rsi,%rax,2), %rdx
	notw	(%rsi,%rax,2)
	leal	-1(%rcx), %eax
	notw	(%rdx,%rax,2)
	movl	%ecx, %eax
	notw	(%rdx,%rax,2)
	movl	%ecx, %eax
	orl	$1, %eax
	notw	(%rdx,%rax,2)
	addl	%ecx, %ecx
	notw	(%rdx,%rcx,2)
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_screen_ptr,8,3               ## @g_screen_ptr
	.comm	_pico_inp_mode,8,3              ## @pico_inp_mode
	.comm	_currentConfig,4,2              ## @currentConfig
	.comm	_RT_16BIT,4,2                   ## @RT_16BIT
	.comm	_pico_pen_x,4,2                 ## @pico_pen_x
	.comm	_PICO_PEN_ADJUST_X,4,2          ## @PICO_PEN_ADJUST_X
	.comm	_pico_pen_y,4,2                 ## @pico_pen_y
	.comm	_PICO_PEN_ADJUST_Y,4,2          ## @PICO_PEN_ADJUST_Y
	.comm	_Pico,8,3                       ## @Pico
	.comm	_PicoOpt,4,2                    ## @PicoOpt
	.comm	_POPT_DIS_32C_BORDER,4,2        ## @POPT_DIS_32C_BORDER
	.comm	_EOPT_WIZ_TEAR_FIX,4,2          ## @EOPT_WIZ_TEAR_FIX
	.no_dead_strip	_draw_pico_ptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_pico_ptr
_draw_pico_ptr:                         ; @draw_pico_ptr
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pico_inp_mode@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pico_inp_mode@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _currentConfig@GOTPAGE
Lloh4:
	ldr	x8, [x8, _currentConfig@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _RT_16BIT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RT_16BIT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_5
; %bb.2:
Lloh9:
	adrp	x9, _g_screen_ptr@GOTPAGE
Lloh10:
	ldr	x9, [x9, _g_screen_ptr@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
Lloh12:
	adrp	x10, _pico_pen_x@GOTPAGE
Lloh13:
	ldr	x10, [x10, _pico_pen_x@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _PICO_PEN_ADJUST_X@GOTPAGE
Lloh16:
	ldr	x11, [x11, _PICO_PEN_ADJUST_X@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	add	w10, w11, w10
Lloh18:
	adrp	x11, _pico_pen_y@GOTPAGE
Lloh19:
	ldr	x11, [x11, _pico_pen_y@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _PICO_PEN_ADJUST_Y@GOTPAGE
Lloh22:
	ldr	x12, [x12, _PICO_PEN_ADJUST_Y@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	add	w11, w12, w11
Lloh24:
	adrp	x12, _Pico@GOTPAGE
Lloh25:
	ldr	x12, [x12, _Pico@GOTPAGEOFF]
Lloh26:
	ldr	x12, [x12]
	ldrb	w12, [x12, #48]
	tbnz	w12, #0, LBB0_4
; %bb.3:
Lloh27:
	adrp	x12, _PicoOpt@GOTPAGE
Lloh28:
	ldr	x12, [x12, _PicoOpt@GOTPAGEOFF]
Lloh29:
	ldr	w12, [x12]
Lloh30:
	adrp	x13, _POPT_DIS_32C_BORDER@GOTPAGE
Lloh31:
	ldr	x13, [x13, _POPT_DIS_32C_BORDER@GOTPAGEOFF]
Lloh32:
	ldr	w13, [x13]
	add	w14, w10, #32
	tst	w13, w12
	csel	w10, w14, w10, eq
LBB0_4:
Lloh33:
	adrp	x12, _EOPT_WIZ_TEAR_FIX@GOTPAGE
Lloh34:
	ldr	x12, [x12, _EOPT_WIZ_TEAR_FIX@GOTPAGEOFF]
Lloh35:
	ldr	w12, [x12]
	mov	w13, #320
	madd	w14, w11, w13, w10
	mov	w15, #319
	sub	w10, w15, w10
	mov	w15, #240
	madd	w10, w10, w15, w11
	tst	w12, w8
	csel	w8, w14, w10, eq
	csel	w10, w13, w15, eq
	add	x8, x9, w8, sxtw #1
	ldrh	w9, [x8]
	mvn	w9, w9
	sub	w11, w10, #1
	lsl	x11, x11, #1
	ldrh	w12, [x8, x11]
	mvn	w12, w12
	strh	w12, [x8, x11]
	lsl	x11, x10, #1
	ldrh	w12, [x8, x11]
	strh	w9, [x8]
	mvn	w9, w12
	strh	w9, [x8, x11]
	orr	w9, w10, #0x1
	lsl	x9, x9, #1
	ldrh	w11, [x8, x9]
	mvn	w11, w11
	strh	w11, [x8, x9]
	lsl	w9, w10, #1
	lsl	x9, x9, #1
	ldrh	w10, [x8, x9]
	mvn	w10, w10
	strh	w10, [x8, x9]
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_g_screen_ptr,8,3               ; @g_screen_ptr
	.comm	_pico_inp_mode,8,3              ; @pico_inp_mode
	.comm	_currentConfig,4,2              ; @currentConfig
	.comm	_RT_16BIT,4,2                   ; @RT_16BIT
	.comm	_pico_pen_x,4,2                 ; @pico_pen_x
	.comm	_PICO_PEN_ADJUST_X,4,2          ; @PICO_PEN_ADJUST_X
	.comm	_pico_pen_y,4,2                 ; @pico_pen_y
	.comm	_PICO_PEN_ADJUST_Y,4,2          ; @PICO_PEN_ADJUST_Y
	.comm	_Pico,8,3                       ; @Pico
	.comm	_PicoOpt,4,2                    ; @PicoOpt
	.comm	_POPT_DIS_32C_BORDER,4,2        ; @POPT_DIS_32C_BORDER
	.comm	_EOPT_WIZ_TEAR_FIX,4,2          ; @EOPT_WIZ_TEAR_FIX
	.no_dead_strip	_draw_pico_ptr
.subsections_via_symbols
