	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdl_input_state
_sdl_input_state:                       ## @sdl_input_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	16(%rbp), %r11d
	movq	_INPUT_DEVICE_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leal	-128(%r8), %eax
	cmpl	$6, %eax
	ja	LBB0_8
## %bb.1:
	movl	%r9d, %r15d
	movl	%ecx, %ebx
	movq	%rdx, %r9
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	testl	%r15d, %r15d
	jne	LBB0_8
## %bb.14:
	xorl	%ecx, %ecx
	cmpl	$134, %r8d
	sete	%cl
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%r11d, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdl_pointer_device_state       ## TAILCALL
LBB0_12:
	movq	%r14, %rdi
	movl	%r11d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdl_mouse_device_state         ## TAILCALL
LBB0_18:
	movq	%r14, %rdi
	movl	%r11d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sdl_lightgun_device_state      ## TAILCALL
LBB0_15:
	movq	_RETROK_LAST@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	cmpl	%r11d, (%rax)
	jbe	LBB0_17
## %bb.16:
	movl	%r11d, %edi
	callq	_sdl_key_pressed
	xorl	%r13d, %r13d
	testl	%eax, %eax
	setne	%r13b
	jmp	LBB0_17
LBB0_2:
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rax
	cmpl	%r11d, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.4:
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%r9,%rax,8), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	leaq	-44(%rbp), %r9
	callq	_sdl_joypad_device_state
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	orl	%edx, %r13d
	incl	%r15d
	cmpl	(%rax), %r15d
	jb	LBB0_5
	jmp	LBB0_17
LBB0_9:
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r9,%rax,8), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.10:
	movq	%r14, %r13
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	%r11d, %ecx
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movl	%r11d, %r14d
	callq	_sdl_analog_pressed
	movl	%r14d, %r8d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	(%rcx), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%r14,%rax,8), %r9
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_joypad_analog            ## TAILCALL
LBB0_6:
	movq	_RARCH_BIND_LIST_END@GOTPCREL(%rip), %rax
	cmpl	%r11d, (%rax)
	jbe	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	movq	(%r9,%rax,8), %rdx
	leaq	-44(%rbp), %r9
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%ebx, %ecx
	movl	%r11d, %r8d
	callq	_sdl_joypad_device_state
	movl	$1, %r13d
	testl	%eax, %eax
	jne	LBB0_17
LBB0_8:
	xorl	%r13d, %r13d
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_12
	.long	L0_0_set_18
	.long	L0_0_set_15
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_INPUT_DEVICE_TYPE_NONE,4,2     ## @INPUT_DEVICE_TYPE_NONE
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.comm	_RARCH_BIND_LIST_END,4,2        ## @RARCH_BIND_LIST_END
	.comm	_RETROK_LAST,4,2                ## @RETROK_LAST
	.no_dead_strip	_sdl_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_input_state
_sdl_input_state:                       ; @sdl_input_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _INPUT_DEVICE_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INPUT_DEVICE_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	sub	w8, w4, #128
	cmp	w8, #6
	b.hi	LBB0_18
; %bb.1:
	mov	x23, x6
	mov	x25, x5
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	cbnz	w25, LBB0_18
; %bb.3:
	cmp	w4, #134
	cset	w3, eq
	mov	x0, x19
	mov	w1, #0
	mov	x2, x23
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_sdl_pointer_device_state
LBB0_4:
	mov	x0, x19
	mov	x1, x23
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_sdl_mouse_device_state
LBB0_5:
	mov	x0, x19
	mov	x1, x23
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_sdl_lightgun_device_state
LBB0_6:
Lloh5:
	adrp	x8, _RETROK_LAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RETROK_LAST@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ls	LBB0_18
; %bb.7:
	mov	x0, x23
	bl	_sdl_key_pressed
	cmp	w0, #0
	cset	w24, ne
	b	LBB0_19
LBB0_8:
Lloh8:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_15
; %bb.9:
Lloh11:
	adrp	x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh12:
	ldr	x25, [x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_18
; %bb.10:
	mov	w24, #0
	mov	w23, #0
	mov	w26, #1
	mov	w27, w20
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x22, x27, lsl #3]
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	mov	x4, x23
	bl	_sdl_joypad_device_state
	lsl	w8, w26, w23
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w24, w8, w24
	add	w23, w23, #1
	ldr	w8, [x25]
	cmp	w23, w8
	b.lo	LBB0_11
	b	LBB0_19
LBB0_12:
	ldr	x1, [x22, w20, uxtw #3]
	cbz	x1, LBB0_18
; %bb.13:
	mov	x0, x19
	mov	x2, x25
	mov	x3, x23
	bl	_sdl_analog_pressed
	mov	x24, x0
	cbnz	w0, LBB0_19
; %bb.14:
	mov	w8, w20
	ldr	w0, [x19]
	ldr	x5, [x22, x8, lsl #3]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	mov	x4, x23
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_input_joypad_analog
LBB0_15:
Lloh13:
	adrp	x8, _RARCH_BIND_LIST_END@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RARCH_BIND_LIST_END@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ls	LBB0_18
; %bb.16:
	ldr	x2, [x22, w20, uxtw #3]
	add	x5, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x3, x20
	mov	x4, x23
	bl	_sdl_joypad_device_state
	cbz	w0, LBB0_18
; %bb.17:
	mov	w24, #1
	b	LBB0_19
LBB0_18:
	mov	w24, #0
LBB0_19:
	mov	x0, x24
	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	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_INPUT_DEVICE_TYPE_NONE,4,2     ; @INPUT_DEVICE_TYPE_NONE
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.comm	_RARCH_BIND_LIST_END,4,2        ; @RARCH_BIND_LIST_END
	.comm	_RETROK_LAST,4,2                ; @RETROK_LAST
	.no_dead_strip	_sdl_input_state
.subsections_via_symbols
