	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function surface_button_notify
_surface_button_notify:                 ## @surface_button_notify
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_acpi_driver_data
	movq	%rax, %r14
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	leal	-128(%rbx), %eax
	cmpl	$8, %eax
	ja	LBB0_3
## %bb.1:
	xorl	%r12d, %r12d
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rdx, %rbx
	callq	_dev_warn_once
	movq	%rbx, %rdx
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%rdx, %r12
	movl	%ebx, %edx
	callq	_dev_info_ratelimited
	movq	%r12, %rdx
LBB0_4:
	xorl	%r12d, %r12d
	cmpl	(%rdx), %r13d
	jne	LBB0_14
	jmp	LBB0_17
LBB0_5:
	movl	$1, %r12d
LBB0_6:
	movq	_KEY_VOLUMEUP@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_7:
	movl	$1, %r12d
LBB0_8:
	movq	_KEY_VOLUMEDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	movl	$1, %r12d
LBB0_10:
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movl	$1, %r12d
LBB0_12:
	movq	_KEY_LEFTMETA@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %r13d
	cmpl	(%rdx), %r13d
	je	LBB0_17
LBB0_14:
	movq	8(%r14), %rbx
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.15:
	movq	(%r14), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pm_wakeup_dev_event
LBB0_16:
	cmpq	$0, (%r14)
	je	LBB0_18
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_input_report_key
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_12
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_KEY_LEFTMETA,4,2               ## @KEY_LEFTMETA
	.comm	_KEY_VOLUMEUP,4,2               ## @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,4,2             ## @KEY_VOLUMEDOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tablet mode is not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unsupported event [0x%x]\n"

	.no_dead_strip	_surface_button_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function surface_button_notify
_surface_button_notify:                 ; @surface_button_notify
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x20, x0
	bl	_acpi_driver_data
	mov	x19, x0
Lloh0:
	adrp	x23, _KEY_RESERVED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _KEY_RESERVED@GOTPAGEOFF]
	ldr	w21, [x23]
	sub	w11, w22, #128
	cmp	w11, #8
	b.hi	LBB0_3
; %bb.1:
	mov	w22, #0
	mov	w8, #0
	mov	w9, #0
	mov	w10, #0
Lloh2:
	adrp	x12, lJTI0_0@PAGE
Lloh3:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x13, LBB0_2
	ldrb	w14, [x12, x11]
	add	x13, x13, x14, lsl #2
	br	x13
LBB0_2:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn_once
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_dev_info_ratelimited
LBB0_4:
	mov	w22, #0
	b	LBB0_13
LBB0_5:
	mov	w9, #1
LBB0_6:
Lloh8:
	adrp	x8, _KEY_VOLUMEUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_VOLUMEUP@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	mov	x22, x9
	b	LBB0_13
LBB0_7:
	mov	w10, #1
LBB0_8:
Lloh11:
	adrp	x8, _KEY_VOLUMEDOWN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KEY_VOLUMEDOWN@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	mov	x22, x10
	b	LBB0_13
LBB0_9:
	mov	w22, #1
LBB0_10:
Lloh14:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh16:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_11:
	mov	w8, #1
LBB0_12:
Lloh17:
	adrp	x9, _KEY_LEFTMETA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _KEY_LEFTMETA@GOTPAGEOFF]
Lloh19:
	ldr	w21, [x9]
	mov	x22, x8
LBB0_13:
	ldr	w8, [x23]
	cmp	w21, w8
	b.eq	LBB0_17
; %bb.14:
	ldr	x23, [x19, #8]
	cbz	w22, LBB0_16
; %bb.15:
	ldr	x2, [x19]
	mov	x0, x20
	mov	w1, #0
	bl	_pm_wakeup_dev_event
LBB0_16:
	ldr	x8, [x19]
	cbz	x8, LBB0_18
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_input_report_key
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_KEY_LEFTMETA,4,2               ; @KEY_LEFTMETA
	.comm	_KEY_VOLUMEUP,4,2               ; @KEY_VOLUMEUP
	.comm	_KEY_VOLUMEDOWN,4,2             ; @KEY_VOLUMEDOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tablet mode is not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unsupported event [0x%x]\n"

	.no_dead_strip	_surface_button_notify
.subsections_via_symbols
