	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fujitsu_send_state
_fujitsu_send_state:                    ## @fujitsu_send_state
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$221, %edi
	callq	_fujitsu_read_register
	movl	%eax, %esi
	andl	$2, %esi
	movq	_fujitsu@GOTPCREL(%rip), %r14
	movl	4(%r14), %ecx
	movq	_INVERT_DOCK_STATE_BIT@GOTPCREL(%rip), %rdi
	movl	%esi, %edx
	shrl	%edx
	xorl	$1, %edx
	testl	%ecx, (%rdi)
	cmovel	%esi, %edx
	movq	_FORCE_TABLET_MODE_IF_UNDOCK@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_2
## %bb.1:
	movl	$1, %ebx
	testl	%edx, %edx
	je	LBB0_3
LBB0_2:
	andl	$1, %eax
	movq	_INVERT_TABLET_MODE_BIT@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	testl	%ecx, (%rsi)
	setne	%bl
	xorl	%eax, %ebx
LBB0_3:
	movl	(%r14), %edi
	movq	_SW_DOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_input_report_switch
	movl	(%r14), %edi
	movq	_SW_TABLET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_switch
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_fujitsu,8,2                    ## @fujitsu
	.comm	_INVERT_DOCK_STATE_BIT,4,2      ## @INVERT_DOCK_STATE_BIT
	.comm	_FORCE_TABLET_MODE_IF_UNDOCK,4,2 ## @FORCE_TABLET_MODE_IF_UNDOCK
	.comm	_INVERT_TABLET_MODE_BIT,4,2     ## @INVERT_TABLET_MODE_BIT
	.comm	_SW_DOCK,4,2                    ## @SW_DOCK
	.comm	_SW_TABLET_MODE,4,2             ## @SW_TABLET_MODE
	.no_dead_strip	_fujitsu_send_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fujitsu_send_state
_fujitsu_send_state:                    ; @fujitsu_send_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	w0, #221
	bl	_fujitsu_read_register
	and	w9, w0, #0x2
Lloh0:
	adrp	x20, _fujitsu@GOTPAGE
Lloh1:
	ldr	x20, [x20, _fujitsu@GOTPAGEOFF]
Lloh2:
	adrp	x10, _INVERT_DOCK_STATE_BIT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _INVERT_DOCK_STATE_BIT@GOTPAGEOFF]
	ldr	w8, [x20, #4]
Lloh4:
	ldr	w10, [x10]
	ubfx	w11, w0, #1, #1
	eor	w11, w11, #0x1
	tst	w10, w8
	csel	w2, w9, w11, eq
Lloh5:
	adrp	x9, _FORCE_TABLET_MODE_IF_UNDOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FORCE_TABLET_MODE_IF_UNDOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w9, w9, w8
	cmp	w9, #0
	ccmp	w2, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	and	w9, w0, #0x1
Lloh8:
	adrp	x10, _INVERT_TABLET_MODE_BIT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _INVERT_TABLET_MODE_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	eor	w19, w9, w8
	b	LBB0_3
LBB0_2:
	mov	w19, #1
LBB0_3:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _SW_DOCK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SW_DOCK@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_input_report_switch
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _SW_TABLET_MODE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SW_TABLET_MODE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_input_report_switch
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_fujitsu,8,2                    ; @fujitsu
	.comm	_INVERT_DOCK_STATE_BIT,4,2      ; @INVERT_DOCK_STATE_BIT
	.comm	_FORCE_TABLET_MODE_IF_UNDOCK,4,2 ; @FORCE_TABLET_MODE_IF_UNDOCK
	.comm	_INVERT_TABLET_MODE_BIT,4,2     ; @INVERT_TABLET_MODE_BIT
	.comm	_SW_DOCK,4,2                    ; @SW_DOCK
	.comm	_SW_TABLET_MODE,4,2             ; @SW_TABLET_MODE
	.no_dead_strip	_fujitsu_send_state
.subsections_via_symbols
