	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function input_fujitsu_setup
_input_fujitsu_setup:                   ## @input_fujitsu_setup
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r13, 56(%rax)
	movq	%rbx, (%rax)
	movq	%r15, 8(%rax)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%r12)
	movabsq	$4294973236, %rax               ## imm = 0x100001734
	movq	%rax, 40(%r12)
	movl	$257, 48(%r12)                  ## imm = 0x101
	movq	_fujitsu@GOTPCREL(%rip), %r15
	movq	8(%r15), %rdi
	movq	%rdi, 32(%r12)
	movl	$8, 16(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, 20(%r12)
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	callq	___set_bit
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	movq	_EV_KEY@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	movq	(%rdi,%rbx,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	8(%r15), %rdi
	jmp	LBB0_6
LBB0_7:
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	_EV_SW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_SW_DOCK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %esi
	movq	_SW_TABLET_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	callq	_input_set_capability
	movq	%r12, %rdi
	callq	_input_register_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_input_free_device
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_9:
	movq	%r12, (%r15)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_fujitsu,16,3                   ## @fujitsu
	.comm	_EV_REP,4,2                     ## @EV_REP
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,8,3                   ## @MSC_SCAN
	.comm	_EV_SW,4,2                      ## @EV_SW
	.comm	_SW_DOCK,8,3                    ## @SW_DOCK
	.comm	_SW_TABLET_MODE,8,3             ## @SW_TABLET_MODE
	.no_dead_strip	_input_fujitsu_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function input_fujitsu_setup
lCPI0_0:
	.long	5940                            ; 0x1734
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_input_fujitsu_setup:                   ; @input_fujitsu_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_input_allocate_device
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	str	x22, [x0, #56]
	stp	x21, x20, [x0]
Lloh0:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x0, #40]
	mov	w9, #257
	stp	w9, w8, [x0, #48]
Lloh5:
	adrp	x21, _fujitsu@GOTPAGE
Lloh6:
	ldr	x21, [x21, _fujitsu@GOTPAGEOFF]
	ldr	x0, [x21, #8]
	str	x0, [x19, #32]
	mov	w8, #8
	str	w8, [x19, #16]
	bl	_ARRAY_SIZE
	str	w0, [x19, #20]
Lloh7:
	adrp	x8, _EV_REP@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	___set_bit
	ldr	x0, [x21, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x20, #0
Lloh10:
	adrp	x22, _EV_KEY@GOTPAGE
Lloh11:
	ldr	x22, [x22, _EV_KEY@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x20, x20, #1
	bl	_ARRAY_SIZE
	cmp	x20, w0, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21, #8]
	ldr	x2, [x0, x20, lsl #3]
	cbz	x2, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_input_set_capability
	ldr	x0, [x21, #8]
	b	LBB0_3
LBB0_6:
Lloh12:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_input_set_capability
Lloh18:
	adrp	x20, _EV_SW@GOTPAGE
Lloh19:
	ldr	x20, [x20, _EV_SW@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _SW_DOCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SW_DOCK@GOTPAGEOFF]
Lloh22:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_input_set_capability
	ldr	w1, [x20]
Lloh23:
	adrp	x8, _SW_TABLET_MODE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SW_TABLET_MODE@GOTPAGEOFF]
Lloh25:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_input_set_capability
	mov	x0, x19
	bl	_input_register_device
	mov	x20, x0
	cbz	w0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_input_free_device
	b	LBB0_10
LBB0_8:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_9:
	str	x19, [x21]
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_fujitsu,16,3                   ; @fujitsu
	.comm	_EV_REP,4,2                     ; @EV_REP
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,8,3                   ; @MSC_SCAN
	.comm	_EV_SW,4,2                      ; @EV_SW
	.comm	_SW_DOCK,8,3                    ; @SW_DOCK
	.comm	_SW_TABLET_MODE,8,3             ; @SW_TABLET_MODE
	.no_dead_strip	_input_fujitsu_setup
.subsections_via_symbols
