	.file	"extr_joystick.c_device_disabled_registry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Disabling joystick '%s' based on registry key.\n"
	.text
	.p2align 4
	.globl	device_disabled_registry
	.type	device_disabled_registry, @function
device_disabled_registry:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	sub	rsp, 32
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_PATH[rip]
	mov	rcx, rsp
	mov	rbx, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L36:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L36
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L4:
	lea	rdi, -64[rbp]
	lea	rsi, -56[rbp]
	mov	r13d, DWORD PTR FALSE[rip]
	mov	r14, rsp
	call	get_app_key@PLT
	mov	rdi, QWORD PTR -56[rbp]
	test	rdi, rdi
	jne	.L38
.L5:
	mov	rdi, QWORD PTR -64[rbp]
	test	rdi, rdi
	jne	.L39
.L7:
	mov	rsi, QWORD PTR -56[rbp]
	mov	r8d, ebx
	mov	rcx, r14
	mov	rdx, r12
	call	get_config_key@PLT
	test	eax, eax
	jne	.L9
	mov	rsi, r14
	lea	rdi, disabled_str.1945[rip]
	call	strcmp@PLT
	test	eax, eax
	je	.L40
.L9:
	mov	rdi, QWORD PTR -56[rbp]
	test	rdi, rdi
	jne	.L41
.L10:
	mov	rdi, QWORD PTR -64[rbp]
	test	rdi, rdi
	jne	.L42
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	lea	rsp, -32[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L39:
	.cfi_restore_state
	lea	rdx, -48[rbp]
	lea	rsi, joystick_key.1946[rip]
	call	RegOpenKeyA@PLT
	test	rax, rax
	je	.L8
	mov	QWORD PTR -48[rbp], 0
.L8:
	mov	rdi, QWORD PTR -64[rbp]
	call	RegCloseKey@PLT
	mov	rdi, QWORD PTR -48[rbp]
	mov	QWORD PTR -64[rbp], rdi
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L38:
	lea	rdx, -48[rbp]
	lea	rsi, joystick_key.1946[rip]
	call	RegOpenKeyA@PLT
	test	rax, rax
	je	.L6
	mov	QWORD PTR -48[rbp], 0
.L6:
	mov	rdi, QWORD PTR -56[rbp]
	call	RegCloseKey@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L42:
	call	RegCloseKey@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	call	RegCloseKey@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L37:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	TRACE@PLT
	mov	r13d, DWORD PTR TRUE[rip]
	jmp	.L9
.L43:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	device_disabled_registry, .-device_disabled_registry
	.section	.rodata
	.align 8
	.type	disabled_str.1945, @object
	.size	disabled_str.1945, 9
disabled_str.1945:
	.string	"disabled"
	.align 8
	.type	joystick_key.1946, @object
	.size	joystick_key.1946, 10
joystick_key.1946:
	.string	"Joysticks"
	.comm	TRUE,4,4
	.comm	MAX_PATH,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_joystick.c_device_disabled_registry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Disabling joystick '%s' based on registry key.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	device_disabled_registry
	.syntax unified
	.arm
	.fpu softvfp
	.type	device_disabled_registry, %function
device_disabled_registry:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	ldr	r3, .L36
	ldr	r2, .L36+4
	ldr	r5, [r3]
	mov	r4, r0
	add	r3, r5, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L36+8
	sub	r1, fp, #32
	sub	r0, fp, #36
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r7, [r2]
	bl	get_app_key
	ldr	r0, [fp, #-32]
	add	r6, sp, #8
	cmp	r0, #0
	bne	.L30
.L2:
	ldr	r0, [fp, #-36]
	cmp	r0, #0
	bne	.L31
.L4:
	mov	r3, r6
	mov	r2, r4
	ldr	r1, [fp, #-32]
	str	r5, [sp]
	bl	get_config_key
	cmp	r0, #0
	bne	.L6
	mov	r1, r6
	ldr	r0, .L36+12
	bl	strcmp
	cmp	r0, #0
	beq	.L32
.L6:
	ldr	r0, [fp, #-32]
	cmp	r0, #0
	bne	.L33
.L7:
	ldr	r0, [fp, #-36]
	cmp	r0, #0
	bne	.L34
.L1:
	ldr	r3, .L36+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r7
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L31:
	ldr	r1, .L36+16
	sub	r2, fp, #28
	bl	RegOpenKeyA
	cmp	r0, #0
	movne	r3, #0
	ldr	r0, [fp, #-36]
	strne	r3, [fp, #-28]
	bl	RegCloseKey
	ldr	r0, [fp, #-28]
	str	r0, [fp, #-36]
	b	.L4
.L30:
	ldr	r1, .L36+16
	sub	r2, fp, #28
	bl	RegOpenKeyA
	cmp	r0, #0
	movne	r3, #0
	ldr	r0, [fp, #-32]
	strne	r3, [fp, #-28]
	bl	RegCloseKey
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	b	.L2
.L34:
	bl	RegCloseKey
	b	.L1
.L33:
	bl	RegCloseKey
	b	.L7
.L32:
	mov	r1, r4
	ldr	r0, .L36+20
	bl	TRACE
	ldr	r3, .L36+24
	ldr	r7, [r3]
	b	.L6
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	MAX_PATH
	.word	FALSE
	.word	.LC1
	.word	.LANCHOR0+12
	.word	.LANCHOR0
	.word	.LC0
	.word	TRUE
	.size	device_disabled_registry, .-device_disabled_registry
	.comm	TRUE,4,4
	.comm	MAX_PATH,4,4
	.comm	FALSE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	joystick_key.4230, %object
	.size	joystick_key.4230, 10
joystick_key.4230:
	.ascii	"Joysticks\000"
	.space	2
	.type	disabled_str.4229, %object
	.size	disabled_str.4229, 9
disabled_str.4229:
	.ascii	"disabled\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
