	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf2k_trigger_seq
_gf2k_trigger_seq:                      ## @gf2k_trigger_seq
	.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, %r15
	callq	_local_irq_save
	xorl	%r12d, %r12d
	movq	_GF2K_TIMEOUT@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movswl	(%r14,%r12,2), %edi
	callq	_udelay
	cmpw	$0, 2(%r14,%r12,2)
	leaq	1(%r12), %r12
	je	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%r15, %rdi
	callq	_gameport_trigger
	imull	$1000, (%r13), %esi             ## imm = 0x3E8
	movq	%r15, %rdi
	callq	_gameport_time
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_gameport_read
	addl	$-1, %ebx
	setb	%cl
	testb	$1, %al
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	testb	%cl, %cl
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_gameport_trigger
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_irq_restore              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GF2K_TIMEOUT,4,2               ## @GF2K_TIMEOUT
	.no_dead_strip	_gf2k_trigger_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf2k_trigger_seq
_gf2k_trigger_seq:                      ; @gf2k_trigger_seq
	.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	x20, x1
	mov	x19, x0
	bl	_local_irq_save
	mov	x22, #0
Lloh0:
	adrp	x23, _GF2K_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GF2K_TIMEOUT@GOTPAGEOFF]
	mov	w24, #1000
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldrsh	w0, [x20, x22, lsl #1]
	bl	_udelay
	add	x22, x22, #1
	ldrh	w8, [x20, x22, lsl #1]
	cbz	w8, LBB0_5
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x0, x19
	bl	_gameport_trigger
	ldr	w8, [x23]
	mul	w1, w8, w24
	mov	x0, x19
	bl	_gameport_time
	mov	x21, x0
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_gameport_read
	subs	w21, w21, #1
	cset	w8, hs
	tbz	w0, #0, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=2
	tbnz	w8, #0, LBB0_3
	b	LBB0_1
LBB0_5:
	mov	x0, x19
	bl	_gameport_trigger
	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
	b	_local_irq_restore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GF2K_TIMEOUT,4,2               ; @GF2K_TIMEOUT
	.no_dead_strip	_gf2k_trigger_seq
.subsections_via_symbols
