	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _glfwInputJoystickHat
LCPI0_0:
	.long	8                               ## 0x8
	.long	4                               ## 0x4
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__glfwInputJoystickHat
	.p2align	4, 0x90
__glfwInputJoystickHat:                 ## @_glfwInputJoystickHat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movslq	(%rdi), %rcx
	movslq	%esi, %r9
	leaq	(%rcx,%r9,4), %r10
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rbx
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %r8
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	pand	LCPI0_0(%rip), %xmm0
	pxor	%xmm1, %xmm1
	pcmpeqd	%xmm0, %xmm1
	movmskps	%xmm1, %eax
	testb	$8, %al
	movq	%rbx, %rcx
	cmovneq	%r8, %rcx
	movq	16(%rdi), %r11
	movq	(%rcx), %rcx
	movq	%rcx, (%r11,%r10,8)
	testb	$4, %al
	movq	%rbx, %rcx
	cmovneq	%r8, %rcx
	movq	(%rcx), %r11
	movq	16(%rdi), %r14
	movslq	%r10d, %rcx
	testb	$2, %al
	movq	%rbx, %rsi
	cmovneq	%r8, %rsi
	movq	%r11, 8(%r14,%rcx,8)
	movq	(%rsi), %r10
	movq	16(%rdi), %rsi
	movq	%r10, 16(%rsi,%rcx,8)
	testb	$1, %al
	cmovneq	%r8, %rbx
	movq	(%rbx), %rax
	movq	16(%rdi), %rsi
	movq	%rax, 24(%rsi,%rcx,8)
	movq	8(%rdi), %rax
	movb	%dl, (%rax,%r9)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_PRESS,8,3                 ## @GLFW_PRESS
	.comm	_GLFW_RELEASE,8,3               ## @GLFW_RELEASE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwInputJoystickHat          ; -- Begin function _glfwInputJoystickHat
	.p2align	2
__glfwInputJoystickHat:                 ; @_glfwInputJoystickHat
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldrsw	x8, [x0]
	sxtw	x9, w1
	add	x8, x8, w1, sxtw #2
Lloh0:
	adrp	x10, _GLFW_PRESS@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GLFW_PRESS@GOTPAGEOFF]
Lloh2:
	adrp	x11, _GLFW_RELEASE@GOTPAGE
Lloh3:
	ldr	x11, [x11, _GLFW_RELEASE@GOTPAGEOFF]
	tst	w2, #0x1
	csel	x12, x11, x10, eq
	ldr	x12, [x12]
	ldr	x13, [x0, #16]
	lsl	x8, x8, #3
	str	x12, [x13, x8]
	tst	w2, #0x2
	csel	x12, x11, x10, eq
	ldr	x12, [x12]
	ldr	x13, [x0, #16]
	add	x13, x8, x13
	str	x12, [x13, #8]
	tst	w2, #0x4
	csel	x12, x11, x10, eq
	ldr	x12, [x12]
	ldr	x13, [x0, #16]
	add	x13, x8, x13
	str	x12, [x13, #16]
	tst	w2, #0x8
	csel	x10, x11, x10, eq
	ldr	x10, [x10]
	ldr	x11, [x0, #16]
	add	x8, x8, x11
	str	x10, [x8, #24]
	ldr	x8, [x0, #8]
	strb	w2, [x8, x9]
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_PRESS,8,3                 ; @GLFW_PRESS
	.comm	_GLFW_RELEASE,8,3               ; @GLFW_RELEASE
.subsections_via_symbols
