	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function linuxraw_poll_pad
_linuxraw_poll_pad:                     ## @linuxraw_poll_pad
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	leaq	-64(%rbp), %rsi
	movl	$24, %edx
	callq	_read
	cmpq	$24, %rax
	jne	LBB0_11
## %bb.1:
	movq	_JS_EVENT_INIT@GOTPCREL(%rip), %r15
	movq	_NUM_AXES@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r14
	movq	_NUM_BUTTONS@GOTPCREL(%rip), %r13
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_BIT32_CLEAR
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%rbx), %edi
	movq	%r14, %rsi
	movl	$24, %edx
	callq	_read
	cmpq	$24, %rax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	notl	%eax
	andl	-64(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rsi
	cmpq	(%r13), %rsi
	jae	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)
	movl	8(%rbx), %edi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_BIT32_SET
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	cmpq	(%r12), %rax
	jae	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %ecx
	movq	(%rbx), %rdx
	movl	%ecx, (%rdx,%rax,4)
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JS_EVENT_INIT,4,2              ## @JS_EVENT_INIT
	.comm	_NUM_BUTTONS,8,3                ## @NUM_BUTTONS
	.comm	_NUM_AXES,8,3                   ## @NUM_AXES
	.no_dead_strip	_linuxraw_poll_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function linuxraw_poll_pad
_linuxraw_poll_pad:                     ; @linuxraw_poll_pad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	ldr	w0, [x0, #12]
	add	x1, sp, #8
	mov	w2, #24
	bl	_read
	cmp	x0, #24
	b.ne	LBB0_11
; %bb.1:
Lloh0:
	adrp	x20, _JS_EVENT_INIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _JS_EVENT_INIT@GOTPAGEOFF]
Lloh2:
	adrp	x21, _NUM_AXES@GOTPAGE
Lloh3:
	ldr	x21, [x21, _NUM_AXES@GOTPAGEOFF]
Lloh4:
	adrp	x22, _NUM_BUTTONS@GOTPAGE
Lloh5:
	ldr	x22, [x22, _NUM_BUTTONS@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_BIT32_CLEAR
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	add	x1, sp, #8
	mov	w2, #24
	bl	_read
	cmp	x0, #24
	b.ne	LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #8]
	ldr	w9, [x20]
	bic	w8, w8, w9
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #16]
	ldr	x8, [x22]
	cmp	x1, x8
	b.hs	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	ldr	w0, [x19, #8]
	cbz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_BIT32_SET
	b	LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]
	ldr	x9, [x21]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [sp, #24]
	ldr	x10, [x19]
	str	w9, [x10, x8, lsl #2]
	b	LBB0_3
LBB0_11:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_JS_EVENT_INIT,4,2              ; @JS_EVENT_INIT
	.comm	_NUM_BUTTONS,8,3                ; @NUM_BUTTONS
	.comm	_NUM_AXES,8,3                   ; @NUM_AXES
	.no_dead_strip	_linuxraw_poll_pad
.subsections_via_symbols
