	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wtp_populate_input
_wtp_populate_input:                    ## @wtp_populate_input
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rsi), %esi
	callq	___set_bit
	movq	_EV_KEY@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	4(%rbx), %esi
	callq	___set_bit
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___clear_bit
	movq	_EV_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	callq	___clear_bit
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %esi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_abs_set_res
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	4(%r15), %ecx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r13), %esi
	movl	12(%r15), %edx
	movq	%rbx, %rdi
	callq	_input_abs_set_res
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$50, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	(%r12), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	jmp	LBB0_3
LBB0_2:
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	___set_bit
LBB0_3:
	movl	8(%r15), %esi
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	movq	_INPUT_MT_DROP_UNUSED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_mt_init_slots            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_EV_LED,4,2                     ## @EV_LED
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS,4,2 ## @HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ## @INPUT_MT_DROP_UNUSED
	.no_dead_strip	_wtp_populate_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wtp_populate_input
_wtp_populate_input:                    ; @wtp_populate_input
	.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	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x1, #4]
	bl	___set_bit
Lloh3:
	adrp	x22, _EV_KEY@GOTPAGE
Lloh4:
	ldr	x22, [x22, _EV_KEY@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [x19, #4]
	bl	___set_bit
Lloh5:
	adrp	x8, _EV_REL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	___clear_bit
Lloh8:
	adrp	x8, _EV_LED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EV_LED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	___clear_bit
Lloh11:
	adrp	x23, _ABS_MT_POSITION_X@GOTPAGE
Lloh12:
	ldr	x23, [x23, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x23]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_input_abs_set_res
Lloh13:
	adrp	x23, _ABS_MT_POSITION_Y@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w3, [x21, #4]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x23]
	ldr	w2, [x21, #12]
	mov	x0, x19
	bl	_input_abs_set_res
Lloh15:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #50
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_input_set_capability
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh24:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_input_set_capability
	b	LBB0_3
LBB0_2:
Lloh27:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	___set_bit
LBB0_3:
	ldr	w1, [x21, #8]
Lloh30:
	adrp	x8, _INPUT_MT_POINTER@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INPUT_MT_POINTER@GOTPAGEOFF]
Lloh32:
	adrp	x9, _INPUT_MT_DROP_UNUSED@GOTPAGE
Lloh33:
	ldr	x9, [x9, _INPUT_MT_DROP_UNUSED@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	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	_input_mt_init_slots
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_EV_LED,4,2                     ; @EV_LED
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS,4,2 ; @HIDPP_QUIRK_WTP_PHYSICAL_BUTTONS
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_INPUT_MT_DROP_UNUSED,4,2       ; @INPUT_MT_DROP_UNUSED
	.no_dead_strip	_wtp_populate_input
.subsections_via_symbols
