	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_laptop_report_input_event
_sony_laptop_report_input_event:        ## @sony_laptop_report_input_event
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_sony_laptop_input@GOTPCREL(%rip), %r14
	movq	16(%r14), %r15
	movq	24(%r14), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	_SONYPI_EVENT_FNKEY_RELEASED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_15
## %bb.1:
	movl	%edi, %ebx
	movq	_SONYPI_EVENT_ANYBUTTON_RELEASED@GOTPCREL(%rip), %rax
	cmpl	%edi, (%rax)
	je	LBB0_15
## %bb.2:
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_7
## %bb.3:
	leal	-131(%rbx), %eax
	cmpl	$2, %eax
	jae	LBB0_4
## %bb.9:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$-1, %edx
	jmp	LBB0_8
LBB0_7:
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
LBB0_8:
	callq	_input_report_rel
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_4:
	cmpl	$130, %ebx
	jne	LBB0_5
## %bb.16:
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	%r13d, -56(%rbp)
	movq	%r12, -64(%rbp)
	testq	%r12, %r12
	je	LBB0_17
LBB0_14:
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	callq	_input_report_key
	movq	%r12, %rdi
	callq	_input_sync
	leaq	8(%r14), %rdi
	leaq	4(%r14), %rcx
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_kfifo_in_locked
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$10, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_sony_laptop_input_index@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cmpl	%ebx, %eax
	jle	LBB0_6
## %bb.10:
	movq	(%r12), %rax
	movslq	%ebx, %rcx
	movslq	(%rax,%rcx,4), %rcx
	cmpq	$-1, %rcx
	je	LBB0_17
## %bb.11:
	movq	_sony_laptop_input_keycode_map@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rcx,4), %r13d
	movl	%r13d, -56(%rbp)
	movq	_KEY_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_17
## %bb.12:
	movq	%r15, -64(%rbp)
	testq	%r15, %r15
	je	LBB0_17
## %bb.13:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_input_event
	movq	%r15, %r12
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_dprintk
LBB0_17:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dprintk                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sony_laptop_input,32,3         ## @sony_laptop_input
	.comm	_SONYPI_EVENT_FNKEY_RELEASED,4,2 ## @SONYPI_EVENT_FNKEY_RELEASED
	.comm	_SONYPI_EVENT_ANYBUTTON_RELEASED,4,2 ## @SONYPI_EVENT_ANYBUTTON_RELEASED
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_sony_laptop_input_index,8,3    ## @sony_laptop_input_index
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sony_laptop_report_input_event, event not known: %d\n"

	.comm	_sony_laptop_input_keycode_map,8,3 ## @sony_laptop_input_keycode_map
	.comm	_KEY_UNKNOWN,4,2                ## @KEY_UNKNOWN
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
	.comm	_jiffies,8,3                    ## @jiffies
L_.str.1:                               ## @.str.1
	.asciz	"unknown input event %.2x\n"

	.no_dead_strip	_sony_laptop_report_input_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_laptop_report_input_event
_sony_laptop_report_input_event:        ; @sony_laptop_report_input_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x19, _sony_laptop_input@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sony_laptop_input@GOTPAGEOFF]
	ldp	x21, x22, [x19, #16]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
Lloh2:
	adrp	x8, _SONYPI_EVENT_FNKEY_RELEASED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SONYPI_EVENT_FNKEY_RELEASED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _SONYPI_EVENT_ANYBUTTON_RELEASED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SONYPI_EVENT_ANYBUTTON_RELEASED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	mov	x20, x0
	sub	w8, w0, #128
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.3:
	sub	w8, w20, #131
	cmp	w8, #2
	b.hs	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #-1
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
LBB0_6:
	bl	_input_report_rel
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_input_sync
LBB0_7:
	cmp	w20, #130
	b.ne	LBB0_10
; %bb.8:
Lloh14:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh16:
	ldr	w23, [x8]
	str	w23, [sp, #16]
	str	x22, [sp, #8]
	cbz	x22, LBB0_16
LBB0_9:
	mov	x0, x22
	mov	x1, x23
	mov	w2, #1
	bl	_input_report_key
	mov	x0, x22
	bl	_input_sync
	add	x0, x19, #8
	add	x3, x19, #4
	add	x1, sp, #8
	mov	w2, #24
	bl	_kfifo_in_locked
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	x20, [x8]
	mov	w0, #10
	bl	_msecs_to_jiffies
	add	x1, x0, x20
	mov	x0, x19
	bl	_mod_timer
	b	LBB0_1
LBB0_10:
Lloh20:
	adrp	x22, _sony_laptop_input_index@GOTPAGE
Lloh21:
	ldr	x22, [x22, _sony_laptop_input_index@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, w20
	b.le	LBB0_15
; %bb.11:
	ldr	x8, [x22]
	ldrsw	x3, [x8, w20, sxtw #2]
	cmn	w3, #1
	b.eq	LBB0_16
; %bb.12:
Lloh22:
	adrp	x8, _sony_laptop_input_keycode_map@GOTPAGE
Lloh23:
	ldr	x8, [x8, _sony_laptop_input_keycode_map@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w23, [x8, x3, lsl #2]
	str	w23, [sp, #16]
Lloh25:
	adrp	x8, _KEY_UNKNOWN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _KEY_UNKNOWN@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmp	w23, w8
	b.eq	LBB0_16
; %bb.13:
	str	x21, [sp, #8]
	cbz	x21, LBB0_16
; %bb.14:
Lloh28:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x21
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_input_event
	mov	x22, x21
	b	LBB0_9
LBB0_15:
Lloh34:
	adrp	x0, l_.str@PAGE
Lloh35:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_dprintk
LBB0_16:
Lloh36:
	adrp	x0, l_.str.1@PAGE
Lloh37:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dprintk
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_sony_laptop_input,32,3         ; @sony_laptop_input
	.comm	_SONYPI_EVENT_FNKEY_RELEASED,4,2 ; @SONYPI_EVENT_FNKEY_RELEASED
	.comm	_SONYPI_EVENT_ANYBUTTON_RELEASED,4,2 ; @SONYPI_EVENT_ANYBUTTON_RELEASED
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_sony_laptop_input_index,8,3    ; @sony_laptop_input_index
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sony_laptop_report_input_event, event not known: %d\n"

	.comm	_sony_laptop_input_keycode_map,8,3 ; @sony_laptop_input_keycode_map
	.comm	_KEY_UNKNOWN,4,2                ; @KEY_UNKNOWN
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
	.comm	_jiffies,8,3                    ; @jiffies
l_.str.1:                               ; @.str.1
	.asciz	"unknown input event %.2x\n"

	.no_dead_strip	_sony_laptop_report_input_event
.subsections_via_symbols
