	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cocoa_input_poll
_cocoa_input_poll:                      ## @cocoa_input_poll
	.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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_get_backing_scale_factor
	testq	%r15, %r15
	je	LBB0_9
## %bb.1:
	cmpq	$0, (%r15)
	je	LBB0_4
## %bb.2:
	movaps	%xmm0, %xmm2
	movl	$12, %ebx
	xorl	%r12d, %r12d
	leaq	-96(%rbp), %r14
	movss	%xmm0, -36(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movq	40(%r15), %rax
	leaq	(%rax,%rbx), %rcx
	movss	-12(%rax,%rbx), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	movss	%xmm0, -12(%rax,%rbx)
	movss	-8(%rax,%rbx), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm1
	movss	%xmm1, -8(%rax,%rbx)
	leaq	8(%rax,%rbx), %rsi
	leaq	(%rax,%rbx), %rdx
	addq	$4, %rdx
	leaq	(%rax,%rbx), %r8
	addq	$-4, %r8
	movq	%r14, %rdi
	callq	_video_driver_translate_coord_viewport_wrap
	movss	-36(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	incq	%r12
	addq	$24, %rbx
	cmpq	(%r15), %r12
	jb	LBB0_3
LBB0_4:
	movq	32(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	*(%rcx)
LBB0_6:
	movq	24(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	*(%rcx)
LBB0_8:
	movl	8(%r15), %eax
	movl	16(%r15), %ecx
	movl	%ecx, 20(%r15)
	movl	%eax, 12(%r15)
LBB0_9:
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cocoa_input_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cocoa_input_poll
_cocoa_input_poll:                      ; @cocoa_input_poll
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	bl	_get_backing_scale_factor
	cbz	x19, LBB0_9
; %bb.1:
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	fmov	s8, s0
	mov	x20, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x8, [x19, #40]
	add	x8, x8, x20
	ldp	s0, s1, [x8]
	fmul	s0, s8, s0
	str	s0, [x8]
	fmul	s1, s8, s1
	str	s1, [x8, #4]
	add	x1, x8, #20
	add	x2, x8, #16
	add	x3, x8, #12
	add	x4, x8, #8
	mov	x0, sp
	bl	_video_driver_translate_coord_viewport_wrap
	add	x21, x21, #1
	ldr	x8, [x19]
	add	x20, x20, #24
	cmp	x21, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x8]
	blr	x8
LBB0_6:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x8]
	blr	x8
LBB0_8:
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	ldr	w8, [x19, #8]
	str	w8, [x19, #12]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cocoa_input_poll
.subsections_via_symbols
