	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _build_action_map
LCPI0_0:
	.quad	2                               ## 0x2
	.quad	3                               ## 0x3
LCPI0_1:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
LCPI0_4:
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
	.long	5                               ## 0x5
LCPI0_5:
	.long	27                              ## 0x1b
	.long	27                              ## 0x1b
	.long	27                              ## 0x1b
	.long	27                              ## 0x1b
LCPI0_6:
	.quad	4                               ## 0x4
	.quad	4                               ## 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__build_action_map
	.p2align	4, 0x90
__build_action_map:                     ## @_build_action_map
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	%edi, -60(%rbp)                 ## 4-byte Spill
	callq	_impl_from_IDirectInputDevice8W
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movl	%r13d, %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r13, -104(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_DIDBAM_HWDEFAULTS@GOTPCREL(%rip), %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	testq	%r15, (%rcx)
	jne	LBB0_5
## %bb.1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_lstrcpynW
	jmp	LBB0_4
LBB0_3:
	leaq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_GetUserNameW
LBB0_4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_load_mapping_settings
LBB0_5:
	movl	(%rbx), %r8d
	testq	%rax, %rax
	movq	%rbx, %r15
	je	LBB0_9
## %bb.6:
	testl	%r8d, %r8d
	jle	LBB0_30
## %bb.7:
	movq	8(%r15), %rcx
	movl	4(%r15), %r10d
	cmpl	$5, %r8d
	jae	LBB0_24
## %bb.8:
	xorl	%edi, %edi
	jmp	LBB0_27
LBB0_9:
	testl	%r8d, %r8d
	jle	LBB0_31
## %bb.10:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	$8, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	_DIDBAM_PRESERVE@GOTPCREL(%rip), %rdx
	testq	%rcx, (%rdx)
	je	LBB0_20
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r12
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r12
	jge	LBB0_21
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movslq	-4(%rax,%rbx), %rsi
	movq	%rsi, %rcx
	notq	%rcx
	testq	%rcx, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_semantic_to_obj_id
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_DIDFT_GETTYPE
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_DIDFT_GETINSTANCE
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_DIDFT_BUTTON@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_DIDFT_AXIS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r13
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_dataformat_to_odf_by_type
	testq	%rax, %rax
	je	LBB0_12
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	8(%r15), %rax
	movl	%r14d, -8(%rax,%rbx)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax,%rbx)
	movq	_DIAH_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax,%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_12
LBB0_20:                                ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%rax,%rbx), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_DIAH_UNMAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx)
	jmp	LBB0_12
LBB0_21:
	movl	%eax, %r8d
	movl	$0, 4(%r15)
	testl	%r8d, %r8d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	jle	LBB0_32
## %bb.22:
	movq	8(%r15), %rcx
	cmpl	$5, %r8d
	jae	LBB0_34
## %bb.23:
	xorl	%edi, %edi
	xorl	%eax, %eax
	jmp	LBB0_37
LBB0_24:
	movl	%r8d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %edx
	cmovneq	%rax, %rdx
	movq	%r8, %rdi
	subq	%rdx, %rdi
	movd	%r10d, %xmm0
	leaq	52(%rcx), %rax
	movaps	LCPI0_0(%rip), %xmm13           ## xmm13 = [2,3]
	movaps	LCPI0_1(%rip), %xmm14           ## xmm14 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [32,32,32,32]
	movdqa	LCPI0_5(%rip), %xmm10           ## xmm10 = [27,27,27,27]
	movdqa	LCPI0_6(%rip), %xmm12           ## xmm12 = [4,4]
	movq	%rdi, %rdx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movd	-52(%rax), %xmm5                ## xmm5 = mem[0],zero,zero,zero
	movdqa	%xmm5, %xmm3
	pinsrd	$1, -36(%rax), %xmm3
	movdqa	%xmm3, %xmm7
	pinsrd	$2, -20(%rax), %xmm7
	movdqa	%xmm7, %xmm6
	pinsrd	$3, -4(%rax), %xmm6
	movaps	%xmm14, %xmm4
	shufps	$136, %xmm13, %xmm4             ## xmm4 = xmm4[0,2],xmm13[0,2]
	paddd	%xmm4, %xmm4
	movdqa	%xmm4, %xmm2
	pslld	$23, %xmm2
	paddd	%xmm11, %xmm2
	cvttps2dq	%xmm2, %xmm15
	pmulld	%xmm6, %xmm15
	movdqa	%xmm9, %xmm1
	psubd	%xmm4, %xmm1
	pshuflw	$254, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,3,3,4,5,6,7]
	psrad	%xmm2, %xmm3
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	pshuflw	$254, %xmm2, %xmm8              ## xmm8 = xmm2[2,3,3,3,4,5,6,7]
	psrad	%xmm8, %xmm6
	pblendw	$15, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,2,3],xmm6[4,5,6,7]
	pshuflw	$84, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,1,1,4,5,6,7]
	psrad	%xmm2, %xmm7
	pshuflw	$84, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,1,4,5,6,7]
	psrad	%xmm1, %xmm5
	pblendw	$240, %xmm7, %xmm5              ## xmm5 = xmm5[0,1,2,3],xmm7[4,5,6,7]
	pblendw	$204, %xmm6, %xmm5              ## xmm5 = xmm5[0,1],xmm6[2,3],xmm5[4,5],xmm6[6,7]
	por	%xmm15, %xmm5
	pxor	%xmm0, %xmm5
	movd	-48(%rax), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pinsrd	$1, -32(%rax), %xmm1
	movdqa	%xmm1, %xmm2
	pinsrd	$2, -16(%rax), %xmm2
	movdqa	%xmm2, %xmm3
	pinsrd	$3, (%rax), %xmm3
	movdqa	%xmm10, %xmm6
	psubd	%xmm4, %xmm6
	paddd	LCPI0_4(%rip), %xmm4
	pslld	$23, %xmm4
	paddd	%xmm11, %xmm4
	cvttps2dq	%xmm4, %xmm8
	pmulld	%xmm3, %xmm8
	pshuflw	$254, %xmm6, %xmm7              ## xmm7 = xmm6[2,3,3,3,4,5,6,7]
	psrad	%xmm7, %xmm1
	pshufd	$238, %xmm6, %xmm7              ## xmm7 = xmm6[2,3,2,3]
	pshuflw	$254, %xmm7, %xmm4              ## xmm4 = xmm7[2,3,3,3,4,5,6,7]
	psrad	%xmm4, %xmm3
	pshuflw	$84, %xmm7, %xmm4               ## xmm4 = xmm7[0,1,1,1,4,5,6,7]
	psrad	%xmm4, %xmm2
	pblendw	$15, %xmm1, %xmm3               ## xmm3 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	pshuflw	$84, %xmm6, %xmm1               ## xmm1 = xmm6[0,1,1,1,4,5,6,7]
	psrad	%xmm1, %xmm0
	pblendw	$240, %xmm2, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm2[4,5,6,7]
	pblendw	$204, %xmm3, %xmm0              ## xmm0 = xmm0[0,1],xmm3[2,3],xmm0[4,5],xmm3[6,7]
	por	%xmm8, %xmm0
	pxor	%xmm5, %xmm0
	paddq	%xmm12, %xmm14
	paddq	%xmm12, %xmm13
	addq	$64, %rax
	addq	$-4, %rdx
	jne	LBB0_25
## %bb.26:
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pxor	%xmm1, %xmm0
	movd	%xmm0, %r10d
LBB0_27:
	leal	(%rdi,%rdi), %r11d
	movl	$32, %edx
	subl	%r11d, %edx
	subq	%rdi, %r8
	shlq	$4, %rdi
	addq	%rcx, %rdi
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi), %esi
	movl	%esi, %r9d
	movl	%r11d, %ecx
	shll	%cl, %r9d
	movl	(%rdi), %ebx
	movl	%edx, %ecx
	sarl	%cl, %esi
	leal	5(%r11), %ecx
	movl	%ebx, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	leal	-5(%rdx), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	orl	%r9d, %esi
	xorl	%r10d, %esi
	orl	%eax, %ebx
	movl	%ebx, %r10d
	xorl	%esi, %r10d
	addl	$2, %r11d
	addl	$-2, %edx
	addq	$16, %rdi
	decq	%r8
	jne	LBB0_28
## %bb.29:
	movl	%r10d, 4(%r15)
LBB0_30:
	movq	_DI_OK@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %eax
	jmp	LBB0_42
LBB0_31:
	movl	$0, 4(%r15)
LBB0_32:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_40
LBB0_33:
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_IDirectInputDevice8WImpl_BuildActionMap
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_44
## %bb.43:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movl	%r8d, %eax
	andl	$3, %eax
	testq	%rax, %rax
	movl	$4, %edx
	cmovneq	%rax, %rdx
	movq	%r8, %rdi
	subq	%rdx, %rdi
	leaq	52(%rcx), %rax
	movaps	LCPI0_0(%rip), %xmm13           ## xmm13 = [2,3]
	movaps	LCPI0_1(%rip), %xmm14           ## xmm14 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_2(%rip), %xmm11           ## xmm11 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [32,32,32,32]
	movdqa	LCPI0_5(%rip), %xmm10           ## xmm10 = [27,27,27,27]
	movdqa	LCPI0_6(%rip), %xmm12           ## xmm12 = [4,4]
	movq	%rdi, %rdx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movd	-52(%rax), %xmm5                ## xmm5 = mem[0],zero,zero,zero
	movdqa	%xmm5, %xmm3
	pinsrd	$1, -36(%rax), %xmm3
	movdqa	%xmm3, %xmm7
	pinsrd	$2, -20(%rax), %xmm7
	movdqa	%xmm7, %xmm6
	pinsrd	$3, -4(%rax), %xmm6
	movaps	%xmm14, %xmm4
	shufps	$136, %xmm13, %xmm4             ## xmm4 = xmm4[0,2],xmm13[0,2]
	paddd	%xmm4, %xmm4
	movdqa	%xmm4, %xmm2
	pslld	$23, %xmm2
	paddd	%xmm11, %xmm2
	cvttps2dq	%xmm2, %xmm15
	pmulld	%xmm6, %xmm15
	movdqa	%xmm9, %xmm1
	psubd	%xmm4, %xmm1
	pshuflw	$254, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,3,3,4,5,6,7]
	psrad	%xmm2, %xmm3
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	pshuflw	$254, %xmm2, %xmm8              ## xmm8 = xmm2[2,3,3,3,4,5,6,7]
	psrad	%xmm8, %xmm6
	pblendw	$15, %xmm3, %xmm6               ## xmm6 = xmm3[0,1,2,3],xmm6[4,5,6,7]
	pshuflw	$84, %xmm2, %xmm2               ## xmm2 = xmm2[0,1,1,1,4,5,6,7]
	psrad	%xmm2, %xmm7
	pshuflw	$84, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,1,1,4,5,6,7]
	psrad	%xmm1, %xmm5
	pblendw	$240, %xmm7, %xmm5              ## xmm5 = xmm5[0,1,2,3],xmm7[4,5,6,7]
	pblendw	$204, %xmm6, %xmm5              ## xmm5 = xmm5[0,1],xmm6[2,3],xmm5[4,5],xmm6[6,7]
	por	%xmm15, %xmm5
	pxor	%xmm0, %xmm5
	movd	-48(%rax), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movdqa	%xmm0, %xmm1
	pinsrd	$1, -32(%rax), %xmm1
	movdqa	%xmm1, %xmm2
	pinsrd	$2, -16(%rax), %xmm2
	movdqa	%xmm2, %xmm3
	pinsrd	$3, (%rax), %xmm3
	movdqa	%xmm10, %xmm6
	psubd	%xmm4, %xmm6
	paddd	LCPI0_4(%rip), %xmm4
	pslld	$23, %xmm4
	paddd	%xmm11, %xmm4
	cvttps2dq	%xmm4, %xmm8
	pmulld	%xmm3, %xmm8
	pshuflw	$254, %xmm6, %xmm7              ## xmm7 = xmm6[2,3,3,3,4,5,6,7]
	psrad	%xmm7, %xmm1
	pshufd	$238, %xmm6, %xmm7              ## xmm7 = xmm6[2,3,2,3]
	pshuflw	$254, %xmm7, %xmm4              ## xmm4 = xmm7[2,3,3,3,4,5,6,7]
	psrad	%xmm4, %xmm3
	pshuflw	$84, %xmm7, %xmm4               ## xmm4 = xmm7[0,1,1,1,4,5,6,7]
	psrad	%xmm4, %xmm2
	pblendw	$15, %xmm1, %xmm3               ## xmm3 = xmm1[0,1,2,3],xmm3[4,5,6,7]
	pshuflw	$84, %xmm6, %xmm1               ## xmm1 = xmm6[0,1,1,1,4,5,6,7]
	psrad	%xmm1, %xmm0
	pblendw	$240, %xmm2, %xmm0              ## xmm0 = xmm0[0,1,2,3],xmm2[4,5,6,7]
	pblendw	$204, %xmm3, %xmm0              ## xmm0 = xmm0[0,1],xmm3[2,3],xmm0[4,5],xmm3[6,7]
	por	%xmm8, %xmm0
	pxor	%xmm5, %xmm0
	paddq	%xmm12, %xmm14
	paddq	%xmm12, %xmm13
	addq	$64, %rax
	addq	$-4, %rdx
	jne	LBB0_35
## %bb.36:
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pxor	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	pxor	%xmm1, %xmm0
	movd	%xmm0, %eax
LBB0_37:
	leal	(%rdi,%rdi), %r10d
	movl	$32, %r11d
	subl	%r10d, %r11d
	subq	%rdi, %r8
	shlq	$4, %rdi
	addq	%rcx, %rdi
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi), %esi
	movl	%esi, %r9d
	movl	%r10d, %ecx
	shll	%cl, %r9d
	movl	(%rdi), %ebx
	movl	%r11d, %ecx
	sarl	%cl, %esi
	leal	5(%r10), %ecx
	movl	%ebx, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	leal	-5(%r11), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	orl	%r9d, %esi
	xorl	%eax, %esi
	orl	%edx, %ebx
	movl	%ebx, %eax
	xorl	%esi, %eax
	addl	$2, %r10d
	addl	$-2, %r11d
	addq	$16, %rdi
	decq	%r8
	jne	LBB0_38
## %bb.39:
	movl	%eax, 4(%r15)
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_33
LBB0_40:
	movq	_DI_NOEFFECT@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_DIDBAM_HWDEFAULTS,8,3          ## @DIDBAM_HWDEFAULTS
	.comm	_DI_OK,4,2                      ## @DI_OK
	.comm	_DIDFT_PSHBUTTON,8,3            ## @DIDFT_PSHBUTTON
	.comm	_DIDFT_BUTTON,8,3               ## @DIDFT_BUTTON
	.comm	_DIDFT_RELAXIS,8,3              ## @DIDFT_RELAXIS
	.comm	_DIDFT_AXIS,8,3                 ## @DIDFT_AXIS
	.comm	_DIAH_DEFAULT,4,2               ## @DIAH_DEFAULT
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_DIDBAM_PRESERVE,8,3            ## @DIDBAM_PRESERVE
	.comm	_DIAH_UNMAPPED,4,2              ## @DIAH_UNMAPPED
	.comm	_DI_NOEFFECT,4,2                ## @DI_NOEFFECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function _build_action_map
lCPI0_0:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_1:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__build_action_map
	.p2align	2
__build_action_map:                     ; @_build_action_map
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-160]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 160
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	sub	sp, sp, #48
	mov	x23, x5
	mov	x24, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-152]
	bl	_impl_from_IDirectInputDevice8W
	mov	x25, x0
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldrsw	x2, [x8]
	and	x8, x2, #0xffffffff
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	stur	x2, [x29, #-160]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	x27, [x8]
Lloh11:
	adrp	x8, _DIDBAM_HWDEFAULTS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIDBAM_HWDEFAULTS@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	x0, x27
	stur	x20, [x29, #-168]               ; 8-byte Folded Spill
	tst	x8, x20
	b.eq	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cbz	x0, LBB0_17
LBB0_2:
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.3:
	ldr	x9, [x19, #8]
	ldr	w11, [x19, #4]
	cmp	w8, #17
	b.hs	LBB0_7
; %bb.4:
	mov	x10, #0
	b	LBB0_10
LBB0_5:
	cbz	x21, LBB0_15
; %bb.6:
	mov	x0, x26
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_lstrcpynW
	b	LBB0_16
LBB0_7:
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	ands	x10, x8, #0xf
	movi.2d	v1, #0000000000000000
	mov	w11, #16
	movi.4s	v2, #8
	csel	x10, x11, x10, eq
	movi.4s	v3, #16
	sub	x10, x8, x10
Lloh14:
	adrp	x12, lCPI0_0@PAGE
Lloh15:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
	movi.4s	v5, #24
Lloh16:
	adrp	x12, lCPI0_1@PAGE
Lloh17:
	ldr	q17, [x12, lCPI0_1@PAGEOFF]
	add	x12, x9, #128
	movi.4s	v22, #11
	movi.4s	v23, #3
	mov	x13, x10
	movi.2d	v24, #0000000000000000
	movi.2d	v25, #0000000000000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #128
	sub	x15, x12, #64
	ld4.4s	{ v26, v27, v28, v29 }, [x14]
	ld4.4s	{ v8, v9, v10, v11 }, [x15]
	mov	x14, x12
	ld4.4s	{ v12, v13, v14, v15 }, [x14], #64
	ld4.4s	{ v18, v19, v20, v21 }, [x14]
	uzp1.4s	v16, v17, v4
	shl.4s	v16, v16, #1
	add.4s	v30, v16, v2
	ushl.4s	v30, v8, v30
	sub.4s	v31, v16, v5
	sshl.4s	v31, v8, v31
	movi.4s	v6, #13
	add.4s	v6, v16, v6
	ushl.4s	v6, v9, v6
	movi.4s	v7, #19
	sub.4s	v7, v16, v7
	sshl.4s	v7, v9, v7
	add.4s	v8, v16, v3
	ushl.4s	v8, v12, v8
	sub.4s	v9, v16, v3
	sshl.4s	v9, v12, v9
	movi.4s	v10, #21
	add.4s	v10, v16, v10
	ushl.4s	v10, v13, v10
	sub.4s	v11, v16, v22
	sshl.4s	v11, v13, v11
	movi.4s	v12, #32
	sub.4s	v12, v16, v12
	sshl.4s	v12, v26, v12
	movi.4s	v13, #5
	add.4s	v13, v16, v13
	ushl.4s	v13, v27, v13
	movi.4s	v14, #27
	sub.4s	v14, v16, v14
	sshl.4s	v14, v27, v14
	ushl.4s	v26, v26, v16
	add.4s	v27, v16, v5
	ushl.4s	v27, v18, v27
	sub.4s	v28, v16, v2
	sshl.4s	v28, v18, v28
	movi.4s	v29, #29
	add.4s	v29, v16, v29
	ushl.4s	v29, v19, v29
	sub.4s	v16, v16, v23
	sshl.4s	v16, v19, v16
	orr.16b	v18, v26, v12
	orr.16b	v19, v13, v14
	eor3.16b	v0, v18, v0, v19
	orr.16b	v18, v30, v31
	orr.16b	v6, v6, v7
	eor3.16b	v1, v18, v1, v6
	orr.16b	v6, v8, v9
	orr.16b	v7, v10, v11
	eor3.16b	v24, v6, v24, v7
	orr.16b	v6, v27, v28
	orr.16b	v7, v29, v16
	eor3.16b	v25, v6, v25, v7
	dup.2d	v6, x11
	add.2d	v4, v4, v6
	add.2d	v17, v17, v6
	add	x12, x12, #256
	subs	x13, x13, #16
	b.ne	LBB0_8
; %bb.9:
	eor.16b	v0, v1, v0
	eor3.16b	v0, v24, v0, v25
	ext.16b	v1, v0, v0, #8
	eor.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	eor	w11, w12, w11
LBB0_10:
	lsl	w12, w10, #1
	mov	w13, #32
	sub	w13, w13, w12
	add	x9, x9, x10, lsl #4
	add	x9, x9, #4
	sub	x8, x8, x10
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	lsl	w14, w10, w12
	asr	w10, w10, w13
	orr	w10, w14, w10
	eor	w10, w10, w11
	ldr	w11, [x9], #16
	add	w14, w12, #5
	lsl	w14, w11, w14
	sub	w15, w13, #5
	asr	w11, w11, w15
	orr	w11, w14, w11
	eor	w11, w11, w10
	add	w12, w12, #2
	sub	w13, w13, #2
	subs	x8, x8, #1
	b.ne	LBB0_11
; %bb.12:
	str	w11, [x19, #4]
LBB0_13:
Lloh18:
	adrp	x8, _DI_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DI_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
	b	LBB0_31
LBB0_15:
	sub	x1, x29, #160
	mov	x0, x26
	bl	_GetUserNameW
LBB0_16:
	mov	x0, x25
	mov	x1, x19
	mov	x2, x26
	bl	_load_mapping_settings
	ldr	w8, [x19]
	cbnz	x0, LBB0_2
LBB0_17:
	cmp	w8, #0
	b.le	LBB0_28
; %bb.18:
	mov	x20, x27
	stur	w22, [x29, #-180]               ; 4-byte Folded Spill
	stur	x21, [x29, #-176]               ; 8-byte Folded Spill
	mov	x21, #0
	mov	x22, #0
Lloh20:
	adrp	x28, _DIDBAM_PRESERVE@GOTPAGE
Lloh21:
	ldr	x28, [x28, _DIDBAM_PRESERVE@GOTPAGEOFF]
	b	LBB0_21
LBB0_19:                                ;   in Loop: Header=BB0_21 Depth=1
	ldr	x9, [x28]
	ldur	x10, [x29, #-168]               ; 8-byte Folded Reload
	tst	x9, x10
	b.eq	LBB0_24
LBB0_20:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #16
	cmp	x22, x8
	b.ge	LBB0_25
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x9, x8, x21
	ldrsw	x1, [x9, #4]
	bics	xzr, x24, x1
	b.ne	LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=1
	mov	x0, x25
	bl	_semantic_to_obj_id
	mov	x26, x0
	bl	_DIDFT_GETTYPE
	mov	x27, x0
	mov	x0, x26
	bl	_DIDFT_GETINSTANCE
	mov	x1, x0
Lloh22:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _DIDFT_BUTTON@GOTPAGE
Lloh26:
	ldr	x9, [x9, _DIDFT_BUTTON@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x27, x8
	csel	x8, x9, x27, eq
Lloh28:
	adrp	x9, _DIDFT_RELAXIS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DIDFT_RELAXIS@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x10, _DIDFT_AXIS@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DIDFT_AXIS@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x2, x10, x8, eq
	mov	x0, x23
	bl	_dataformat_to_odf_by_type
	cbz	x0, LBB0_20
; %bb.23:                               ;   in Loop: Header=BB0_21 Depth=1
	ldr	x8, [x19, #8]
	add	x8, x8, x21
	str	w26, [x8]
	ldr	w9, [x25]
	str	w9, [x8, #12]
Lloh34:
	adrp	x9, _DIAH_DEFAULT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _DIAH_DEFAULT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	str	w9, [x8, #8]
Lloh37:
	adrp	x8, _TRUE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh39:
	ldr	x20, [x8]
	b	LBB0_20
LBB0_24:                                ;   in Loop: Header=BB0_21 Depth=1
	add	x8, x8, x21
	add	x0, x8, #12
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh40:
	adrp	x8, _DIAH_UNMAPPED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DIAH_UNMAPPED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	x9, [x19, #8]
	add	x9, x9, x21
	str	w8, [x9, #8]
	b	LBB0_20
LBB0_25:
	and	x8, x8, #0xffffffff
	str	wzr, [x19, #4]
	cmp	w8, #1
	ldur	x21, [x29, #-176]               ; 8-byte Folded Reload
	ldur	w22, [x29, #-180]               ; 4-byte Folded Reload
	mov	x27, x20
	b.lt	LBB0_29
; %bb.26:
	ldr	x9, [x19, #8]
	cmp	w8, #17
	b.hs	LBB0_33
; %bb.27:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_36
LBB0_28:
	str	wzr, [x19, #4]
LBB0_29:
	cbz	x27, LBB0_39
LBB0_30:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x21
	ldur	x3, [x29, #-168]                ; 8-byte Folded Reload
	bl	_IDirectInputDevice8WImpl_BuildActionMap
LBB0_31:
	ldur	x8, [x29, #-152]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_40
; %bb.32:
	sub	sp, x29, #144
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #160            ; 16-byte Folded Reload
	ret
LBB0_33:
	movi.2d	v0, #0000000000000000
	ands	x10, x8, #0xf
	movi.4s	v1, #8
	mov	w11, #16
	movi.4s	v2, #16
	csel	x10, x11, x10, eq
	movi.4s	v3, #24
	sub	x10, x8, x10
Lloh46:
	adrp	x12, lCPI0_0@PAGE
Lloh47:
	ldr	q4, [x12, lCPI0_0@PAGEOFF]
Lloh48:
	adrp	x12, lCPI0_1@PAGE
Lloh49:
	ldr	q17, [x12, lCPI0_1@PAGEOFF]
	add	x12, x9, #128
	movi.4s	v6, #11
	movi.4s	v22, #3
	mov	x13, x10
	movi.2d	v23, #0000000000000000
	movi.2d	v24, #0000000000000000
	movi.2d	v25, #0000000000000000
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #128
	sub	x15, x12, #64
	ld4.4s	{ v26, v27, v28, v29 }, [x14]
	ld4.4s	{ v8, v9, v10, v11 }, [x15]
	mov	x14, x12
	ld4.4s	{ v12, v13, v14, v15 }, [x14], #64
	ld4.4s	{ v18, v19, v20, v21 }, [x14]
	uzp1.4s	v7, v17, v4
	shl.4s	v7, v7, #1
	add.4s	v16, v7, v1
	ushl.4s	v16, v8, v16
	sub.4s	v30, v7, v3
	sshl.4s	v30, v8, v30
	movi.4s	v5, #13
	add.4s	v31, v7, v5
	ushl.4s	v31, v9, v31
	movi.4s	v5, #19
	sub.4s	v5, v7, v5
	sshl.4s	v5, v9, v5
	add.4s	v8, v7, v2
	ushl.4s	v8, v12, v8
	sub.4s	v9, v7, v2
	sshl.4s	v9, v12, v9
	movi.4s	v10, #21
	add.4s	v10, v7, v10
	ushl.4s	v10, v13, v10
	sub.4s	v11, v7, v6
	sshl.4s	v11, v13, v11
	movi.4s	v12, #32
	sub.4s	v12, v7, v12
	sshl.4s	v12, v26, v12
	movi.4s	v13, #5
	add.4s	v13, v7, v13
	ushl.4s	v13, v27, v13
	movi.4s	v14, #27
	sub.4s	v14, v7, v14
	sshl.4s	v14, v27, v14
	ushl.4s	v26, v26, v7
	add.4s	v27, v7, v3
	ushl.4s	v27, v18, v27
	sub.4s	v28, v7, v1
	sshl.4s	v28, v18, v28
	movi.4s	v29, #29
	add.4s	v29, v7, v29
	ushl.4s	v29, v19, v29
	sub.4s	v7, v7, v22
	sshl.4s	v7, v19, v7
	orr.16b	v18, v26, v12
	orr.16b	v19, v13, v14
	eor3.16b	v0, v18, v0, v19
	orr.16b	v16, v16, v30
	orr.16b	v5, v31, v5
	eor3.16b	v23, v16, v23, v5
	orr.16b	v5, v8, v9
	orr.16b	v16, v10, v11
	eor3.16b	v24, v5, v24, v16
	orr.16b	v5, v27, v28
	orr.16b	v7, v29, v7
	eor3.16b	v25, v5, v25, v7
	dup.2d	v5, x11
	add.2d	v4, v4, v5
	add.2d	v17, v17, v5
	add	x12, x12, #256
	subs	x13, x13, #16
	b.ne	LBB0_34
; %bb.35:
	eor.16b	v0, v23, v0
	eor3.16b	v0, v24, v0, v25
	ext.16b	v1, v0, v0, #8
	eor.8b	v0, v0, v1
	mov.s	w11, v0[1]
	fmov	w12, s0
	eor	w11, w12, w11
LBB0_36:
	lsl	w12, w10, #1
	mov	w13, #32
	sub	w13, w13, w12
	add	x9, x9, x10, lsl #4
	add	x9, x9, #4
	sub	x8, x8, x10
LBB0_37:                                ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	lsl	w14, w10, w12
	asr	w10, w10, w13
	orr	w10, w14, w10
	eor	w10, w10, w11
	ldr	w11, [x9], #16
	add	w14, w12, #5
	lsl	w14, w11, w14
	sub	w15, w13, #5
	asr	w11, w11, w15
	orr	w11, w14, w11
	eor	w11, w11, w10
	add	w12, w12, #2
	sub	w13, w13, #2
	subs	x8, x8, #1
	b.ne	LBB0_37
; %bb.38:
	str	w11, [x19, #4]
	cbnz	x27, LBB0_30
LBB0_39:
Lloh50:
	adrp	x8, _DI_NOEFFECT@GOTPAGE
Lloh51:
	ldr	x8, [x8, _DI_NOEFFECT@GOTPAGEOFF]
	b	LBB0_14
LBB0_40:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdr	Lloh48, Lloh49
	.loh AdrpAdrp	Lloh46, Lloh48
	.loh AdrpLdr	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_DIDBAM_HWDEFAULTS,8,3          ; @DIDBAM_HWDEFAULTS
	.comm	_DI_OK,4,2                      ; @DI_OK
	.comm	_DIDFT_PSHBUTTON,8,3            ; @DIDFT_PSHBUTTON
	.comm	_DIDFT_BUTTON,8,3               ; @DIDFT_BUTTON
	.comm	_DIDFT_RELAXIS,8,3              ; @DIDFT_RELAXIS
	.comm	_DIDFT_AXIS,8,3                 ; @DIDFT_AXIS
	.comm	_DIAH_DEFAULT,4,2               ; @DIAH_DEFAULT
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_DIDBAM_PRESERVE,8,3            ; @DIDBAM_PRESERVE
	.comm	_DIAH_UNMAPPED,4,2              ; @DIAH_UNMAPPED
	.comm	_DI_NOEFFECT,4,2                ; @DI_NOEFFECT
.subsections_via_symbols
