	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_pointer_device_state
_sdl_pointer_device_state:              ## @sdl_pointer_device_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -80(%rbp)
	movl	4(%rdi), %edx
	movl	8(%rdi), %esi
	leaq	-52(%rbp), %r15
	movq	%r15, (%rsp)
	leaq	-112(%rbp), %rdi
	leaq	-64(%rbp), %r12
	leaq	-60(%rbp), %r14
	leaq	-56(%rbp), %rbx
	movq	%r12, %rcx
	movq	%r14, %r8
	movq	%rbx, %r9
	callq	_video_driver_translate_coord_viewport_wrap
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmoveq	%r14, %r15
	cmoveq	%r12, %rbx
	movl	(%rbx), %eax
	cmpl	$-32767, %eax                   ## imm = 0x8001
	jl	LBB0_6
## %bb.2:
	movl	(%r15), %ecx
	cmpl	$-32767, %ecx                   ## imm = 0x8001
	jl	LBB0_6
## %bb.3:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	cmpl	$130, %edx
	je	LBB0_8
## %bb.4:
	cmpl	$129, %edx
	je	LBB0_7
## %bb.5:
	movl	%ecx, %eax
	cmpl	$128, %edx
	je	LBB0_7
LBB0_6:
	xorl	%eax, %eax
LBB0_7:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r13), %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sdl_pointer_device_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_pointer_device_state
_sdl_pointer_device_state:              ; @sdl_pointer_device_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	stp	xzr, xzr, [sp]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp, #48]
	ldp	w2, w1, [x0, #4]
	add	x22, sp, #12
	add	x24, sp, #8
	add	x23, sp, #4
	mov	x25, sp
	add	x0, sp, #16
	add	x3, sp, #12
	add	x4, sp, #8
	add	x5, sp, #4
	mov	x6, sp
	bl	_video_driver_translate_coord_viewport_wrap
	cbz	w0, LBB0_6
; %bb.1:
	cmp	w21, #0
	csel	x8, x24, x25, eq
	ldr	w8, [x8]
	csel	x9, x22, x23, eq
	ldr	w9, [x9]
	mov	w10, #-32767
	cmp	w9, w10
	ccmp	w8, w10, #8, ge
	b.ge	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	cmp	w19, #130
	b.eq	LBB0_5
; %bb.4:
	cmp	w19, #128
	csel	w8, wzr, w8, ne
	cmp	w19, #129
	csel	w0, w9, w8, eq
	b	LBB0_6
LBB0_5:
	ldr	w0, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sdl_pointer_device_state
.subsections_via_symbols
