	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_get_tablet_mode
_hotkey_get_tablet_mode:                ## @hotkey_get_tablet_mode
	.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	%rdi, %r14
	movq	_tp_features@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.2:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rsi
	xorl	%eax, %eax
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_TP_HOTKEY_TABLET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ecx, %ecx
	andl	-20(%rbp), %eax
	setne	%cl
	movl	%ecx, (%r14)
	jmp	LBB0_7
LBB0_5:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rdx
	leaq	L_.str.3(%rip), %rcx
	xorl	%ebx, %ebx
	leaq	-20(%rbp), %rsi
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	-20(%rbp), %edi
	xorl	%esi, %esi
	callq	_hotkey_gmms_get_tablet_mode
	movl	%eax, (%r14)
	jmp	LBB0_7
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_features,4,2                ## @tp_features
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MHKG"

L_.str.1:                               ## @.str.1
	.asciz	"d"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_TP_HOTKEY_TABLET_MASK,4,2      ## @TP_HOTKEY_TABLET_MASK
L_.str.2:                               ## @.str.2
	.asciz	"GMMS"

L_.str.3:                               ## @.str.3
	.asciz	"dd"

	.no_dead_strip	_hotkey_get_tablet_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_get_tablet_mode
_hotkey_get_tablet_mode:                ; @hotkey_get_tablet_mode
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _tp_features@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
Lloh8:
	adrp	x3, l_.str.1@PAGE
Lloh9:
	add	x3, x3, l_.str.1@PAGEOFF
	add	x1, sp, #12
	bl	_acpi_evalf
	cbz	w0, LBB0_8
; %bb.3:
	mov	w0, #0
	ldr	w8, [sp, #12]
Lloh10:
	adrp	x9, _TP_HOTKEY_TABLET_MASK@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TP_HOTKEY_TABLET_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w8, ne
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh14:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	str	xzr, [sp]
Lloh16:
	adrp	x2, l_.str.2@PAGE
Lloh17:
	add	x2, x2, l_.str.2@PAGEOFF
Lloh18:
	adrp	x3, l_.str.3@PAGE
Lloh19:
	add	x3, x3, l_.str.3@PAGEOFF
	add	x1, sp, #12
	bl	_acpi_evalf
	cbz	w0, LBB0_8
; %bb.5:
	ldr	w0, [sp, #12]
	mov	x1, #0
	bl	_hotkey_gmms_get_tablet_mode
	mov	x8, x0
	mov	w0, #0
LBB0_6:
	str	w8, [x19]
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh20:
	adrp	x8, _EIO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_features,4,2                ; @tp_features
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MHKG"

l_.str.1:                               ; @.str.1
	.asciz	"d"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_TP_HOTKEY_TABLET_MASK,4,2      ; @TP_HOTKEY_TABLET_MASK
l_.str.2:                               ; @.str.2
	.asciz	"GMMS"

l_.str.3:                               ; @.str.3
	.asciz	"dd"

	.no_dead_strip	_hotkey_get_tablet_mode
.subsections_via_symbols
