	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps2pp_set_model_properties
_ps2pp_set_model_properties:            ## @ps2pp_set_model_properties
	.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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %r12
	movl	(%rsi), %eax
	movq	_PS2PP_SIDE_BTN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_SIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %eax
LBB0_2:
	movq	_PS2PP_EXTRA_BTN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_EXTRA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %eax
LBB0_4:
	movq	_PS2PP_TASK_BTN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BTN_TASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %eax
LBB0_6:
	movq	_PS2PP_NAV_BTN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_EV_KEY@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_BTN_FORWARD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%r13), %esi
	movq	_BTN_BACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %eax
LBB0_8:
	movq	_PS2PP_WHEEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_WHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
	movl	(%rbx), %eax
LBB0_10:
	movq	_PS2PP_HWHEEL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REL_HWHEEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_input_set_capability
LBB0_12:
	movl	4(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	jae	LBB0_13
## %bb.15:
	cltq
	leaq	l_reltable.ps2pp_set_model_properties(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmp	LBB0_16
LBB0_13:
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.14:
	leaq	L_.str.4(%rip), %rax
LBB0_16:
	movq	%rax, (%r15)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS2PP_SIDE_BTN,4,2             ## @PS2PP_SIDE_BTN
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_SIDE,4,2                   ## @BTN_SIDE
	.comm	_PS2PP_EXTRA_BTN,4,2            ## @PS2PP_EXTRA_BTN
	.comm	_BTN_EXTRA,4,2                  ## @BTN_EXTRA
	.comm	_PS2PP_TASK_BTN,4,2             ## @PS2PP_TASK_BTN
	.comm	_BTN_TASK,4,2                   ## @BTN_TASK
	.comm	_PS2PP_NAV_BTN,4,2              ## @PS2PP_NAV_BTN
	.comm	_BTN_FORWARD,4,2                ## @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ## @BTN_BACK
	.comm	_PS2PP_WHEEL,4,2                ## @PS2PP_WHEEL
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_WHEEL,4,2                  ## @REL_WHEEL
	.comm	_PS2PP_HWHEEL,4,2               ## @PS2PP_HWHEEL
	.comm	_REL_HWHEEL,4,2                 ## @REL_HWHEEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wheel Mouse"

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

L_.str.2:                               ## @.str.2
	.asciz	"TouchPad 3"

L_.str.3:                               ## @.str.3
	.asciz	"TrackMan"

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

	.no_dead_strip	_ps2pp_set_model_properties
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.ps2pp_set_model_properties
l_reltable.ps2pp_set_model_properties:
	.long	L_.str-l_reltable.ps2pp_set_model_properties
	.long	L_.str.3-l_reltable.ps2pp_set_model_properties
	.long	L_.str.2-l_reltable.ps2pp_set_model_properties
	.long	L_.str.1-l_reltable.ps2pp_set_model_properties

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps2pp_set_model_properties
_ps2pp_set_model_properties:            ; @ps2pp_set_model_properties
	.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, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _PS2PP_SIDE_BTN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PS2PP_SIDE_BTN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x23]
Lloh5:
	adrp	x8, _BTN_SIDE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTN_SIDE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
LBB0_2:
Lloh8:
	adrp	x9, _PS2PP_EXTRA_BTN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PS2PP_EXTRA_BTN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w1, [x23]
Lloh11:
	adrp	x8, _BTN_EXTRA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTN_EXTRA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
LBB0_4:
Lloh14:
	adrp	x9, _PS2PP_TASK_BTN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PS2PP_TASK_BTN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w1, [x23]
Lloh17:
	adrp	x8, _BTN_TASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_TASK@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
LBB0_6:
Lloh20:
	adrp	x9, _PS2PP_NAV_BTN@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PS2PP_NAV_BTN@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x23]
Lloh23:
	adrp	x8, _BTN_FORWARD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _BTN_FORWARD@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w1, [x23]
Lloh26:
	adrp	x8, _BTN_BACK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BTN_BACK@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
LBB0_8:
Lloh29:
	adrp	x9, _PS2PP_WHEEL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PS2PP_WHEEL@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
Lloh32:
	adrp	x23, _EV_REL@GOTPAGE
Lloh33:
	ldr	x23, [x23, _EV_REL@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w1, [x23]
Lloh34:
	adrp	x8, _REL_WHEEL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _REL_WHEEL@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
	ldr	w8, [x21]
LBB0_10:
Lloh37:
	adrp	x9, _PS2PP_HWHEEL@GOTPAGE
Lloh38:
	ldr	x9, [x9, _PS2PP_HWHEEL@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	ldr	w1, [x23]
Lloh40:
	adrp	x8, _REL_HWHEEL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _REL_HWHEEL@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_input_set_capability
LBB0_12:
	ldr	w8, [x21, #4]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hs	LBB0_14
; %bb.13:
Lloh43:
	adrp	x9, l_switch.table.ps2pp_set_model_properties@PAGE
Lloh44:
	add	x9, x9, l_switch.table.ps2pp_set_model_properties@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_16
LBB0_14:
	cbz	w20, LBB0_17
; %bb.15:
Lloh45:
	adrp	x8, l_.str.4@PAGE
Lloh46:
	add	x8, x8, l_.str.4@PAGEOFF
LBB0_16:
	str	x8, [x19]
LBB0_17:
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_PS2PP_SIDE_BTN,4,2             ; @PS2PP_SIDE_BTN
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_SIDE,4,2                   ; @BTN_SIDE
	.comm	_PS2PP_EXTRA_BTN,4,2            ; @PS2PP_EXTRA_BTN
	.comm	_BTN_EXTRA,4,2                  ; @BTN_EXTRA
	.comm	_PS2PP_TASK_BTN,4,2             ; @PS2PP_TASK_BTN
	.comm	_BTN_TASK,4,2                   ; @BTN_TASK
	.comm	_PS2PP_NAV_BTN,4,2              ; @PS2PP_NAV_BTN
	.comm	_BTN_FORWARD,4,2                ; @BTN_FORWARD
	.comm	_BTN_BACK,4,2                   ; @BTN_BACK
	.comm	_PS2PP_WHEEL,4,2                ; @PS2PP_WHEEL
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_WHEEL,4,2                  ; @REL_WHEEL
	.comm	_PS2PP_HWHEEL,4,2               ; @PS2PP_HWHEEL
	.comm	_REL_HWHEEL,4,2                 ; @REL_HWHEEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wheel Mouse"

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

l_.str.2:                               ; @.str.2
	.asciz	"TouchPad 3"

l_.str.3:                               ; @.str.3
	.asciz	"TrackMan"

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

	.no_dead_strip	_ps2pp_set_model_properties
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ps2pp_set_model_properties
l_switch.table.ps2pp_set_model_properties:
	.quad	l_.str
	.quad	l_.str.3
	.quad	l_.str.2
	.quad	l_.str.1

.subsections_via_symbols
