	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	leaq	L_.str(%rip), %rdi
	callq	_puts
	leaq	L_.str.1(%rip), %rdi
	callq	_puts
	leaq	L_.str.2(%rip), %rdi
	callq	_puts
	leaq	L_.str.3(%rip), %rdi
	callq	_puts
	leaq	L_.str.4(%rip), %rdi
	callq	_puts
	leaq	L_.str.5(%rip), %rdi
	callq	_puts
	movq	_J_B@GOTPCREL(%rip), %rbx
	movq	__io_status@GOTPCREL(%rip), %r15
	movq	_IO_SENDING@GOTPCREL(%rip), %r14
	movq	_IO_IDLE@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
LBB0_18:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	__io_in@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_waitpadup
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_35 Depth 2
                                        ##       Child Loop BB0_36 Depth 3
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_23 Depth 3
                                        ##         Child Loop BB0_24 Depth 4
                                        ##     Child Loop BB0_14 Depth 2
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%rbx), %edi
	movq	_J_A@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_J_START@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_J_SELECT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_waitpad
	movl	%eax, %r13d
	xorl	%eax, %eax
	callq	_waitpadup
	movq	_J_A@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leal	1(%rcx), %ebx
	movq	__io_out@GOTPCREL(%rip), %rax
	movb	%cl, (%rax)
	xorl	%eax, %eax
	callq	_send_byte
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rsi
	cmpq	(%r14), %rsi
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	xorl	%eax, %eax
	callq	_joypad
	testq	%rax, %rax
	je	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rsi
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r12), %rsi
	jne	LBB0_11
## %bb.1:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_str.15(%rip), %rdi
	callq	_puts
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpl	(%rbx), %r13d
	jne	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	xorl	%eax, %eax
	callq	_receive_byte
	movq	_IO_RECEIVING@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r15), %rsi
	cmpq	(%r13), %rsi
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	xorl	%eax, %eax
	callq	_joypad
	testq	%rax, %rax
	je	LBB0_14
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rsi
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%r12), %rsi
	je	LBB0_18
## %bb.32:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.8(%rip), %rdi
	jmp	LBB0_44
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_2:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_J_B@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_J_START@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_33
## %bb.20:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	__io_out@GOTPCREL(%rip), %r13
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_22 Depth=2
	cmpb	$0, (%rbx)
	leaq	1(%rbx), %rbx
	je	LBB0_31
LBB0_22:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_23 Depth 3
                                        ##         Child Loop BB0_24 Depth 4
	movb	(%rbx), %al
	movb	%al, (%r13)
	.p2align	4, 0x90
LBB0_23:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_24 Depth 4
	xorl	%eax, %eax
	callq	_send_byte
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ##       Parent Loop BB0_23 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=4
	xorl	%eax, %eax
	callq	_joypad
	testq	%rax, %rax
	je	LBB0_24
## %bb.26:                              ##   in Loop: Header=BB0_23 Depth=3
	movq	(%r15), %rax
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=3
	cmpq	(%r12), %rax
	je	LBB0_21
## %bb.28:                              ##   in Loop: Header=BB0_23 Depth=3
	xorl	%eax, %eax
	callq	_joypad
	testq	%rax, %rax
	je	LBB0_23
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	(%r15), %rsi
	cmpq	(%r12), %rsi
	je	LBB0_21
## %bb.30:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	jne	LBB0_3
LBB0_31:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_str.15(%rip), %rdi
	callq	_puts
	jmp	LBB0_3
LBB0_33:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_J_SELECT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_4
## %bb.34:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_IO_RECEIVING@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_36 Depth 3
	xorl	%eax, %eax
	callq	_receive_byte
	.p2align	4, 0x90
LBB0_36:                                ##   Parent Loop BB0_5 Depth=1
                                        ##     Parent Loop BB0_35 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	(%r15), %rsi
	cmpq	(%rbx), %rsi
	jne	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=3
	xorl	%eax, %eax
	callq	_joypad
	testq	%rax, %rax
	je	LBB0_36
## %bb.38:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	(%r15), %rsi
LBB0_39:                                ##   in Loop: Header=BB0_35 Depth=2
	cmpq	(%r12), %rsi
	jne	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_35 Depth=2
	movq	__io_in@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_putchar
	movq	__io_in@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	%al, (%r13)
	incq	%r13
	testb	$-1, %al
	jne	LBB0_35
	jmp	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_42:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %rax
	cmpq	(%r12), %rax
	movq	_J_B@GOTPCREL(%rip), %rbx
	jne	LBB0_4
## %bb.43:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_buffer@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.13(%rip), %rdi
LBB0_44:                                ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Byte"

L_.str.1:                               ## @.str.1
	.asciz	"  A      : Send"

L_.str.2:                               ## @.str.2
	.asciz	"  B      : Receive"

L_.str.3:                               ## @.str.3
	.asciz	"String"

L_.str.4:                               ## @.str.4
	.asciz	"  START  : Send"

L_.str.5:                               ## @.str.5
	.asciz	"  SELECT : Receive"

	.comm	_J_A,4,2                        ## @J_A
	.comm	_J_B,4,2                        ## @J_B
	.comm	_J_START,4,2                    ## @J_START
	.comm	_J_SELECT,4,2                   ## @J_SELECT
L_.str.6:                               ## @.str.6
	.asciz	"Sending b... "

	.comm	__io_out,1,0                    ## @_io_out
	.comm	__io_status,8,3                 ## @_io_status
	.comm	_IO_SENDING,8,3                 ## @IO_SENDING
	.comm	_IO_IDLE,8,3                    ## @IO_IDLE
L_.str.8:                               ## @.str.8
	.asciz	"#%d\n"

L_.str.9:                               ## @.str.9
	.asciz	"Receiving b... "

	.comm	_IO_RECEIVING,8,3               ## @IO_RECEIVING
L_.str.10:                              ## @.str.10
	.asciz	"OK\n%d\n"

	.comm	__io_in,4,2                     ## @_io_in
L_.str.11:                              ## @.str.11
	.asciz	"Sending s... "

	.comm	_str,8,3                        ## @str
L_.str.12:                              ## @.str.12
	.asciz	"Receiving s... "

	.comm	_buffer,8,3                     ## @buffer
L_.str.13:                              ## @.str.13
	.asciz	"OK\n%s\n"

L_str.15:                               ## @str.15
	.asciz	"OK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_puts
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_puts
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_puts
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_puts
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_puts
Lloh10:
	adrp	x0, l_.str.5@PAGE
Lloh11:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_puts
	mov	w25, #0
Lloh12:
	adrp	x28, _J_A@GOTPAGE
Lloh13:
	ldr	x28, [x28, _J_A@GOTPAGEOFF]
Lloh14:
	adrp	x26, _J_B@GOTPAGE
Lloh15:
	ldr	x26, [x26, _J_B@GOTPAGEOFF]
Lloh16:
	adrp	x24, __io_out@GOTPAGE
Lloh17:
	ldr	x24, [x24, __io_out@GOTPAGEOFF]
Lloh18:
	adrp	x22, __io_status@GOTPAGE
Lloh19:
	ldr	x22, [x22, __io_status@GOTPAGEOFF]
Lloh20:
	adrp	x20, _IO_SENDING@GOTPAGE
Lloh21:
	ldr	x20, [x20, _IO_SENDING@GOTPAGEOFF]
Lloh22:
	adrp	x21, _IO_IDLE@GOTPAGE
Lloh23:
	ldr	x21, [x21, _IO_IDLE@GOTPAGEOFF]
Lloh24:
	adrp	x19, _IO_RECEIVING@GOTPAGE
Lloh25:
	ldr	x19, [x19, _IO_RECEIVING@GOTPAGEOFF]
Lloh26:
	adrp	x23, __io_in@GOTPAGE
Lloh27:
	ldr	x23, [x23, __io_in@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
Lloh28:
	adrp	x0, l_.str.8@PAGE
Lloh29:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	mov	x25, x27
	bl	_waitpadup
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_32 Depth 2
                                        ;       Child Loop BB0_33 Depth 3
                                        ;     Child Loop BB0_19 Depth 2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w8, [x28]
	ldr	w9, [x26]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _J_START@GOTPAGE
Lloh31:
	ldr	x9, [x9, _J_START@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh33:
	adrp	x9, _J_SELECT@GOTPAGE
Lloh34:
	ldr	x9, [x9, _J_SELECT@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_waitpad
	mov	x27, x0
	bl	_waitpadup
	ldr	w8, [x28]
	cmp	w27, w8
	b.ne	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh36:
	adrp	x0, l_.str.6@PAGE
Lloh37:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	add	w27, w25, #1
	strb	w25, [x24]
	bl	_send_byte
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_joypad
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh38:
	adrp	x0, l_str.15@PAGE
Lloh39:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
	mov	x25, x27
	bl	_waitpadup
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x26]
	cmp	w27, w8
	b.ne	LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh40:
	adrp	x0, l_.str.9@PAGE
Lloh41:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	bl	_receive_byte
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	bl	_joypad
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_29
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x23]
	str	x8, [sp]
Lloh42:
	adrp	x0, l_.str.10@PAGE
Lloh43:
	add	x0, x0, l_.str.10@PAGEOFF
	b	LBB0_41
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh44:
	adrp	x8, _J_START@GOTPAGE
Lloh45:
	ldr	x8, [x8, _J_START@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_30
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh47:
	adrp	x0, l_.str.11@PAGE
Lloh48:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
Lloh49:
	adrp	x8, _str@GOTPAGE
Lloh50:
	ldr	x8, [x8, _str@GOTPAGEOFF]
Lloh51:
	ldr	x27, [x8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=2
	ldrb	w8, [x27], #1
	cbz	w8, LBB0_28
LBB0_19:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_20 Depth 3
                                        ;         Child Loop BB0_21 Depth 4
	ldrb	w8, [x27]
	strb	w8, [x24]
LBB0_20:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_21 Depth 4
	bl	_send_byte
LBB0_21:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_19 Depth=2
                                        ;       Parent Loop BB0_20 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x22]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=4
	bl	_joypad
	cbz	x0, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_20 Depth=3
	ldr	x8, [x22]
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=3
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.25:                               ;   in Loop: Header=BB0_20 Depth=3
	bl	_joypad
	cbz	x0, LBB0_20
; %bb.26:                               ;   in Loop: Header=BB0_19 Depth=2
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.27:                               ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
Lloh52:
	adrp	x0, l_.str.8@PAGE
Lloh53:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_42
LBB0_28:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh54:
	adrp	x0, l_str.15@PAGE
Lloh55:
	add	x0, x0, l_str.15@PAGEOFF
	bl	_puts
	bl	_waitpadup
	b	LBB0_2
LBB0_29:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
Lloh56:
	adrp	x0, l_.str.8@PAGE
Lloh57:
	add	x0, x0, l_.str.8@PAGEOFF
	b	LBB0_41
LBB0_30:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh58:
	adrp	x8, _J_SELECT@GOTPAGE
Lloh59:
	ldr	x8, [x8, _J_SELECT@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	cmp	w27, w8
	b.ne	LBB0_42
; %bb.31:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh61:
	adrp	x0, l_.str.12@PAGE
Lloh62:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
Lloh63:
	adrp	x8, _buffer@GOTPAGE
Lloh64:
	ldr	x8, [x8, _buffer@GOTPAGEOFF]
Lloh65:
	ldr	x27, [x8]
LBB0_32:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_33 Depth 3
	bl	_receive_byte
LBB0_33:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_32 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x22]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_33 Depth=3
	bl	_joypad
	cbz	x0, LBB0_33
; %bb.35:                               ;   in Loop: Header=BB0_32 Depth=2
	ldr	x8, [x22]
LBB0_36:                                ;   in Loop: Header=BB0_32 Depth=2
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.37:                               ;   in Loop: Header=BB0_32 Depth=2
	ldr	w0, [x23]
	bl	_putchar
	ldr	w8, [x23]
	strb	w8, [x27], #1
	tst	w8, #0xff
	b.ne	LBB0_32
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x8, [sp]
Lloh66:
	adrp	x0, l_.str.8@PAGE
Lloh67:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_39:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh68:
	adrp	x8, _buffer@GOTPAGE
Lloh69:
	ldr	x8, [x8, _buffer@GOTPAGEOFF]
Lloh70:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh71:
	adrp	x0, l_.str.13@PAGE
Lloh72:
	add	x0, x0, l_.str.13@PAGEOFF
LBB0_41:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_printf
LBB0_42:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_waitpadup
	b	LBB0_2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Byte"

l_.str.1:                               ; @.str.1
	.asciz	"  A      : Send"

l_.str.2:                               ; @.str.2
	.asciz	"  B      : Receive"

l_.str.3:                               ; @.str.3
	.asciz	"String"

l_.str.4:                               ; @.str.4
	.asciz	"  START  : Send"

l_.str.5:                               ; @.str.5
	.asciz	"  SELECT : Receive"

	.comm	_J_A,4,2                        ; @J_A
	.comm	_J_B,4,2                        ; @J_B
	.comm	_J_START,4,2                    ; @J_START
	.comm	_J_SELECT,4,2                   ; @J_SELECT
l_.str.6:                               ; @.str.6
	.asciz	"Sending b... "

	.comm	__io_out,1,0                    ; @_io_out
	.comm	__io_status,8,3                 ; @_io_status
	.comm	_IO_SENDING,8,3                 ; @IO_SENDING
	.comm	_IO_IDLE,8,3                    ; @IO_IDLE
l_.str.8:                               ; @.str.8
	.asciz	"#%d\n"

l_.str.9:                               ; @.str.9
	.asciz	"Receiving b... "

	.comm	_IO_RECEIVING,8,3               ; @IO_RECEIVING
l_.str.10:                              ; @.str.10
	.asciz	"OK\n%d\n"

	.comm	__io_in,4,2                     ; @_io_in
l_.str.11:                              ; @.str.11
	.asciz	"Sending s... "

	.comm	_str,8,3                        ; @str
l_.str.12:                              ; @.str.12
	.asciz	"Receiving s... "

	.comm	_buffer,8,3                     ; @buffer
l_.str.13:                              ; @.str.13
	.asciz	"OK\n%s\n"

l_str.15:                               ; @str.15
	.asciz	"OK"

.subsections_via_symbols
