	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan                    ## -- Begin function matrix_scan
	.p2align	4, 0x90
_matrix_scan:                           ## @matrix_scan
	.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	_xt_host_recv
	testl	%eax, %eax
	je	LBB0_29
## %bb.1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_xprintf
	movl	_matrix_scan.state(%rip), %eax
	cmpq	$4, %rax
	ja	LBB0_27
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	cmpl	$225, %r14d
	je	LBB0_20
## %bb.4:
	cmpl	$224, %r14d
	jne	LBB0_21
## %bb.5:
	movl	$1, _matrix_scan.state(%rip)
	jmp	LBB0_28
LBB0_6:
	cmpl	$157, %r14d
	je	LBB0_23
## %bb.7:
	cmpl	$29, %r14d
	jne	LBB0_27
## %bb.8:
	movl	$3, _matrix_scan.state(%rip)
	jmp	LBB0_28
LBB0_9:
	cmpl	$69, %r14d
	jne	LBB0_27
## %bb.10:
	movl	$85, %edi
	jmp	LBB0_25
LBB0_11:
	cmpl	$169, %r14d
	jg	LBB0_16
## %bb.12:
	cmpl	$42, %r14d
	je	LBB0_27
## %bb.13:
	cmpl	$54, %r14d
	je	LBB0_27
	jmp	LBB0_18
LBB0_14:
	cmpl	$69, %r14d
	jne	LBB0_27
## %bb.15:
	movl	$85, %edi
	callq	_matrix_make
	jmp	LBB0_28
LBB0_16:
	cmpl	$182, %r14d
	je	LBB0_27
## %bb.17:
	cmpl	$170, %r14d
	je	LBB0_27
LBB0_18:
	cmpl	$127, %r14d
	jg	LBB0_26
## %bb.19:
	movl	%r14d, %edi
	callq	_move_e0code
	movl	%eax, %edi
	callq	_matrix_make
	jmp	LBB0_27
LBB0_20:
	movl	$2, _matrix_scan.state(%rip)
	jmp	LBB0_28
LBB0_21:
	cmpl	$127, %r14d
	jg	LBB0_24
## %bb.22:
	movl	%r14d, %edi
	callq	_matrix_make
	jmp	LBB0_28
LBB0_23:
	movl	$4, _matrix_scan.state(%rip)
	jmp	LBB0_28
LBB0_24:
	andl	$127, %r14d
	movl	%r14d, %edi
LBB0_25:
	callq	_matrix_break
	jmp	LBB0_28
LBB0_26:
	andl	$127, %r14d
	movl	%r14d, %edi
	callq	_move_e0code
	movl	%eax, %edi
	callq	_matrix_break
LBB0_27:
	movl	$0, _matrix_scan.state(%rip)
LBB0_28:
	xorl	%eax, %eax
	callq	_matrix_scan_quantum
	movl	$1, %ebx
LBB0_29:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_11
	.long	L0_0_set_6
	.long	L0_0_set_14
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_matrix_scan.state,4,2 ## @matrix_scan.state
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02X "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_matrix_scan                    ; -- Begin function matrix_scan
	.p2align	2
_matrix_scan:                           ; @matrix_scan
	.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	_xt_host_recv
	cbz	w0, LBB0_29
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_xprintf
	adrp	x20, _matrix_scan.state@PAGE
	ldr	w8, [x20, _matrix_scan.state@PAGEOFF]
	cmp	w8, #4
	b.hi	LBB0_27
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	cmp	w19, #225
	b.eq	LBB0_20
; %bb.4:
	cmp	w19, #224
	b.ne	LBB0_21
; %bb.5:
	mov	w8, #1
	str	w8, [x20, _matrix_scan.state@PAGEOFF]
	b	LBB0_28
LBB0_6:
	cmp	w19, #157
	b.eq	LBB0_23
; %bb.7:
	cmp	w19, #29
	b.ne	LBB0_27
; %bb.8:
	mov	w8, #3
	str	w8, [x20, _matrix_scan.state@PAGEOFF]
	b	LBB0_28
LBB0_9:
	cmp	w19, #69
	b.ne	LBB0_27
; %bb.10:
	mov	w0, #85
	b	LBB0_25
LBB0_11:
	cmp	w19, #169
	b.gt	LBB0_16
; %bb.12:
	cmp	w19, #42
	b.eq	LBB0_27
; %bb.13:
	cmp	w19, #54
	b.eq	LBB0_27
	b	LBB0_18
LBB0_14:
	cmp	w19, #69
	b.ne	LBB0_27
; %bb.15:
	mov	w0, #85
	bl	_matrix_make
	b	LBB0_28
LBB0_16:
	cmp	w19, #182
	b.eq	LBB0_27
; %bb.17:
	cmp	w19, #170
	b.eq	LBB0_27
LBB0_18:
	cmp	w19, #127
	b.gt	LBB0_26
; %bb.19:
	mov	x0, x19
	bl	_move_e0code
	bl	_matrix_make
	b	LBB0_27
LBB0_20:
	mov	w8, #2
	str	w8, [x20, _matrix_scan.state@PAGEOFF]
	b	LBB0_28
LBB0_21:
	cmp	w19, #127
	b.gt	LBB0_24
; %bb.22:
	mov	x0, x19
	bl	_matrix_make
	b	LBB0_28
LBB0_23:
	mov	w8, #4
	str	w8, [x20, _matrix_scan.state@PAGEOFF]
	b	LBB0_28
LBB0_24:
	and	w0, w19, #0x7f
LBB0_25:
	bl	_matrix_break
	b	LBB0_28
LBB0_26:
	and	w0, w19, #0x7f
	bl	_move_e0code
	bl	_matrix_break
LBB0_27:
	str	wzr, [x20, _matrix_scan.state@PAGEOFF]
LBB0_28:
	bl	_matrix_scan_quantum
	mov	w0, #1
LBB0_29:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_matrix_scan.state,4,2 ; @matrix_scan.state
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02X "

.subsections_via_symbols
