	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function in_sdl_update
_in_sdl_update:                         ## @in_sdl_update
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_collect_events
	movq	_SDLK_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEYBITS_WORD_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r8d, %eax
	cltd
	idivl	%esi
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	xorl	%edi, %edi
	movq	_IN_BINDTYPE_COUNT@GOTPCREL(%rip), %rcx
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SDLK_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEYBITS_WORD_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdi), %rbx
	movl	%r8d, %eax
	cltd
	idivl	%esi
	cltq
	cmpq	%rax, %rdi
	movq	%rbx, %rdi
	jge	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_7 Depth 3
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %eax
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %eax
	sarl	%eax
	cmpl	$1, %edx
	jbe	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_7 Depth 3
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testb	$1, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_KEYBITS_WORD_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	imull	-56(%rbp), %r13d                ## 4-byte Folded Reload
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%r13d, %edi
	movl	%ebx, %esi
	movq	%rcx, %r14
	callq	_IN_BIND_OFFS
	movq	%r14, %rcx
	movl	(%r15,%rax,4), %eax
	orl	%eax, (%r12,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_11:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDLK_LAST,4,2                  ## @SDLK_LAST
	.comm	_KEYBITS_WORD_BITS,4,2          ## @KEYBITS_WORD_BITS
	.comm	_IN_BINDTYPE_COUNT,4,2          ## @IN_BINDTYPE_COUNT
	.no_dead_strip	_in_sdl_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function in_sdl_update
_in_sdl_update:                         ; @in_sdl_update
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x1, #0
	mov	x2, #0
	bl	_collect_events
Lloh0:
	adrp	x8, _SDLK_LAST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDLK_LAST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x25, _KEYBITS_WORD_BITS@GOTPAGE
Lloh4:
	ldr	x25, [x25, _KEYBITS_WORD_BITS@GOTPAGEOFF]
	ldr	w9, [x25]
	sdiv	w10, w8, w9
	tbnz	w10, #31, LBB0_11
; %bb.1:
	mov	x26, #0
Lloh5:
	adrp	x27, _IN_BINDTYPE_COUNT@GOTPAGE
Lloh6:
	ldr	x27, [x27, _IN_BINDTYPE_COUNT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh7:
	adrp	x8, _SDLK_LAST@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SDLK_LAST@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldr	w9, [x25]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sdiv	w10, w8, w9
	cmp	x26, w10, sxtw
	add	x26, x26, #1
	b.ge	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_10 Depth 3
	ldr	x10, [x21]
	ldr	w28, [x10, x26, lsl #2]
	cbz	w28, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #0
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w24, w24, #1
	asr	w8, w28, #1
	cmp	w28, #1
	mov	x28, x8
	b.ls	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_10 Depth 3
	tbz	w28, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x22, #0
	ldr	w8, [x25]
	madd	w23, w8, w26, w24
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x23
	mov	x1, x22
	bl	_IN_BIND_OFFS
	ldr	w8, [x20, x0, lsl #2]
	lsl	x9, x22, #2
	ldr	w10, [x19, x9]
	orr	w8, w10, w8
	str	w8, [x19, x9]
	add	x22, x22, #1
	ldrsw	x8, [x27]
	cmp	x22, x8
	b.lt	LBB0_10
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SDLK_LAST,4,2                  ; @SDLK_LAST
	.comm	_KEYBITS_WORD_BITS,4,2          ; @KEYBITS_WORD_BITS
	.comm	_IN_BINDTYPE_COUNT,4,2          ; @IN_BINDTYPE_COUNT
	.no_dead_strip	_in_sdl_update
.subsections_via_symbols
