	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmpc_tablet_handler
_cmpc_tablet_handler:                   ## @cmpc_tablet_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	addq	$4, %rdi
	callq	_dev_get_drvdata
	cmpl	$129, %r15d
	jne	LBB0_3
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edi
	leaq	-32(%rbp), %rsi
	callq	_cmpc_get_tablet
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SW_TABLET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, -32(%rbp)
	sete	%dl
	movq	%r14, %rdi
	callq	_input_report_switch
	movq	%r14, %rdi
	callq	_input_sync
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SW_TABLET_MODE,4,2             ## @SW_TABLET_MODE
	.no_dead_strip	_cmpc_tablet_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmpc_tablet_handler
_cmpc_tablet_handler:                   ; @cmpc_tablet_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
	add	x0, x0, #4
	bl	_dev_get_drvdata
	cmp	w21, #129
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20]
	add	x1, sp, #8
	bl	_cmpc_get_tablet
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SW_TABLET_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SW_TABLET_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w2, eq
	mov	x0, x19
	bl	_input_report_switch
	mov	x0, x19
	bl	_input_sync
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SW_TABLET_MODE,4,2             ; @SW_TABLET_MODE
	.no_dead_strip	_cmpc_tablet_handler
.subsections_via_symbols
