	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _set_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	__set_action_map
	.p2align	4, 0x90
__set_action_map:                       ## @_set_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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	movq	%rdx, -144(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_impl_from_IDirectInputDevice8W
	movq	%rax, %r12
	movq	%rsp, %r15
	movq	_MAX_PATH@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rcx
	movl	(%r13), %eax
	movl	%eax, -112(%rbp)
	cmpq	$0, 24(%r12)
	je	LBB0_2
## %bb.1:
	movq	_DIERR_ACQUIRED@GOTPCREL(%rip), %rax
	jmp	LBB0_50
LBB0_2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	movl	%ebx, -108(%rbp)                ## 4-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	movabsq	$51539607584, %rax              ## imm = 0xC00000020
	movq	%rax, -184(%rbp)
	movq	_DIDF_RELAXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -156(%rbp)
	movl	40(%r14), %eax
	movl	%eax, -160(%rbp)
	movl	(%r14), %r8d
	movl	$0, %r12d
	testl	%r8d, %r8d
	movq	%r14, %r11
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_18
## %bb.3:
	movq	32(%r11), %rcx
	cmpl	$5, %r8d
	jae	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_5:
	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
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>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_6
## %bb.7:
	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, %r12d
LBB0_8:
	leal	(%rdi,%rdi), %r10d
	movl	$32, %edx
	subl	%r10d, %edx
	subq	%rdi, %r8
	shlq	$4, %rdi
	addq	%rcx, %rdi
	addq	$4, %rdi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi), %esi
	movl	%esi, %r9d
	movl	%r10d, %ecx
	shll	%cl, %r9d
	movl	(%rdi), %ebx
	movl	%edx, %ecx
	sarl	%cl, %esi
	leal	5(%r10), %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	%r12d, %esi
	orl	%eax, %ebx
	movl	%ebx, %r12d
	xorl	%esi, %r12d
	addl	$2, %r10d
	addl	$-2, %edx
	addq	$16, %rdi
	decq	%r8
	jne	LBB0_9
## %bb.10:
	leaq	16(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movl	$12, %r14d
	xorl	%r13d, %r13d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r13d
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r15
	movq	-56(%rbp), %r11                 ## 8-byte Reload
	movslq	(%r11), %rax
	addq	$16, %r14
	cmpq	%rax, %r15
	jge	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r11), %rsi
	addq	%r14, %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r11, %rbx
	callq	_IsEqualGUID
	testq	%rax, %rax
	jne	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%rbx), %rsi
	addq	%r14, %rsi
	movq	_IID_NULL@GOTPCREL(%rip), %rdi
	callq	_IsEqualGUID
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	32(%rbx), %rax
	movl	-8(%rax,%r14), %eax
	cmpl	$-16777217, %eax                ## imm = 0xFEFFFFFF
	ja	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	4(%rbx), %ecx
	andl	%ecx, %eax
	cmpl	%ecx, %eax
	jne	LBB0_16
	jmp	LBB0_15
LBB0_17:
	testl	%r13d, %r13d
	jne	LBB0_20
LBB0_18:
	cmpl	%r12d, 8(%r11)
	jne	LBB0_19
## %bb.28:
	movq	_DIDSAM_FORCESAVE@GOTPCREL(%rip), %rax
	movl	$0, %r13d
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, (%rax)
	jne	LBB0_20
	jmp	LBB0_29
LBB0_19:
	xorl	%r13d, %r13d
LBB0_20:
	movl	%r12d, 8(%r11)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%r13d, (%rbx)
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	leal	(,%r13,4), %r14d
	leal	(%r14,%r14,2), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	movq	%rax, %r15
	movq	%rax, -168(%rbp)
	movl	%r13d, -176(%rbp)
	movq	%rbx, %r13
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	8(%rbx), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapFree
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_HeapAlloc
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, 8(%rbx)
	cmpl	$0, (%r8)
	jle	LBB0_43
## %bb.21:
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r13, %rax
	addq	$16, %rax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	$12, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_dataformat_to_odf_by_type
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movslq	%r12d, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rcx,4), %rcx
	leaq	(%rcx,%rcx,2), %rbx
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rcx,%rbx), %rdi
	movl	(%r13), %edx
	movq	%rax, %rsi
	callq	_memcpy
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	32(%r8), %rax
	movl	-4(%rax,%r15), %ecx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %rdx
	leaq	(%rdx,%rbx), %rax
	movl	%ecx, 8(%rdx,%rbx)
LBB0_39:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-136(%rbp), %rdx                ## 8-byte Reload
	movl	%edx, (%rax)
	movq	-128(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%rax,2), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%edx, 4(%rcx,%rax,4)
	xorl	%eax, %eax
	movq	_DIDFT_BUTTON@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	sete	%al
	leal	(%rax,%rax,2), %eax
	addl	%eax, %edx
	incl	%edx
	movq	%rdx, -136(%rbp)                ## 8-byte Spill
	incl	%r12d
LBB0_40:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_41:                                ##   in Loop: Header=BB0_22 Depth=1
	incq	%rbx
	movslq	(%r8), %rax
	addq	$16, %r15
	cmpq	%rax, %rbx
	jge	LBB0_42
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r8), %rsi
	addq	%r15, %rsi
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	callq	_IsEqualGUID
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	32(%r8), %rcx
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movl	-12(%rcx,%r15), %edi
	movq	%r8, %rbx
	callq	_DIDFT_GETINSTANCE
	movl	%eax, %r12d
	movq	32(%rbx), %rax
	movl	-12(%rax,%r15), %edi
	callq	_DIDFT_GETTYPE
	movl	%eax, %r14d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_BUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_AXIS@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=1
	movl	-8(%rcx,%r15), %esi
	cmpl	$-16777217, %esi                ## imm = 0xFEFFFFFF
	ja	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	4(%r8), %eax
	movl	%eax, %ecx
	andl	%esi, %ecx
	cmpl	%eax, %ecx
	jne	LBB0_41
LBB0_32:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_semantic_to_obj_id
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_DIDFT_GETTYPE
	movl	%eax, %r14d
	movl	%ebx, %edi
	callq	_DIDFT_GETINSTANCE
	movl	%eax, %r12d
	movq	_DIDFT_PSHBUTTON@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_34
## %bb.33:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_BUTTON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_36
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_RELAXIS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_DIDFT_AXIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
LBB0_36:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_dataformat_to_odf_by_type
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_TRACE
	testq	%rbx, %rbx
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movslq	%r12d, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rax
	leaq	(%rax,%rax,2), %r13
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(%rax,%r13), %rdi
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_memcpy
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	32(%r8), %rax
	movl	-4(%rax,%r15), %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdx
	leaq	(%rdx,%r13), %rax
	movl	%ecx, 8(%rdx,%r13)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_40
LBB0_42:
	testl	%r12d, %r12d
	movq	-104(%rbp), %r15                ## 8-byte Reload
	je	LBB0_43
## %bb.44:
	movl	%r12d, -176(%rbp)
	leaq	-184(%rbp), %rsi
	movl	-108(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %edi
	movq	%r8, %rbx
	callq	_IDirectInputDevice8_SetDataFormat
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
	movl	$32, -216(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -188(%rbp)
	movl	24(%rbx), %eax
	movl	%eax, -192(%rbp)
	movl	$4, -212(%rbp)
	movq	_DIPH_DEVICE@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	%rax, -208(%rbp)
	movq	_DIPROP_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-216(%rbp), %rdx
	movl	%r13d, %edi
	callq	_IDirectInputDevice8_SetProperty
	movq	16(%rbx), %rax
	movabsq	$17179869216, %rcx              ## imm = 0x400000020
	testq	%rax, %rax
	jle	LBB0_46
## %bb.45:
	leaq	-272(%rbp), %rdx
	movq	%rcx, -272(%rbp)
	movq	%rax, -280(%rbp)
	movq	(%r14), %rax
	movq	%rax, -264(%rbp)
	movq	_DIPROP_BUFFERSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_IDirectInputDevice8_SetProperty
LBB0_46:
	movq	-144(%rbp), %rsi                ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_47
## %bb.48:
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_lstrcpynW
	jmp	LBB0_49
LBB0_43:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_HeapFree
LBB0_29:
	movq	_DI_NOEFFECT@GOTPCREL(%rip), %rax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_50
LBB0_47:
	leaq	-112(%rbp), %rsi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_GetUserNameW
LBB0_49:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	leaq	-240(%rbp), %r12
	movabsq	$17179869216, %rax              ## imm = 0x400000020
	movq	%rax, -240(%rbp)
	movq	$0, -224(%rbp)
	movq	(%r14), %rax
	movq	%rax, -232(%rbp)
	callq	_ARRAY_SIZE
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_lstrcpynW
	movq	_DIPROP_USERNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	movq	%r12, %rdx
	callq	_IDirectInputDevice8_SetProperty
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_save_mapping_settings
	movq	_DI_OK@GOTPCREL(%rip), %rax
LBB0_50:
	movl	(%rax), %eax
	movq	%r15, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_52
## %bb.51:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_DIERR_ACQUIRED,4,2             ## @DIERR_ACQUIRED
	.comm	_DIDF_RELAXIS,4,2               ## @DIDF_RELAXIS
	.comm	_IID_NULL,4,2                   ## @IID_NULL
	.comm	_DIDSAM_FORCESAVE,4,2           ## @DIDSAM_FORCESAVE
	.comm	_DI_NOEFFECT,4,2                ## @DI_NOEFFECT
	.comm	_DIDFT_PSHBUTTON,4,2            ## @DIDFT_PSHBUTTON
	.comm	_DIDFT_BUTTON,4,2               ## @DIDFT_BUTTON
	.comm	_DIDFT_RELAXIS,4,2              ## @DIDFT_RELAXIS
	.comm	_DIDFT_AXIS,4,2                 ## @DIDFT_AXIS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"obj %p, inst 0x%08x, type 0x%08x\n"

	.comm	_DIPH_DEVICE,8,3                ## @DIPH_DEVICE
	.comm	_DIPROP_RANGE,4,2               ## @DIPROP_RANGE
	.comm	_DIPROP_BUFFERSIZE,4,2          ## @DIPROP_BUFFERSIZE
	.comm	_DIDSAM_NOUSER,4,2              ## @DIDSAM_NOUSER
	.comm	_DIPROP_USERNAME,4,2            ## @DIPROP_USERNAME
	.comm	_DI_OK,4,2                      ## @DI_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _set_action_map
lCPI0_0:
	.long	32                              ; 0x20
	.long	12                              ; 0xc
lCPI0_3:
	.long	32                              ; 0x20
	.long	4                               ; 0x4
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_1:
	.quad	2                               ; 0x2
	.quad	3                               ; 0x3
lCPI0_2:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__set_action_map
	.p2align	2
__set_action_map:                       ; @_set_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, #240
	mov	x28, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-160]
	bl	_impl_from_IDirectInputDevice8W
	mov	x17, sp
Lloh3:
	adrp	x12, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_PATH@GOTPAGEOFF]
	ldr	w8, [x12]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x16, x9, x8
	mov	sp, x16
	ldr	w8, [x12]
	sub	x9, x29, #36
	stur	w8, [x9, #-256]
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x8, _DIERR_ACQUIRED@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIERR_ACQUIRED@GOTPAGEOFF]
	b	LBB0_43
LBB0_2:
	sub	x8, x29, #88
	stur	x0, [x8, #-256]                 ; 8-byte Folded Spill
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x29, #-192]
Lloh11:
	adrp	x8, _DIDF_RELAXIS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DIDF_RELAXIS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	stp	w9, w8, [x29, #-168]
	ldr	w8, [x19]
	cmp	w8, #1
	sub	x9, x29, #96
	stur	x17, [x9, #-256]                ; 8-byte Folded Spill
	sub	x9, x29, #104
	stur	x16, [x9, #-256]                ; 8-byte Folded Spill
	sub	x9, x29, #112
	stur	x20, [x9, #-256]                ; 8-byte Folded Spill
	b.lt	LBB0_5
; %bb.3:
	ldr	x9, [x19, #32]
	cmp	w8, #17
	b.hs	LBB0_6
; %bb.4:
	mov	x10, #0
	mov	w20, #0
	b	LBB0_9
LBB0_5:
	mov	w20, #0
	b	LBB0_18
LBB0_6:
	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
Lloh14:
	adrp	x12, lCPI0_1@PAGE
Lloh15:
	ldr	q4, [x12, lCPI0_1@PAGEOFF]
Lloh16:
	adrp	x12, lCPI0_2@PAGE
Lloh17:
	ldr	q17, [x12, lCPI0_2@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_7:                                 ; =>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_7
; %bb.8:
	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	w20, w12, w11
LBB0_9:
	lsl	w11, w10, #1
	mov	w12, #32
	sub	w12, w12, w11
	add	x9, x9, x10, lsl #4
	add	x9, x9, #4
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldur	w10, [x9, #-4]
	lsl	w13, w10, w11
	asr	w10, w10, w12
	orr	w10, w13, w10
	eor	w10, w10, w20
	ldr	w13, [x9], #16
	add	w14, w11, #5
	lsl	w14, w13, w14
	sub	w15, w12, #5
	asr	w13, w13, w15
	orr	w13, w14, w13
	eor	w20, w10, w13
	add	w11, w11, #2
	sub	w12, w12, #2
	subs	x8, x8, #1
	b.ne	LBB0_10
; %bb.11:
	mov	x22, #0
	mov	x23, #0
	mov	w21, #0
	sub	x8, x29, #88
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	add	x26, x8, #16
Lloh18:
	adrp	x27, _IID_NULL@GOTPAGE
Lloh19:
	ldr	x27, [x27, _IID_NULL@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w21, w21, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_17
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x22
	add	x1, x8, #12
	mov	x0, x26
	bl	_IsEqualGUID
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x22
	add	x1, x8, #12
	mov	x0, x27
	bl	_IsEqualGUID
	cbz	x0, LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x22
	ldr	w8, [x8, #4]
	ldr	w9, [x19, #4]
	and	w10, w9, w8
	lsr	w8, w8, #24
	cmp	w8, #254
	ccmp	w10, w9, #4, ls
	b.eq	LBB0_12
	b	LBB0_13
LBB0_17:
	cbnz	w21, LBB0_21
LBB0_18:
	ldr	w8, [x19, #8]
	cmp	w8, w20
	b.ne	LBB0_20
; %bb.19:
Lloh20:
	adrp	x8, _DIDSAM_FORCESAVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DIDSAM_FORCESAVE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w25
	b.eq	LBB0_39
LBB0_20:
	mov	w21, #0
LBB0_21:
	str	w20, [x19, #8]
	sub	x8, x29, #88
	ldur	x26, [x8, #-256]                ; 8-byte Folded Reload
	str	w21, [x26]
	bl	_GetProcessHeap
	add	w8, w21, w21, lsl #1
	lsl	w2, w8, #2
	mov	w1, #0
	bl	_HeapAlloc
	mov	x20, x0
	stur	x0, [x29, #-176]
	stur	w21, [x29, #-184]
	bl	_GetProcessHeap
	ldr	x2, [x26, #8]
	mov	w1, #0
	bl	_HeapFree
	bl	_GetProcessHeap
	lsl	w2, w21, #2
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x26, #8]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_38
; %bb.22:
	sub	x8, x29, #72
	stur	x28, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #80
	stur	x20, [x8, #-256]                ; 8-byte Folded Spill
	sub	x8, x29, #116
	stur	w24, [x8, #-256]                ; 4-byte Folded Spill
	mov	x20, #0
	mov	x24, #0
	mov	w25, #0
	mov	w21, #0
Lloh23:
	adrp	x28, _DIDFT_BUTTON@GOTPAGE
Lloh24:
	ldr	x28, [x28, _DIDFT_BUTTON@GOTPAGEOFF]
	add	x8, x26, #16
	sub	x9, x29, #64
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	b	LBB0_26
LBB0_23:                                ;   in Loop: Header=BB0_26 Depth=1
	ldr	w0, [x8, x20]
	bl	_DIDFT_GETINSTANCE
	mov	x23, x0
	ldr	x8, [x19, #32]
	ldr	w0, [x8, x20]
	bl	_DIDFT_GETTYPE
Lloh25:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x28]
	cmp	w0, w8
	csel	w8, w9, w0, eq
Lloh28:
	adrp	x9, _DIDFT_RELAXIS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _DIDFT_RELAXIS@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
Lloh31:
	adrp	x10, _DIDFT_AXIS@GOTPAGE
Lloh32:
	ldr	x10, [x10, _DIDFT_AXIS@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w22, w10, w8, eq
	sub	x8, x29, #56
	stur	x24, [x8, #-256]                ; 8-byte Folded Spill
	mov	x24, x28
	mov	x28, x21
	mov	x21, x19
	mov	x19, x26
	sub	x8, x29, #72
	ldur	x26, [x8, #-256]                ; 8-byte Folded Reload
	mov	x0, x26
	mov	x1, x23
	mov	x2, x22
	bl	_dataformat_to_odf_by_type
	mov	x1, x0
	sxtw	x8, w25
	sub	x9, x29, #48
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	add	x8, x8, w25, sxtw #1
	lsl	x27, x8, #2
	sub	x8, x29, #80
	ldur	x23, [x8, #-256]                ; 8-byte Folded Reload
	add	x0, x23, x27
	ldr	w2, [x26]
	mov	x26, x19
	mov	x19, x21
	mov	x21, x28
	mov	x28, x24
	sub	x8, x29, #56
	ldur	x24, [x8, #-256]                ; 8-byte Folded Reload
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	ldr	w9, [x8, #8]
	ldr	x8, [x26, #8]
	add	x8, x8, x27
LBB0_24:                                ;   in Loop: Header=BB0_26 Depth=1
	str	w9, [x8, #8]
	str	w21, [x8]
	mov	w8, #12
	sub	x9, x29, #48
	ldur	x9, [x9, #-256]                 ; 8-byte Folded Reload
	madd	x8, x9, x8, x23
	str	w21, [x8, #4]
	ldr	w8, [x28]
	tst	w8, w22
	add	w8, w21, #4
	csinc	w21, w8, w21, eq
	add	w25, w25, #1
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x20, x20, #16
	cmp	x24, x8
	b.ge	LBB0_33
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	add	x1, x8, #12
	sub	x8, x29, #64
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
	bl	_IsEqualGUID
	ldr	x8, [x19, #32]
	cbnz	x0, LBB0_23
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	x8, x8, x20
	ldr	w1, [x8, #4]
	ldr	w8, [x19, #4]
	and	w9, w8, w1
	lsr	w10, w1, #24
	cmp	w10, #254
	ccmp	w9, w8, #4, ls
	b.ne	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x0, x26
	bl	_semantic_to_obj_id
	mov	x22, x0
	bl	_DIDFT_GETTYPE
	mov	x27, x0
	mov	x0, x22
	bl	_DIDFT_GETINSTANCE
	mov	x22, x0
Lloh34:
	adrp	x8, _DIDFT_PSHBUTTON@GOTPAGE
Lloh35:
	ldr	x8, [x8, _DIDFT_PSHBUTTON@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_26 Depth=1
	ldr	w23, [x28]
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_26 Depth=1
Lloh37:
	adrp	x8, _DIDFT_RELAXIS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DIDFT_RELAXIS@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
Lloh40:
	adrp	x9, _DIDFT_AXIS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DIDFT_AXIS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w27, w8
	csel	w23, w9, w27, eq
LBB0_31:                                ;   in Loop: Header=BB0_26 Depth=1
	sub	x8, x29, #72
	ldur	x0, [x8, #-256]                 ; 8-byte Folded Reload
	mov	x1, x22
	mov	x2, x23
	bl	_dataformat_to_odf_by_type
	mov	x27, x0
Lloh43:
	adrp	x0, l_.str@PAGE
Lloh44:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x27
	mov	x2, x22
	mov	x3, x23
	bl	_TRACE
	cbz	x27, LBB0_25
; %bb.32:                               ;   in Loop: Header=BB0_26 Depth=1
	mov	x8, x25
	sxtw	x8, w8
	sub	x9, x29, #48
	stur	x8, [x9, #-256]                 ; 8-byte Folded Spill
	add	x8, x8, w25, sxtw #1
	lsl	x26, x8, #2
	mov	x22, x23
	sub	x8, x29, #80
	ldur	x23, [x8, #-256]                ; 8-byte Folded Reload
	add	x0, x23, x26
	sub	x8, x29, #72
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	ldr	w2, [x8]
	mov	x1, x27
	bl	_memcpy
	ldr	x8, [x19, #32]
	add	x8, x8, x20
	ldr	w9, [x8, #8]
	sub	x8, x29, #88
	ldur	x8, [x8, #-256]                 ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	add	x8, x8, x26
	sub	x10, x29, #88
	ldur	x26, [x10, #-256]               ; 8-byte Folded Reload
	b	LBB0_24
LBB0_33:
	sub	x8, x29, #116
	ldur	w23, [x8, #-256]                ; 4-byte Folded Reload
	sub	x8, x29, #80
	ldur	x20, [x8, #-256]                ; 8-byte Folded Reload
	cbz	w25, LBB0_38
; %bb.34:
	stur	w25, [x29, #-184]
	sub	x1, x29, #192
	mov	x0, x23
	bl	_IDirectInputDevice8_SetDataFormat
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
	ldr	d0, [x19, #24]
	stur	d0, [x29, #-232]
Lloh45:
	adrp	x8, lCPI0_3@PAGE
Lloh46:
	ldr	d8, [x8, lCPI0_3@PAGEOFF]
Lloh47:
	adrp	x20, _DIPH_DEVICE@GOTPAGE
Lloh48:
	ldr	x20, [x20, _DIPH_DEVICE@GOTPAGEOFF]
	stur	d8, [x29, #-256]
	ldr	x8, [x20]
	stur	x8, [x29, #-248]
Lloh49:
	adrp	x8, _DIPROP_RANGE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DIPROP_RANGE@GOTPAGEOFF]
Lloh51:
	ldr	w1, [x8]
	sub	x2, x29, #256
	mov	x0, x23
	bl	_IDirectInputDevice8_SetProperty
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_36
; %bb.35:
	sub	x9, x29, #224
	add	x2, x9, #8
	stur	x8, [x29, #-224]
	stur	d8, [x29, #-216]
	ldr	x8, [x20]
	stur	x8, [x29, #-208]
Lloh52:
	adrp	x8, _DIPROP_BUFFERSIZE@GOTPAGE
Lloh53:
	ldr	x8, [x8, _DIPROP_BUFFERSIZE@GOTPAGEOFF]
Lloh54:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_IDirectInputDevice8_SetProperty
LBB0_36:
	sub	x8, x29, #104
	ldur	x21, [x8, #-256]                ; 8-byte Folded Reload
	sub	x8, x29, #112
	ldur	x1, [x8, #-256]                 ; 8-byte Folded Reload
	cbz	x1, LBB0_40
; %bb.37:
Lloh55:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh57:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_lstrcpynW
	b	LBB0_41
LBB0_38:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	bl	_HeapFree
LBB0_39:
Lloh58:
	adrp	x8, _DI_NOEFFECT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _DI_NOEFFECT@GOTPAGEOFF]
	b	LBB0_42
LBB0_40:
	sub	x1, x29, #292
	mov	x0, x21
	bl	_GetUserNameW
LBB0_41:
	sub	x8, x29, #288
	add	x22, x8, #8
	sub	x8, x29, #24
	stur	d8, [x8, #-256]
	ldr	x8, [x20]
	sub	x9, x29, #8
	stur	xzr, [x9, #-256]
	sub	x9, x29, #16
	stur	x8, [x9, #-256]
	bl	_ARRAY_SIZE
	mov	x1, x21
	mov	x2, x0
	bl	_lstrcpynW
Lloh60:
	adrp	x8, _DIPROP_USERNAME@GOTPAGE
Lloh61:
	ldr	x8, [x8, _DIPROP_USERNAME@GOTPAGEOFF]
Lloh62:
	ldr	w1, [x8]
	mov	x0, x23
	mov	x2, x22
	bl	_IDirectInputDevice8_SetProperty
	mov	x0, x23
	mov	x1, x19
	mov	x2, x21
	bl	_save_mapping_settings
Lloh63:
	adrp	x8, _DI_OK@GOTPAGE
Lloh64:
	ldr	x8, [x8, _DI_OK@GOTPAGEOFF]
LBB0_42:
	sub	x9, x29, #96
	ldur	x17, [x9, #-256]                ; 8-byte Folded Reload
LBB0_43:
	ldr	w0, [x8]
	mov	sp, x17
	ldur	x8, [x29, #-160]
Lloh65:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh66:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	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_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdrp	Lloh9, Lloh11
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdrp	Lloh14, Lloh16
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdr	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_DIERR_ACQUIRED,4,2             ; @DIERR_ACQUIRED
	.comm	_DIDF_RELAXIS,4,2               ; @DIDF_RELAXIS
	.comm	_IID_NULL,4,2                   ; @IID_NULL
	.comm	_DIDSAM_FORCESAVE,4,2           ; @DIDSAM_FORCESAVE
	.comm	_DI_NOEFFECT,4,2                ; @DI_NOEFFECT
	.comm	_DIDFT_PSHBUTTON,4,2            ; @DIDFT_PSHBUTTON
	.comm	_DIDFT_BUTTON,4,2               ; @DIDFT_BUTTON
	.comm	_DIDFT_RELAXIS,4,2              ; @DIDFT_RELAXIS
	.comm	_DIDFT_AXIS,4,2                 ; @DIDFT_AXIS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"obj %p, inst 0x%08x, type 0x%08x\n"

	.comm	_DIPH_DEVICE,8,3                ; @DIPH_DEVICE
	.comm	_DIPROP_RANGE,4,2               ; @DIPROP_RANGE
	.comm	_DIPROP_BUFFERSIZE,4,2          ; @DIPROP_BUFFERSIZE
	.comm	_DIDSAM_NOUSER,4,2              ; @DIDSAM_NOUSER
	.comm	_DIPROP_USERNAME,4,2            ; @DIPROP_USERNAME
	.comm	_DI_OK,4,2                      ; @DI_OK
.subsections_via_symbols
