	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_input_free
_sdl_input_free:                        ## @sdl_input_free
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-20(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_SDL_PollEvent
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	*(%rcx)
LBB0_5:
	movq	%r14, %rdi
	callq	_free
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
LBB0_6:
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDL_FIRSTEVENT,4,2             ## @SDL_FIRSTEVENT
	.comm	_SDL_LASTEVENT,4,2              ## @SDL_LASTEVENT
	.no_dead_strip	_sdl_input_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_input_free
_sdl_input_free:                        ; @sdl_input_free
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_6
; %bb.1:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #12
	bl	_SDL_PollEvent
	cbnz	x0, LBB0_2
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x8]
	blr	x8
LBB0_5:
	mov	x0, x19
	bl	_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
LBB0_6:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_SDL_FIRSTEVENT,4,2             ; @SDL_FIRSTEVENT
	.comm	_SDL_LASTEVENT,4,2              ; @SDL_LASTEVENT
	.no_dead_strip	_sdl_input_free
.subsections_via_symbols
