	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function joydev_dev_is_absolute_mouse
_joydev_dev_is_absolute_mouse:          ## @joydev_dev_is_absolute_mouse
	.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	%rdi, %r15
	movq	_jd_scratch@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_KEY_CNT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_DECLARE_BITMAP
	movq	_ABS_CNT@GOTPCREL(%rip), %rcx
	movq	(%rbx), %rax
	cmpq	%rax, (%rcx)
	setg	%cl
	movq	_EV_CNT@GOTPCREL(%rip), %r14
	cmpq	%rax, (%r14)
	setg	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_BUILD_BUG_ON
	movl	(%r13), %edi
	movq	(%r14), %rsi
	callq	_bitmap_zero
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movq	_EV_SYN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movl	(%r13), %edi
	movl	16(%r15), %esi
	movq	(%r14), %rdx
	callq	_bitmap_equal
	movq	%rax, %r12
	movq	_EV_MSC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movl	(%r13), %edi
	movl	16(%r15), %esi
	movq	(%r14), %rdx
	callq	_bitmap_equal
	movq	%rax, %rbx
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movl	(%r13), %edi
	movl	16(%r15), %esi
	movq	(%r14), %rdx
	callq	_bitmap_equal
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.2:
	testq	%r12, %r12
	je	LBB0_6
LBB0_3:
	movl	(%r13), %edi
	movq	_ABS_CNT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_bitmap_zero
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movl	12(%r15), %edi
	movl	(%r13), %esi
	movq	(%rbx), %rdx
	callq	_bitmap_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r13), %edi
	movq	_KEY_CNT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_bitmap_zero
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	___set_bit
	movl	8(%r15), %edi
	movl	(%r13), %esi
	movq	(%rbx), %rdx
	callq	_bitmap_equal
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movq	_BUS_AMIGA@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	setne	%r14b
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jd_scratch,4,2                 ## @jd_scratch
	.comm	_KEY_CNT,8,3                    ## @KEY_CNT
	.comm	_ABS_CNT,8,3                    ## @ABS_CNT
	.comm	_EV_CNT,8,3                     ## @EV_CNT
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_SYN,4,2                     ## @EV_SYN
	.comm	_EV_MSC,4,2                     ## @EV_MSC
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_BUS_AMIGA,8,3                  ## @BUS_AMIGA
	.no_dead_strip	_joydev_dev_is_absolute_mouse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function joydev_dev_is_absolute_mouse
_joydev_dev_is_absolute_mouse:          ; @joydev_dev_is_absolute_mouse
	.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, x0
Lloh0:
	adrp	x22, _jd_scratch@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jd_scratch@GOTPAGEOFF]
	ldr	w0, [x22]
Lloh2:
	adrp	x23, _KEY_CNT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _KEY_CNT@GOTPAGEOFF]
	ldr	x1, [x23]
	bl	_DECLARE_BITMAP
Lloh4:
	adrp	x24, _ABS_CNT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ABS_CNT@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x23]
	cmp	x8, x9
Lloh6:
	adrp	x25, _EV_CNT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EV_CNT@GOTPAGEOFF]
	ldr	x8, [x25]
	ccmp	x8, x9, #0, le
	cset	w0, gt
	bl	_BUILD_BUG_ON
	ldr	w0, [x22]
	ldr	x1, [x25]
	bl	_bitmap_zero
Lloh8:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
Lloh11:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
Lloh14:
	adrp	x8, _EV_SYN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EV_SYN@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	ldr	w0, [x22]
	ldr	w1, [x19, #16]
	ldr	x2, [x25]
	bl	_bitmap_equal
	mov	x20, x0
Lloh17:
	adrp	x8, _EV_MSC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EV_MSC@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	ldr	w0, [x22]
	ldr	w1, [x19, #16]
	ldr	x2, [x25]
	bl	_bitmap_equal
	mov	x21, x0
Lloh20:
	adrp	x8, _EV_REL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	ldr	w0, [x22]
	ldr	w1, [x19, #16]
	ldr	x2, [x25]
	bl	_bitmap_equal
	cbnz	x0, LBB0_4
; %bb.1:
	cbnz	x21, LBB0_4
; %bb.2:
	cbnz	x20, LBB0_4
; %bb.3:
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w0, [x22]
	ldr	x1, [x24]
	bl	_bitmap_zero
Lloh23:
	adrp	x8, _ABS_X@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
Lloh26:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	ldr	w0, [x19, #12]
	ldr	w1, [x22]
	ldr	x2, [x24]
	bl	_bitmap_equal
	cbz	x0, LBB0_7
; %bb.5:
	ldr	w0, [x22]
	ldr	x1, [x23]
	bl	_bitmap_zero
Lloh29:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
Lloh32:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh33:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
Lloh35:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	___set_bit
	ldr	w0, [x19, #8]
	ldr	w1, [x22]
	ldr	x2, [x23]
	bl	_bitmap_equal
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x19]
Lloh38:
	adrp	x9, _BUS_AMIGA@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BUS_AMIGA@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
LBB0_7:
	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 AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_jd_scratch,4,2                 ; @jd_scratch
	.comm	_KEY_CNT,8,3                    ; @KEY_CNT
	.comm	_ABS_CNT,8,3                    ; @ABS_CNT
	.comm	_EV_CNT,8,3                     ; @EV_CNT
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_SYN,4,2                     ; @EV_SYN
	.comm	_EV_MSC,4,2                     ; @EV_MSC
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_BUS_AMIGA,8,3                  ; @BUS_AMIGA
	.no_dead_strip	_joydev_dev_is_absolute_mouse
.subsections_via_symbols
