	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function sdl_joypad_device_state
LCPI0_0:
	.long	0x38000000                      ## float 3.05175781E-5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_sdl_joypad_device_state:               ## @sdl_joypad_device_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	%r9d, %ebx
	leaq	(%rbx,%rbx,2), %rsi
	movq	(%rcx,%rsi,8), %r13
	movq	_NO_BTN@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	cmpq	%rax, %r13
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	shlq	$4, %rdi
	movq	(%rdx,%rdi), %r13
LBB0_2:
	movq	8(%rcx,%rsi,8), %r12
	movq	_AXIS_NONE@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %r12
	jne	LBB0_4
## %bb.3:
	shlq	$4, %rbx
	movq	8(%rdx,%rbx), %r12
LBB0_4:
	movq	16(%rcx,%rsi,8), %rdi
	movq	_RETROK_LAST@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdi
	jge	LBB0_8
## %bb.5:
	movq	%r8, %rbx
	callq	_sdl_key_pressed
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_INPUT_DEVICE_TYPE_KEYBOARD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_7:
	movq	(%rbx), %rax
LBB0_8:
	movq	%r15, %rbx
	shrq	$32, %rbx
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.9:
	movq	(%r14), %rax
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	*8(%rax)
	testq	%rax, %rax
	jne	LBB0_11
LBB0_10:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	(%r14), %rax
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	*(%rax)
	movl	%eax, %edi
	callq	_abs
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	xorl	%eax, %eax
	ucomiss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	jbe	LBB0_13
LBB0_11:
	movq	_INPUT_DEVICE_TYPE_JOYPAD@GOTPCREL(%rip), %rax
LBB0_12:
	movq	16(%rbp), %rcx
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_BTN,8,3                     ## @NO_BTN
	.comm	_AXIS_NONE,8,3                  ## @AXIS_NONE
	.comm	_RETROK_LAST,8,3                ## @RETROK_LAST
	.comm	_INPUT_DEVICE_TYPE_KEYBOARD,4,2 ## @INPUT_DEVICE_TYPE_KEYBOARD
	.comm	_INPUT_DEVICE_TYPE_JOYPAD,4,2   ## @INPUT_DEVICE_TYPE_JOYPAD
	.no_dead_strip	_sdl_joypad_device_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdl_joypad_device_state
_sdl_joypad_device_state:               ; @sdl_joypad_device_state
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x6
	mov	x21, x1
	mov	x20, x0
	mov	w9, w5
	mov	w8, #24
	umull	x8, w5, w8
	ldr	x22, [x3, x8]
Lloh0:
	adrp	x24, _NO_BTN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NO_BTN@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x22, x8
	b.ne	LBB0_2
; %bb.1:
	lsl	x10, x9, #4
	ldr	x22, [x2, x10]
LBB0_2:
	mov	w10, #24
	madd	x10, x9, x10, x3
	ldr	x23, [x10, #8]
Lloh2:
	adrp	x10, _AXIS_NONE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AXIS_NONE@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x23, x10
	b.ne	LBB0_4
; %bb.3:
	add	x10, x2, x9, lsl #4
	ldr	x23, [x10, #8]
LBB0_4:
	mov	w10, #24
	madd	x9, x9, x10, x3
	ldr	x0, [x9, #16]
Lloh5:
	adrp	x9, _RETROK_LAST@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RETROK_LAST@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_8
; %bb.5:
	bl	_sdl_key_pressed
	cbz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _INPUT_DEVICE_TYPE_KEYBOARD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INPUT_DEVICE_TYPE_KEYBOARD@GOTPAGEOFF]
	b	LBB0_12
LBB0_7:
	ldr	x8, [x24]
LBB0_8:
	lsr	x24, x21, #32
	cmp	x22, x8
	b.eq	LBB0_10
; %bb.9:
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	mov	x0, x24
	mov	x1, x22
	blr	x8
	cbnz	x0, LBB0_11
LBB0_10:
	fmov	s8, w21
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x24
	mov	x1, x23
	blr	x8
	bl	_abs
	scvtf	s0, x0
	movi.2s	v1, #56, lsl #24
	fmul	s0, s0, s1
	fcmp	s0, s8
	b.le	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, _INPUT_DEVICE_TYPE_JOYPAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INPUT_DEVICE_TYPE_JOYPAD@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_14
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_BTN,8,3                     ; @NO_BTN
	.comm	_AXIS_NONE,8,3                  ; @AXIS_NONE
	.comm	_RETROK_LAST,8,3                ; @RETROK_LAST
	.comm	_INPUT_DEVICE_TYPE_KEYBOARD,4,2 ; @INPUT_DEVICE_TYPE_KEYBOARD
	.comm	_INPUT_DEVICE_TYPE_JOYPAD,4,2   ; @INPUT_DEVICE_TYPE_JOYPAD
	.no_dead_strip	_sdl_joypad_device_state
.subsections_via_symbols
