	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_input_dev
_setup_input_dev:                       ## @setup_input_dev
	.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
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_allocate_polled_device
	movq	_wistron_idev@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_wistron_flush@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	_wistron_poll@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rax)
	movq	_POLL_INTERVAL_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rdi)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	movq	_wistron_device@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rdi)
	movq	_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_wistron_setup_keymap@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_sparse_keymap_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rdi
	callq	_input_register_polled_device
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	movq	(%r14), %rdi
	callq	_input_free_polled_device
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wistron_idev,8,3               ## @wistron_idev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_wistron_flush,4,2              ## @wistron_flush
	.comm	_wistron_poll,4,2               ## @wistron_poll
	.comm	_POLL_INTERVAL_DEFAULT,4,2      ## @POLL_INTERVAL_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wistron laptop buttons"

L_.str.1:                               ## @.str.1
	.asciz	"wistron/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_wistron_device,8,3             ## @wistron_device
	.comm	_keymap,4,2                     ## @keymap
	.comm	_wistron_setup_keymap,4,2       ## @wistron_setup_keymap
	.no_dead_strip	_setup_input_dev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_input_dev
_setup_input_dev:                       ; @setup_input_dev
	.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
	bl	_input_allocate_polled_device
Lloh0:
	adrp	x20, _wistron_idev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _wistron_idev@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _wistron_flush@GOTPAGE
Lloh3:
	ldr	x8, [x8, _wistron_flush@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #16]
Lloh5:
	adrp	x8, _wistron_poll@GOTPAGE
Lloh6:
	ldr	x8, [x8, _wistron_poll@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _POLL_INTERVAL_DEFAULT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _POLL_INTERVAL_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
	ldr	x0, [x0]
Lloh11:
	adrp	x8, l_.str@PAGE
Lloh12:
	add	x8, x8, l_.str@PAGEOFF
Lloh13:
	adrp	x9, l_.str.1@PAGE
Lloh14:
	add	x9, x9, l_.str.1@PAGEOFF
	stp	x8, x9, [x0]
Lloh15:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x0, #24]
Lloh18:
	adrp	x8, _wistron_device@GOTPAGE
Lloh19:
	ldr	x8, [x8, _wistron_device@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [x0, #16]
Lloh21:
	adrp	x8, _keymap@GOTPAGE
Lloh22:
	ldr	x8, [x8, _keymap@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _wistron_setup_keymap@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wistron_setup_keymap@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_sparse_keymap_setup
	mov	x19, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x0, [x20]
	bl	_input_register_polled_device
	mov	x19, x0
	cbz	w0, LBB0_5
LBB0_3:
	ldr	x0, [x20]
	bl	_input_free_polled_device
	b	LBB0_5
LBB0_4:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_wistron_idev,8,3               ; @wistron_idev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_wistron_flush,4,2              ; @wistron_flush
	.comm	_wistron_poll,4,2               ; @wistron_poll
	.comm	_POLL_INTERVAL_DEFAULT,4,2      ; @POLL_INTERVAL_DEFAULT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wistron laptop buttons"

l_.str.1:                               ; @.str.1
	.asciz	"wistron/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_wistron_device,8,3             ; @wistron_device
	.comm	_keymap,4,2                     ; @keymap
	.comm	_wistron_setup_keymap,4,2       ; @wistron_setup_keymap
	.no_dead_strip	_setup_input_dev
.subsections_via_symbols
