	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tpacpi_input_send_tabletsw
_tpacpi_input_send_tabletsw:            ## @tpacpi_input_send_tabletsw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.1:
	leaq	-20(%rbp), %rdi
	callq	_hotkey_get_tablet_mode
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	_tpacpi_inputdev_send_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_tpacpi_inputdev@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_SW_TABLET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpl	$0, -20(%rbp)
	setne	%dl
	callq	_input_report_switch
	movl	(%rbx), %edi
	callq	_input_sync
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_3:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_features,8,3                ## @tp_features
	.comm	_tpacpi_inputdev_send_mutex,4,2 ## @tpacpi_inputdev_send_mutex
	.comm	_tpacpi_inputdev,4,2            ## @tpacpi_inputdev
	.comm	_SW_TABLET_MODE,4,2             ## @SW_TABLET_MODE
	.no_dead_strip	_tpacpi_input_send_tabletsw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tpacpi_input_send_tabletsw
_tpacpi_input_send_tabletsw:            ; @tpacpi_input_send_tabletsw
	.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
Lloh0:
	adrp	x8, _tp_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_hotkey_get_tablet_mode
	cbnz	w0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x19, _tpacpi_inputdev_send_mutex@GOTPAGE
Lloh4:
	ldr	x19, [x19, _tpacpi_inputdev_send_mutex@GOTPAGEOFF]
	mov	x0, x19
	bl	_mutex_lock
Lloh5:
	adrp	x20, _tpacpi_inputdev@GOTPAGE
Lloh6:
	ldr	x20, [x20, _tpacpi_inputdev@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	adrp	x8, _SW_TABLET_MODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SW_TABLET_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w2, ne
	bl	_input_report_switch
	ldr	w0, [x20]
	bl	_input_sync
	mov	x0, x19
	bl	_mutex_unlock
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_features,8,3                ; @tp_features
	.comm	_tpacpi_inputdev_send_mutex,4,2 ; @tpacpi_inputdev_send_mutex
	.comm	_tpacpi_inputdev,4,2            ; @tpacpi_inputdev
	.comm	_SW_TABLET_MODE,4,2             ; @SW_TABLET_MODE
	.no_dead_strip	_tpacpi_input_send_tabletsw
.subsections_via_symbols
