	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dig_mode_start
_dig_mode_start:                        ## @dig_mode_start
	.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, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_init_seq@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_GRIP_INIT_DELAY@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	callq	_udelay
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	cmpq	$0, (%rax,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_gameport_trigger
	jmp	LBB0_4
LBB0_5:
	movq	_GRIP_INIT_DELAY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_udelay
	xorl	%ebx, %ebx
	movq	_IO_MODE_FAST@GOTPCREL(%rip), %r13
	movq	_IO_RETRY@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IO_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$39, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_multiport_io
	testl	%eax, (%r13)
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	xorl	%esi, %esi
	testl	%eax, (%r14)
	sete	%dl
	setne	%sil
	addl	%esi, %r15d
	xorl	%eax, %eax
	cmpl	$63, %r15d
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movb	%dl, %cl
	addl	%ecx, %ebx
	cmpl	$8, %ebx
	jb	LBB0_6
	jmp	LBB0_10
LBB0_7:
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_init_seq,8,3                   ## @init_seq
	.comm	_GRIP_INIT_DELAY,4,2            ## @GRIP_INIT_DELAY
	.comm	_IO_RESET,4,2                   ## @IO_RESET
	.comm	_IO_MODE_FAST,4,2               ## @IO_MODE_FAST
	.comm	_IO_RETRY,4,2                   ## @IO_RETRY
	.no_dead_strip	_dig_mode_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dig_mode_start
_dig_mode_start:                        ; @dig_mode_start
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _init_seq@GOTPAGE
Lloh1:
	ldr	x22, [x22, _init_seq@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
Lloh2:
	adrp	x21, _GRIP_INIT_DELAY@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GRIP_INIT_DELAY@GOTPAGEOFF]
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x23, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	bl	_udelay
	add	x23, x23, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	x23, w0, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x8, [x8, x23, lsl #3]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_gameport_trigger
	b	LBB0_2
LBB0_5:
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	ldr	w0, [x21]
	bl	_udelay
	mov	w21, #0
	mov	w22, #0
Lloh4:
	adrp	x23, _IO_RESET@GOTPAGE
Lloh5:
	ldr	x23, [x23, _IO_RESET@GOTPAGEOFF]
Lloh6:
	adrp	x24, _IO_MODE_FAST@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IO_MODE_FAST@GOTPAGEOFF]
Lloh8:
	adrp	x25, _IO_RETRY@GOTPAGE
Lloh9:
	ldr	x25, [x25, _IO_RETRY@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #39
	mov	x3, x19
	bl	_multiport_io
	ldr	w8, [x24]
	tst	w8, w0
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25]
	tst	w8, w0
	cinc	w22, w22, ne
	cinc	w21, w21, eq
	cmp	w22, #63
	ccmp	w21, #8, #2, ls
	b.lo	LBB0_6
; %bb.8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_init_seq,8,3                   ; @init_seq
	.comm	_GRIP_INIT_DELAY,4,2            ; @GRIP_INIT_DELAY
	.comm	_IO_RESET,4,2                   ; @IO_RESET
	.comm	_IO_MODE_FAST,4,2               ; @IO_MODE_FAST
	.comm	_IO_RETRY,4,2                   ; @IO_RETRY
	.no_dead_strip	_dig_mode_start
.subsections_via_symbols
