	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gc_n64_read_packet
_gc_n64_read_packet:                    ## @gc_n64_read_packet
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_local_irq_save
	movq	_GC_N64_REQUEST_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GC_N64_OUT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_gc_n64_send_command
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_gc_n64_send_stop_bit
	callq	_local_irq_restore
	movq	_GC_N64_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_udelay
	movq	_GC_N64_LENGTH@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GC_N64_POWER_R@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_parport_write_data
	movl	$2, %edi
	callq	_udelay
	movq	(%r12), %rax
	movl	(%rax), %edi
	callq	_parport_read_status
	movb	%al, (%r14,%rbx)
	movq	(%r12), %rax
	movl	(%rax), %edi
	movq	_GC_N64_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	callq	_parport_write_data
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GC_N64_REQUEST_DATA,4,2        ## @GC_N64_REQUEST_DATA
	.comm	_GC_N64_OUT,4,2                 ## @GC_N64_OUT
	.comm	_GC_N64_DELAY,4,2               ## @GC_N64_DELAY
	.comm	_GC_N64_LENGTH,4,2              ## @GC_N64_LENGTH
	.comm	_GC_N64_POWER_R,4,2             ## @GC_N64_POWER_R
	.comm	_GC_N64_CLOCK,4,2               ## @GC_N64_CLOCK
	.no_dead_strip	_gc_n64_read_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gc_n64_read_packet
_gc_n64_read_packet:                    ; @gc_n64_read_packet
	.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, x1
	mov	x20, x0
	bl	_local_irq_save
Lloh0:
	adrp	x8, _GC_N64_REQUEST_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GC_N64_REQUEST_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _GC_N64_OUT@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GC_N64_OUT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_gc_n64_send_command
	ldr	w1, [x21]
	mov	x0, x20
	bl	_gc_n64_send_stop_bit
	bl	_local_irq_restore
Lloh5:
	adrp	x8, _GC_N64_DELAY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GC_N64_DELAY@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_udelay
Lloh8:
	adrp	x21, _GC_N64_LENGTH@GOTPAGE
Lloh9:
	ldr	x21, [x21, _GC_N64_LENGTH@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
Lloh10:
	adrp	x23, _GC_N64_POWER_R@GOTPAGE
Lloh11:
	ldr	x23, [x23, _GC_N64_POWER_R@GOTPAGEOFF]
Lloh12:
	adrp	x24, _GC_N64_CLOCK@GOTPAGE
Lloh13:
	ldr	x24, [x24, _GC_N64_CLOCK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_parport_write_data
	mov	w0, #2
	bl	_udelay
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_parport_read_status
	strb	w0, [x19, x22]
	ldr	x8, [x20]
	ldr	w0, [x8]
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w1, w9, w8
	bl	_parport_write_data
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GC_N64_REQUEST_DATA,4,2        ; @GC_N64_REQUEST_DATA
	.comm	_GC_N64_OUT,4,2                 ; @GC_N64_OUT
	.comm	_GC_N64_DELAY,4,2               ; @GC_N64_DELAY
	.comm	_GC_N64_LENGTH,4,2              ; @GC_N64_LENGTH
	.comm	_GC_N64_POWER_R,4,2             ; @GC_N64_POWER_R
	.comm	_GC_N64_CLOCK,4,2               ; @GC_N64_CLOCK
	.no_dead_strip	_gc_n64_read_packet
.subsections_via_symbols
