	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grip_poll
_grip_poll:                             ## @grip_poll
	.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
	callq	_gameport_get_drvdata
	movq	%rax, %r13
	movq	_IO_RETRY@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	movq	_IO_GOT_PACKET@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_and_decode_packet
	testl	%eax, (%r15)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$31, %ebx
	movl	%ecx, %ebx
	jb	LBB0_1
LBB0_4:
	movq	_IO_DONE@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	jne	LBB0_19
## %bb.5:
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_and_decode_packet
	testl	%eax, (%r15)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$31, %ebx
	movl	%ecx, %ebx
	jb	LBB0_6
LBB0_9:
	testl	%eax, (%r12)
	jne	LBB0_19
## %bb.10:
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_and_decode_packet
	testl	%eax, (%r15)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%eax, (%r14)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$31, %ebx
	movl	%ecx, %ebx
	jb	LBB0_11
LBB0_14:
	testl	%eax, (%r12)
	je	LBB0_15
LBB0_19:
	movq	(%r13), %rax
	movq	(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_report_slot
	movq	(%r13), %rax
LBB0_21:
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_23
## %bb.22:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_report_slot
	movq	(%r13), %rax
LBB0_23:
	movq	16(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_25
## %bb.24:
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_report_slot
	movq	(%r13), %rax
LBB0_25:
	movq	24(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_26
## %bb.27:
	movq	%r13, %rdi
	movl	$3, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_report_slot                    ## TAILCALL
LBB0_26:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r14), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_get_and_decode_packet
	testl	%eax, (%r15)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	testl	%eax, (%r14)
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	leal	1(%rbx), %ecx
	cmpl	$31, %ebx
	movl	%ecx, %ebx
	jb	LBB0_16
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_IO_RETRY,4,2                   ## @IO_RETRY
	.comm	_IO_GOT_PACKET,4,2              ## @IO_GOT_PACKET
	.comm	_IO_DONE,4,2                    ## @IO_DONE
	.no_dead_strip	_grip_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grip_poll
_grip_poll:                             ; @grip_poll
	.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
	bl	_gameport_get_drvdata
	mov	x19, x0
	mov	w22, #0
Lloh0:
	adrp	x20, _IO_RETRY@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IO_RETRY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _IO_GOT_PACKET@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IO_GOT_PACKET@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_and_decode_packet
	mov	x1, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x20]
	and	w8, w8, w1
	cmp	w8, #0
	ccmp	w22, #31, #2, ne
	add	w22, w22, #1
	b.lo	LBB0_1
LBB0_3:
Lloh4:
	adrp	x22, _IO_DONE@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IO_DONE@GOTPAGEOFF]
	ldr	w8, [x22]
	tst	w8, w1
	b.ne	LBB0_15
; %bb.4:
	mov	w23, #0
	ldr	w1, [x20]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_and_decode_packet
	mov	x1, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x20]
	and	w8, w8, w1
	cmp	w8, #0
	ccmp	w23, #31, #2, ne
	add	w23, w23, #1
	b.lo	LBB0_5
LBB0_7:
	ldr	w8, [x22]
	tst	w8, w1
	b.ne	LBB0_15
; %bb.8:
	mov	w23, #0
	ldr	w1, [x20]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_and_decode_packet
	mov	x1, x0
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x20]
	and	w8, w8, w1
	cmp	w8, #0
	ccmp	w23, #31, #2, ne
	add	w23, w23, #1
	b.lo	LBB0_9
LBB0_11:
	ldr	w8, [x22]
	tst	w8, w1
	b.ne	LBB0_15
; %bb.12:
	mov	w22, #0
	ldr	w1, [x20]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_get_and_decode_packet
	ldr	w8, [x21]
	tst	w8, w0
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	ldr	w8, [x20]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w22, #31, #2, ne
	add	w22, w22, #1
	b.lo	LBB0_13
LBB0_15:
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x9, [x9]
	cbz	x9, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	w1, #0
	bl	_report_slot
	ldr	x8, [x19]
LBB0_17:
	ldr	x9, [x8, #8]
	ldr	x9, [x9]
	cbz	x9, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #1
	bl	_report_slot
	ldr	x8, [x19]
LBB0_19:
	ldr	x9, [x8, #16]
	ldr	x9, [x9]
	cbz	x9, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	w1, #2
	bl	_report_slot
	ldr	x8, [x19]
LBB0_21:
	ldr	x8, [x8, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_23
; %bb.22:
	mov	x0, x19
	mov	w1, #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
	b	_report_slot
LBB0_23:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IO_RETRY,4,2                   ; @IO_RETRY
	.comm	_IO_GOT_PACKET,4,2              ; @IO_GOT_PACKET
	.comm	_IO_DONE,4,2                    ; @IO_DONE
	.no_dead_strip	_grip_poll
.subsections_via_symbols
