	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_disabled_registry       ## -- Begin function device_disabled_registry
	.p2align	4, 0x90
_device_disabled_registry:              ## @device_disabled_registry
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	callq	_get_app_key
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	_device_disabled_registry.joystick_key(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_RegOpenKeyA
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	$0, -48(%rbp)
LBB0_4:
	movq	-56(%rbp), %rdi
	callq	_RegCloseKey
	movq	-48(%rbp), %rsi
	movq	%rsi, -56(%rbp)
	jmp	LBB0_5
LBB0_1:
	xorl	%esi, %esi
LBB0_5:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.7:
	leaq	_device_disabled_registry.joystick_key(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_RegOpenKeyA
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	$0, -48(%rbp)
LBB0_9:
	movq	-64(%rbp), %rdi
	callq	_RegCloseKey
	movq	-48(%rbp), %rdi
	movq	%rdi, -64(%rbp)
	movq	-56(%rbp), %rsi
	jmp	LBB0_10
LBB0_6:
	xorl	%edi, %edi
LBB0_10:
	movq	%r15, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_get_config_key
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	leaq	_device_disabled_registry.disabled_str(%rip), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_13
## %bb.12:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_TRACE
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_13:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_RegCloseKey
LBB0_15:
	movq	-64(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_RegCloseKey
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%r14d, %eax
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_device_disabled_registry.disabled_str: ## @device_disabled_registry.disabled_str
	.asciz	"disabled"

_device_disabled_registry.joystick_key: ## @device_disabled_registry.joystick_key
	.asciz	"Joysticks"

	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_FALSE,4,2                      ## @FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling joystick '%s' based on registry key.\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_device_disabled_registry       ; -- Begin function device_disabled_registry
	.p2align	2
_device_disabled_registry:              ; @device_disabled_registry
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #32
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	w19, [x8]
	sub	x0, x29, #48
	sub	x1, x29, #56
	bl	_get_app_key
	ldur	x0, [x29, #-56]
	cbz	x0, LBB0_4
; %bb.1:
Lloh11:
	adrp	x1, _device_disabled_registry.joystick_key@PAGE
Lloh12:
	add	x1, x1, _device_disabled_registry.joystick_key@PAGEOFF
	sub	x2, x29, #64
	bl	_RegOpenKeyA
	cbz	x0, LBB0_3
; %bb.2:
	stur	xzr, [x29, #-64]
LBB0_3:
	ldur	x0, [x29, #-56]
	bl	_RegCloseKey
	ldur	x1, [x29, #-64]
	stur	x1, [x29, #-56]
	ldur	x0, [x29, #-48]
	cbnz	x0, LBB0_5
	b	LBB0_8
LBB0_4:
	mov	x1, #0
	ldur	x0, [x29, #-48]
	cbz	x0, LBB0_8
LBB0_5:
Lloh13:
	adrp	x1, _device_disabled_registry.joystick_key@PAGE
Lloh14:
	add	x1, x1, _device_disabled_registry.joystick_key@PAGEOFF
	sub	x2, x29, #64
	bl	_RegOpenKeyA
	cbz	x0, LBB0_7
; %bb.6:
	stur	xzr, [x29, #-64]
LBB0_7:
	ldur	x0, [x29, #-48]
	bl	_RegCloseKey
	ldp	x0, x1, [x29, #-64]
	stur	x0, [x29, #-48]
LBB0_8:
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_get_config_key
	cbnz	w0, LBB0_11
; %bb.9:
Lloh15:
	adrp	x0, _device_disabled_registry.disabled_str@PAGE
Lloh16:
	add	x0, x0, _device_disabled_registry.disabled_str@PAGEOFF
	mov	x1, x21
	bl	_strcmp
	cbnz	w0, LBB0_11
; %bb.10:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
LBB0_11:
	ldur	x0, [x29, #-56]
	cbz	x0, LBB0_13
; %bb.12:
	bl	_RegCloseKey
LBB0_13:
	ldur	x0, [x29, #-48]
	cbz	x0, LBB0_15
; %bb.14:
	bl	_RegCloseKey
LBB0_15:
	ldur	x8, [x29, #-40]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_device_disabled_registry.disabled_str: ; @device_disabled_registry.disabled_str
	.asciz	"disabled"

_device_disabled_registry.joystick_key: ; @device_disabled_registry.joystick_key
	.asciz	"Joysticks"

	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_FALSE,4,2                      ; @FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling joystick '%s' based on registry key.\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
