	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_laptop_remove_input
_sony_laptop_remove_input:              ## @sony_laptop_remove_input
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movq	_sony_laptop_input@GOTPCREL(%rip), %r14
	leaq	28(%r14), %rdi
	callq	_atomic_dec_and_test
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	24(%r14), %rdi
	callq	_del_timer_sync
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	callq	_kfifo_out
	cmpl	$16, %eax
	jne	LBB0_4
## %bb.2:
	movq	_sony_laptop_input@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %edi
	movl	-44(%rbp), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	movl	-48(%rbp), %edi
	callq	_input_sync
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	callq	_kfifo_out
	cmpl	$16, %eax
	je	LBB0_3
LBB0_4:
	movq	16(%r14), %rdi
	callq	_input_unregister_device
	movq	$0, 16(%r14)
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_input_unregister_device
	movq	$0, 8(%r14)
LBB0_6:
	movq	_sony_laptop_input@GOTPCREL(%rip), %rdi
	callq	_kfifo_free
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sony_laptop_input,32,3         ## @sony_laptop_input
	.no_dead_strip	_sony_laptop_remove_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_laptop_remove_input
_sony_laptop_remove_input:              ; @sony_laptop_remove_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	stp	xzr, xzr, [sp]
Lloh0:
	adrp	x19, _sony_laptop_input@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sony_laptop_input@GOTPAGEOFF]
	add	x0, x19, #28
	bl	_atomic_dec_and_test
	cbz	w0, LBB0_7
; %bb.1:
	add	x0, x19, #24
	bl	_del_timer_sync
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_kfifo_out
	cmp	w0, #16
	b.ne	LBB0_4
; %bb.2:
Lloh2:
	adrp	x20, _sony_laptop_input@GOTPAGE
Lloh3:
	ldr	x20, [x20, _sony_laptop_input@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w0, w1, [sp]
	mov	w2, #0
	bl	_input_report_key
	ldr	w0, [sp]
	bl	_input_sync
	mov	x1, sp
	mov	x0, x20
	mov	w2, #16
	bl	_kfifo_out
	cmp	w0, #16
	b.eq	LBB0_3
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_input_unregister_device
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_input_unregister_device
	str	xzr, [x19, #8]
LBB0_6:
Lloh4:
	adrp	x0, _sony_laptop_input@GOTPAGE
Lloh5:
	ldr	x0, [x0, _sony_laptop_input@GOTPAGEOFF]
	bl	_kfifo_free
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_sony_laptop_input,32,3         ; @sony_laptop_input
	.no_dead_strip	_sony_laptop_remove_input
.subsections_via_symbols
