	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2bare_detect
_ps2bare_detect:                        ## @ps2bare_detect
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.3:
	cmpq	$0, 8(%rdi)
	je	LBB0_4
LBB0_5:
	movl	16(%rdi), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_input_set_capability
	popq	%rbp
LBB0_6:
	xorl	%eax, %eax
	retq
LBB0_2:
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rdi)
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Generic"

L_.str.1:                               ## @.str.1
	.asciz	"Mouse"

	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.no_dead_strip	_ps2bare_detect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2bare_detect
_ps2bare_detect:                        ; @ps2bare_detect
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_6
LBB0_3:
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_input_set_capability
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #0
	ret
LBB0_5:
Lloh6:
	adrp	x8, l_.str@PAGE
Lloh7:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
LBB0_6:
Lloh8:
	adrp	x8, l_.str.1@PAGE
Lloh9:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x0, #8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Generic"

l_.str.1:                               ; @.str.1
	.asciz	"Mouse"

	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.no_dead_strip	_ps2bare_detect
.subsections_via_symbols
