	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jornada680kbd_probe
_jornada680kbd_probe:                   ## @jornada680kbd_probe
	.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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_devm_input_allocate_polled_device
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, (%r15)
	movq	8(%r15), %rdi
	movq	_jornada_scancodes@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$8, %edx
	callq	_memcpy
	movq	%r15, 24(%rbx)
	movq	_jornadakbd680_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	$50, (%rbx)
	movq	8(%rbx), %r13
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %r12d
	movq	_EV_REP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%r12d, %eax
	movq	(%r13), %rcx
	movl	%eax, (%rcx)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%r13)
	leaq	L_.str.2(%rip), %rax
	movq	%rax, 16(%r13)
	movq	8(%r15), %rax
	movq	%rax, 56(%r13)
	movl	$2, 24(%r13)
	movq	_jornada_scancodes@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ARRAY_SIZE
	movl	%eax, 48(%r13)
	movq	%r14, 40(%r13)
	movq	_BUS_HOST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	$128, %rbx
	je	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	28(%r13), %esi
	callq	___set_bit
	jmp	LBB0_7
LBB0_8:
	movq	_KEY_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r13), %esi
	callq	___clear_bit
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MSC_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_input_set_capability
	movq	(%r15), %rdi
	callq	_input_register_polled_device
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_11
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to allocate polled input device\n"

	.comm	_jornada_scancodes,4,2          ## @jornada_scancodes
	.comm	_jornadakbd680_poll,4,2         ## @jornadakbd680_poll
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REP,4,2                     ## @EV_REP
L_.str.1:                               ## @.str.1
	.asciz	"HP Jornada 680 keyboard"

L_.str.2:                               ## @.str.2
	.asciz	"jornadakbd/input0"

	.comm	_BUS_HOST,4,2                   ## @BUS_HOST
	.comm	_KEY_RESERVED,4,2               ## @KEY_RESERVED
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_MSC_SCAN,4,2                   ## @MSC_SCAN
L_.str.3:                               ## @.str.3
	.asciz	"failed to register polled input device\n"

	.no_dead_strip	_jornada680kbd_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jornada680kbd_probe
_jornada680kbd_probe:                   ; @jornada680kbd_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_devm_input_allocate_polled_device
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
	str	x0, [x20]
	ldr	x0, [x20, #8]
Lloh3:
	adrp	x23, _jornada_scancodes@GOTPAGE
Lloh4:
	ldr	x23, [x23, _jornada_scancodes@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #8
	bl	_memcpy
	str	x20, [x21, #24]
Lloh5:
	adrp	x8, _jornadakbd680_poll@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jornadakbd680_poll@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	mov	w8, #50
	str	w8, [x21]
	ldr	x21, [x21, #8]
Lloh8:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	mov	x22, x0
Lloh11:
	adrp	x8, _EV_REP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_REP@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_BIT
	orr	w8, w0, w22
	ldr	x9, [x21]
	str	w8, [x9]
Lloh14:
	adrp	x8, l_.str.1@PAGE
Lloh15:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh16:
	adrp	x9, l_.str.2@PAGE
Lloh17:
	add	x9, x9, l_.str.2@PAGEOFF
	stp	x8, x9, [x21, #8]
	ldr	x8, [x20, #8]
	str	x8, [x21, #56]
	mov	w8, #2
	str	w8, [x21, #24]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	mov	x22, #0
	str	w0, [x21, #48]
	str	x19, [x21, #40]
Lloh18:
	adrp	x8, _BUS_HOST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BUS_HOST@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x21, #32]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #8
	cmp	x22, #1024
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x22]
	cbz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x21, #28]
	bl	___set_bit
	b	LBB0_3
LBB0_6:
Lloh21:
	adrp	x8, _KEY_RESERVED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _KEY_RESERVED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x21, #28]
	bl	___clear_bit
Lloh24:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _MSC_SCAN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MSC_SCAN@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_input_set_capability
	ldr	x0, [x20]
	bl	_input_register_polled_device
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.7:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to allocate polled input device\n"

	.comm	_jornada_scancodes,4,2          ; @jornada_scancodes
	.comm	_jornadakbd680_poll,4,2         ; @jornadakbd680_poll
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REP,4,2                     ; @EV_REP
l_.str.1:                               ; @.str.1
	.asciz	"HP Jornada 680 keyboard"

l_.str.2:                               ; @.str.2
	.asciz	"jornadakbd/input0"

	.comm	_BUS_HOST,4,2                   ; @BUS_HOST
	.comm	_KEY_RESERVED,4,2               ; @KEY_RESERVED
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_MSC_SCAN,4,2                   ; @MSC_SCAN
l_.str.3:                               ; @.str.3
	.asciz	"failed to register polled input device\n"

	.no_dead_strip	_jornada680kbd_probe
.subsections_via_symbols
