	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_state
_input_state:                           ## @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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	_input_driver_axis_threshold@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_configuration_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %ecx
	movq	(%rax,%rcx,8), %r13
	movq	_input_autoconf_binds@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %r14d
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_BSV_MOVIE_IS_PLAYBACK_ON
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_bsv_movie_state_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	-52(%rbp), %rsi
	movl	$2, %edx
	callq	_intfstream_read
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.2:
	movl	-52(%rbp), %edi
	callq	_swap_if_big16
	movl	%eax, %r12d
	jmp	LBB0_15
LBB0_3:
	movq	_bsv_movie_state@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_4:
	shlq	$32, %rbx
	orq	%rbx, %r14
	movq	_RETRO_DEVICE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_current_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_current_input_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_libretro_input_binds@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rsi
	movq	%r14, %rdx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%r15d, %r9d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	pushq	%r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	*(%rax)
	addq	$16, %rsp
	movl	%eax, %r13d
	movq	_input_driver_flushing_input@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_input_driver_block_libretro_input@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jne	LBB0_13
## %bb.5:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	_RETRO_DEVICE_JOYPAD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_12
## %bb.6:
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_12
## %bb.7:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.8:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	cmpl	(%r14), %ebx
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%ebx, %r8d
	movl	$1, %r9d
	callq	_input_state_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	btsl	%ebx, %r12d
	movl	%r12d, -48(%rbp)
	jmp	LBB0_11
LBB0_12:
	movl	%r13d, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	xorl	%r9d, %r9d
	callq	_input_state_device
	movl	%eax, %r12d
LBB0_13:
	xorl	%eax, %eax
	callq	_BSV_MOVIE_IS_PLAYBACK_OFF
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	%r12d, %edi
	callq	_swap_if_big16
	movl	%eax, -48(%rbp)
	movq	_bsv_movie_state_handle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$2, %edx
	callq	_intfstream_write
	movl	-48(%rbp), %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_input_driver_axis_threshold,4,2 ## @input_driver_axis_threshold
	.comm	_configuration_settings,8,3     ## @configuration_settings
	.comm	_input_autoconf_binds,8,3       ## @input_autoconf_binds
	.comm	_bsv_movie_state_handle,8,3     ## @bsv_movie_state_handle
	.comm	_bsv_movie_state,4,2            ## @bsv_movie_state
	.comm	_RETRO_DEVICE_MASK,4,2          ## @RETRO_DEVICE_MASK
	.comm	_current_input,8,3              ## @current_input
	.comm	_current_input_data,4,2         ## @current_input_data
	.comm	_libretro_input_binds,4,2       ## @libretro_input_binds
	.comm	_input_driver_flushing_input,4,2 ## @input_driver_flushing_input
	.comm	_input_driver_block_libretro_input,4,2 ## @input_driver_block_libretro_input
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ## @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.no_dead_strip	_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function input_state
_input_state:                           ; @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
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _input_driver_axis_threshold@GOTPAGE
Lloh1:
	ldr	x8, [x8, _input_driver_axis_threshold@GOTPAGEOFF]
Lloh2:
	adrp	x9, _configuration_settings@GOTPAGE
Lloh3:
	ldr	x9, [x9, _configuration_settings@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	x9, [x9]
	ldr	x23, [x9, w0, uxtw #3]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _input_autoconf_binds@GOTPAGE
Lloh7:
	ldr	x8, [x8, _input_autoconf_binds@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w24, [x8, x23, lsl #2]
	bl	_BSV_MOVIE_IS_PLAYBACK_ON
Lloh9:
	adrp	x25, _bsv_movie_state_handle@GOTPAGE
Lloh10:
	ldr	x25, [x25, _bsv_movie_state_handle@GOTPAGEOFF]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x25]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #2
	bl	_intfstream_read
	cmp	w0, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	w0, [sp, #8]
	bl	_swap_if_big16
	mov	x21, x0
	b	LBB0_16
LBB0_3:
Lloh11:
	adrp	x8, _bsv_movie_state@GOTPAGE
Lloh12:
	ldr	x8, [x8, _bsv_movie_state@GOTPAGEOFF]
	mov	w9, #1
Lloh13:
	str	w9, [x8]
LBB0_4:
	bfi	x24, x26, #32, #32
Lloh14:
	adrp	x8, _RETRO_DEVICE_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RETRO_DEVICE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w22, w8, w22
Lloh17:
	adrp	x8, _current_input@GOTPAGE
Lloh18:
	ldr	x8, [x8, _current_input@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _current_input_data@GOTPAGE
Lloh21:
	ldr	x9, [x9, _current_input_data@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x9]
Lloh23:
	adrp	x9, _libretro_input_binds@GOTPAGE
Lloh24:
	ldr	x9, [x9, _libretro_input_binds@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x9]
	mov	x1, x23
	mov	x2, x24
	mov	x4, x20
	mov	x5, x22
	mov	x6, x19
	mov	x7, x21
	blr	x8
Lloh26:
	adrp	x8, _input_driver_flushing_input@GOTPAGE
Lloh27:
	ldr	x8, [x8, _input_driver_flushing_input@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _input_driver_block_libretro_input@GOTPAGE
Lloh30:
	ldr	x9, [x9, _input_driver_block_libretro_input@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cbz	w8, LBB0_6
LBB0_5:
	mov	w21, #0
	bl	_BSV_MOVIE_IS_PLAYBACK_OFF
	cbnz	x0, LBB0_15
	b	LBB0_16
LBB0_6:
	mov	x23, x0
Lloh32:
	adrp	x8, _RETRO_DEVICE_JOYPAD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _RETRO_DEVICE_JOYPAD@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_13
; %bb.7:
Lloh35:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_13
; %bb.8:
Lloh38:
	adrp	x26, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh39:
	ldr	x26, [x26, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_5
; %bb.9:
	mov	w21, #0
	mov	w24, #0
	mov	w27, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w24, w24, #1
	ldr	w8, [x26]
	cmp	w24, w8
	b.hs	LBB0_14
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x24
	mov	w5, #1
	bl	_input_state_device
	cbz	w0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	lsl	w8, w27, w24
	orr	w21, w21, w8
	str	w21, [sp, #12]
	b	LBB0_10
LBB0_13:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x21
	mov	w5, #0
	bl	_input_state_device
	mov	x21, x0
LBB0_14:
	bl	_BSV_MOVIE_IS_PLAYBACK_OFF
	cbz	x0, LBB0_16
LBB0_15:
	mov	x0, x21
	bl	_swap_if_big16
	str	w0, [sp, #12]
	ldr	x8, [x25]
	ldr	w0, [x8]
	add	x1, sp, #12
	mov	w2, #2
	bl	_intfstream_write
	ldr	w21, [sp, #12]
LBB0_16:
	mov	x0, x21
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_input_driver_axis_threshold,4,2 ; @input_driver_axis_threshold
	.comm	_configuration_settings,8,3     ; @configuration_settings
	.comm	_input_autoconf_binds,8,3       ; @input_autoconf_binds
	.comm	_bsv_movie_state_handle,8,3     ; @bsv_movie_state_handle
	.comm	_bsv_movie_state,4,2            ; @bsv_movie_state
	.comm	_RETRO_DEVICE_MASK,4,2          ; @RETRO_DEVICE_MASK
	.comm	_current_input,8,3              ; @current_input
	.comm	_current_input_data,4,2         ; @current_input_data
	.comm	_libretro_input_binds,4,2       ; @libretro_input_binds
	.comm	_input_driver_flushing_input,4,2 ; @input_driver_flushing_input
	.comm	_input_driver_block_libretro_input,4,2 ; @input_driver_block_libretro_input
	.comm	_RETRO_DEVICE_JOYPAD,4,2        ; @RETRO_DEVICE_JOYPAD
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.no_dead_strip	_input_state
.subsections_via_symbols
