	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jornada_scan_keyb
_jornada_scan_keyb:                     ## @jornada_scan_keyb
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movaps	L___const.jornada_scan_keyb.matrix_switch(%rip), %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	l___const.jornada_scan_keyb.matrix_PDE+16(%rip), %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	l___const.jornada_scan_keyb.matrix_PDE(%rip), %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	_PDCR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readw
	movl	%eax, %r15d
	andl	$13299, %r15d                   ## imm = 0x33F3
	movq	_PECR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readw
	movl	%eax, %r14d
	andl	$3888, %r14d                    ## imm = 0xF30
	movw	$-13308, %ax                    ## imm = 0xCC04
	xorl	%ebx, %ebx
	movzwl	%r15w, %r15d
	movq	_PFDR@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	orl	%r15d, %eax
	movq	_PDCR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzwl	%ax, %edi
	callq	___raw_writew
	movzwl	-94(%rbp,%rbx,4), %eax
	orw	%r14w, %ax
	movq	_PECR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzwl	%ax, %edi
	callq	___raw_writew
	movl	$5, %edi
	callq	_udelay
	movzbl	-64(%rbp,%rbx,2), %edi
	movq	_PDDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___raw_writeb
	movzbl	-63(%rbp,%rbx,2), %edi
	movq	_PEDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___raw_writeb
	movl	$50, %edi
	callq	_udelay
	movq	_PCDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readb
	movb	%al, (%r12,%rbx,2)
	movl	(%r13), %edi
	callq	___raw_readb
	movb	%al, 1(%r12,%rbx,2)
	cmpl	$7, %ebx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movzwl	-92(%rbp,%rbx,4), %eax
	incq	%rbx
	jmp	LBB0_1
LBB0_3:
	movq	_PDDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edi
	callq	___raw_writeb
	movq	_PEDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$255, %edi
	callq	___raw_writeb
	orl	$17412, %r15d                   ## imm = 0x4404
	movq	_PDCR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	___raw_writew
	movzwl	%r14w, %edi
	orl	$20549, %edi                    ## imm = 0x5045
	movq	_PECR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___raw_writew
	movq	_PGDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readb
	movb	%al, 2(%r12,%rbx,2)
	movq	_PHDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	___raw_readb
	movb	%al, 3(%r12,%rbx,2)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.jornada_scan_keyb.matrix_switch
L___const.jornada_scan_keyb.matrix_switch:
	.ascii	"\375\377\337\377\177\377\377\376\377\375\377\367\377\277\377\177"

	.section	__TEXT,__const
	.p2align	4                               ## @__const.jornada_scan_keyb.matrix_PDE
l___const.jornada_scan_keyb.matrix_PDE:
	.short	52228                           ## 0xcc04
	.short	61647                           ## 0xf0cf
	.short	50188                           ## 0xc40c
	.short	61647                           ## 0xf0cf
	.short	19468                           ## 0x4c0c
	.short	61647                           ## 0xf0cf
	.short	52236                           ## 0xcc0c
	.short	61645                           ## 0xf0cd
	.short	52236                           ## 0xcc0c
	.short	61639                           ## 0xf0c7
	.short	52236                           ## 0xcc0c
	.short	61519                           ## 0xf04f
	.short	52236                           ## 0xcc0c
	.short	53455                           ## 0xd0cf
	.short	52236                           ## 0xcc0c
	.short	28879                           ## 0x70cf

	.comm	_PDCR,4,2                       ## @PDCR
	.comm	_PECR,4,2                       ## @PECR
	.comm	_PDDR,4,2                       ## @PDDR
	.comm	_PEDR,4,2                       ## @PEDR
	.comm	_PCDR,4,2                       ## @PCDR
	.comm	_PFDR,4,2                       ## @PFDR
	.comm	_PGDR,4,2                       ## @PGDR
	.comm	_PHDR,4,2                       ## @PHDR
	.no_dead_strip	_jornada_scan_keyb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jornada_scan_keyb
_jornada_scan_keyb:                     ; @jornada_scan_keyb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	adrp	x9, l___const.jornada_scan_keyb.matrix_switch@PAGE
	add	x9, x9, l___const.jornada_scan_keyb.matrix_switch@PAGEOFF
	str	x8, [sp, #56]
	ldr	q2, [x9]
Lloh3:
	adrp	x8, l___const.jornada_scan_keyb.matrix_PDE@PAGE
Lloh4:
	add	x8, x8, l___const.jornada_scan_keyb.matrix_PDE@PAGEOFF
	ldp	q0, q1, [x8]
	str	q0, [sp]
	stp	q1, q2, [sp, #16]
Lloh5:
	adrp	x8, _PDCR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PDCR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	___raw_readw
	mov	w8, #13299
	and	w22, w0, w8
Lloh8:
	adrp	x8, _PECR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PECR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	___raw_readw
	mov	x25, #0
	mov	w8, #3888
	and	w23, w0, w8
	mov	x8, sp
	orr	x26, x8, #0x4
	mov	w8, #52228
Lloh11:
	adrp	x20, _PDDR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _PDDR@GOTPAGEOFF]
Lloh13:
	adrp	x21, _PCDR@GOTPAGE
Lloh14:
	ldr	x21, [x21, _PCDR@GOTPAGEOFF]
Lloh15:
	adrp	x27, _PFDR@GOTPAGE
Lloh16:
	ldr	x27, [x27, _PFDR@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, sp, #32
	add	x28, x9, x25
	add	x24, x19, x25
	orr	w8, w8, w22
Lloh17:
	adrp	x9, _PDCR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PDCR@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	and	w0, w8, #0xffff
	bl	___raw_writew
	ldurh	w8, [x26, #-2]
	orr	w0, w8, w23
Lloh20:
	adrp	x8, _PECR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PECR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	___raw_writew
	mov	w0, #5
	bl	_udelay
	ldrb	w0, [x28]
	ldr	w1, [x20]
	bl	___raw_writeb
	ldrb	w0, [x28, #1]
Lloh23:
	adrp	x8, _PEDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PEDR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	bl	___raw_writeb
	mov	w0, #50
	bl	_udelay
	ldr	w0, [x21]
	bl	___raw_readb
	strb	w0, [x24]
	ldr	w0, [x27]
	bl	___raw_readb
	strb	w0, [x24, #1]
	cmp	w25, #14
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldrh	w8, [x26], #4
	add	x25, x25, #2
	b	LBB0_1
LBB0_3:
	ldr	w1, [x20]
	mov	w0, #255
	bl	___raw_writeb
Lloh26:
	adrp	x8, _PEDR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PEDR@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	w0, #255
	bl	___raw_writeb
	mov	w8, #17412
	orr	w0, w22, w8
Lloh29:
	adrp	x8, _PDCR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _PDCR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	___raw_writew
	mov	w8, #20549
	orr	w0, w23, w8
Lloh32:
	adrp	x8, _PECR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PECR@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	___raw_writew
Lloh35:
	adrp	x8, _PGDR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _PGDR@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	bl	___raw_readb
	strb	w0, [x24, #2]
Lloh38:
	adrp	x8, _PHDR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _PHDR@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	bl	___raw_readb
	strb	w0, [x24, #3]
	ldr	x8, [sp, #56]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
l___const.jornada_scan_keyb.matrix_switch: ; @__const.jornada_scan_keyb.matrix_switch
	.ascii	"\375\377\337\377\177\377\377\376\377\375\377\367\377\277\377\177"

	.section	__TEXT,__const
	.p2align	1                               ; @__const.jornada_scan_keyb.matrix_PDE
l___const.jornada_scan_keyb.matrix_PDE:
	.short	52228                           ; 0xcc04
	.short	61647                           ; 0xf0cf
	.short	50188                           ; 0xc40c
	.short	61647                           ; 0xf0cf
	.short	19468                           ; 0x4c0c
	.short	61647                           ; 0xf0cf
	.short	52236                           ; 0xcc0c
	.short	61645                           ; 0xf0cd
	.short	52236                           ; 0xcc0c
	.short	61639                           ; 0xf0c7
	.short	52236                           ; 0xcc0c
	.short	61519                           ; 0xf04f
	.short	52236                           ; 0xcc0c
	.short	53455                           ; 0xd0cf
	.short	52236                           ; 0xcc0c
	.short	28879                           ; 0x70cf

	.comm	_PDCR,4,2                       ; @PDCR
	.comm	_PECR,4,2                       ; @PECR
	.comm	_PDDR,4,2                       ; @PDDR
	.comm	_PEDR,4,2                       ; @PEDR
	.comm	_PCDR,4,2                       ; @PCDR
	.comm	_PFDR,4,2                       ; @PFDR
	.comm	_PGDR,4,2                       ; @PGDR
	.comm	_PHDR,4,2                       ; @PHDR
	.no_dead_strip	_jornada_scan_keyb
.subsections_via_symbols
