	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function dos_input_state
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dos_input_state:                       ## @dos_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
	xorl	%ebx, %ebx
	testl	%r8d, %r8d
	je	LBB0_1
LBB0_29:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rcx, %r15
	movl	24(%rbp), %r12d
	cmpl	$128, %r9d
	je	LBB0_30
## %bb.2:
	cmpl	$129, %r9d
	jne	LBB0_28
## %bb.3:
	movq	%rsi, %r10
	movl	%r10d, -60(%rbp)                ## 4-byte Spill
	shrq	$32, %r10
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r10, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_20
## %bb.4:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movl	$0, %ebx
	je	LBB0_29
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r12d, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %r15
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r12
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	%rax, %r12
	jae	LBB0_29
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r13
	movq	(%r15), %rcx
	movl	4(%rcx,%r12,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %esi
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	4(%rdx,%r12,8), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rcx,%r12,8), %r15d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r15d
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rdx,%r12,8), %r15d
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rdx, %r14
	cmpl	%eax, %esi
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rax
	movl	%r10d, %edi
	callq	*8(%rax)
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r12d, %ebx
	movq	%r14, %rdx
	movq	%r13, %r15
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rdi), %rax
	movl	%r10d, %edi
	movl	%r15d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	ucomiss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %r15
	movq	(%r13), %rdi
	movl	%r12d, %esi
	callq	_dos_keyboard_port_input_pressed
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	btsl	%r12d, %ebx
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	jmp	LBB0_18
LBB0_30:
	movq	(%r15), %rdi
	movl	%r12d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dos_keyboard_port_input_pressed ## TAILCALL
LBB0_20:
	movq	(%r15), %rbx
	movl	%r12d, %eax
	movl	4(%rbx,%rax,8), %esi
	movq	_NO_BTN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %esi
	jne	LBB0_22
## %bb.21:
	movl	4(%rdx,%rax,8), %esi
LBB0_22:
	movl	(%rbx,%rax,8), %r14d
	movq	_AXIS_NONE@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %r14d
	jne	LBB0_24
## %bb.23:
	movl	(%rdx,%rax,8), %r14d
LBB0_24:
	cmpl	%ecx, %esi
	je	LBB0_26
## %bb.25:
	movq	(%rdi), %rax
	movl	%r10d, %edi
	callq	*8(%rax)
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_29
LBB0_26:
	movq	(%rdi), %rax
	movl	%r10d, %edi
	movl	%r14d, %esi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movl	$1, %ebx
	ucomiss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	ja	LBB0_29
## %bb.27:
	movq	(%r15), %rdi
	movl	%r12d, %esi
	callq	_dos_keyboard_port_input_pressed
	testl	%eax, %eax
	jne	LBB0_29
LBB0_28:
	xorl	%ebx, %ebx
	jmp	LBB0_29
	.cfi_endproc
                                        ## -- End function
	.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	_NO_BTN,4,2                     ## @NO_BTN
	.comm	_AXIS_NONE,4,2                  ## @AXIS_NONE
	.no_dead_strip	_dos_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dos_input_state
_dos_input_state:                       ; @dos_input_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	cbz	w4, LBB0_3
LBB0_1:
	mov	w23, #0
LBB0_2:
	mov	x0, 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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x23, x7
	mov	x19, x3
	cmp	w5, #128
	b.eq	LBB0_18
; %bb.4:
	cmp	w5, #129
	b.ne	LBB0_1
; %bb.5:
	mov	x22, x2
	mov	x20, x0
	fmov	s8, w1
	lsr	x21, x1, #32
Lloh0:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_19
; %bb.6:
Lloh3:
	adrp	x26, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_1
; %bb.7:
	mov	x27, #0
	mov	x24, #0
	mov	w23, #0
	movi.2s	v9, #56, lsl #24
	mov	w28, #1
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbz	w0, LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	lsl	w8, w28, w24
	orr	w23, w8, w23
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x24, x24, #1
	ldr	w8, [x26]
	add	x27, x27, #8
	cmp	x24, x8
	b.hs	LBB0_2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	add	x8, x9, x27
	ldr	w1, [x8, #4]
Lloh5:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x22, x27
	ldr	w1, [x10, #4]
LBB0_13:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	w25, [x9, x27]
Lloh8:
	adrp	x9, _AXIS_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AXIS_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w25, w9
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w25, [x22, x27]
LBB0_15:                                ;   in Loop: Header=BB0_11 Depth=1
	cmp	w1, w8
	b.ne	LBB0_8
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x25
	blr	x8
	bl	_abs
	scvtf	s0, x0
	fmul	s0, s0, s9
	fcmp	s0, s8
	b.gt	LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x0, [x19]
	mov	x1, x24
	bl	_dos_keyboard_port_input_pressed
	lsl	w8, w28, w24
	orr	w8, w8, w23
	cmp	w0, #0
	csel	w23, w23, w8, eq
	b	LBB0_10
LBB0_18:
	ldr	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
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	b	_dos_keyboard_port_input_pressed
LBB0_19:
	ldr	x9, [x19]
	mov	w10, w23
	add	x8, x9, w23, uxtw #3
	ldr	w1, [x8, #4]
Lloh11:
	adrp	x8, _NO_BTN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NO_BTN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w1, w8
	b.ne	LBB0_21
; %bb.20:
	add	x11, x22, x10, lsl #3
	ldr	w1, [x11, #4]
LBB0_21:
	lsl	x10, x10, #3
	ldr	w24, [x9, x10]
Lloh14:
	adrp	x9, _AXIS_NONE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AXIS_NONE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w24, w9
	b.ne	LBB0_23
; %bb.22:
	ldr	w24, [x22, x10]
LBB0_23:
	cmp	w1, w8
	b.eq	LBB0_25
; %bb.24:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x21
	blr	x8
	cbnz	w0, LBB0_27
LBB0_25:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x21
	mov	x1, x24
	blr	x8
	bl	_abs
	scvtf	s0, x0
	movi.2s	v1, #56, lsl #24
	fmul	s0, s0, s1
	fcmp	s0, s8
	b.gt	LBB0_27
; %bb.26:
	ldr	x0, [x19]
	mov	x1, x23
	bl	_dos_keyboard_port_input_pressed
	cbz	w0, LBB0_1
LBB0_27:
	mov	w23, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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	_NO_BTN,4,2                     ; @NO_BTN
	.comm	_AXIS_NONE,4,2                  ; @AXIS_NONE
	.no_dead_strip	_dos_input_state
.subsections_via_symbols
