	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ams_input_exit                 ## -- Begin function ams_input_exit
	.p2align	4, 0x90
_ams_input_exit:                        ## @ams_input_exit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_ams_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_dev_attr_joystick@GOTPCREL(%rip), %rsi
	callq	_device_remove_file
	movq	_ams_input_mutex@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	xorl	%eax, %eax
	callq	_ams_input_disable
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ams_info,8,3                   ## @ams_info
	.comm	_dev_attr_joystick,4,2          ## @dev_attr_joystick
	.comm	_ams_input_mutex,4,2            ## @ams_input_mutex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ams_input_exit                 ; -- Begin function ams_input_exit
	.p2align	2
_ams_input_exit:                        ; @ams_input_exit
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _ams_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ams_info@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x1, _dev_attr_joystick@GOTPAGE
Lloh4:
	ldr	x1, [x1, _dev_attr_joystick@GOTPAGEOFF]
	bl	_device_remove_file
Lloh5:
	adrp	x19, _ams_input_mutex@GOTPAGE
Lloh6:
	ldr	x19, [x19, _ams_input_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
	bl	_ams_input_disable
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ams_info,8,3                   ; @ams_info
	.comm	_dev_attr_joystick,4,2          ; @dev_attr_joystick
	.comm	_ams_input_mutex,4,2            ; @ams_input_mutex
.subsections_via_symbols
