	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wiimod_mp_in_mp
_wiimod_mp_in_mp:                       ## @wiimod_mp_in_mp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	12(%rsi), %r8d
	movl	16(%rsi), %edi
	movl	%r8d, %edx
	shll	$6, %edx
	andl	$65280, %edx                    ## imm = 0xFF00
	orl	(%rsi), %edx
	movl	%edi, %ebx
	shll	$6, %ebx
	andl	$65280, %ebx                    ## imm = 0xFF00
	orl	4(%rsi), %ebx
	movl	20(%rsi), %ecx
	shll	$6, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	addl	$-8192, %edx                    ## imm = 0xE000
	testb	$2, %r8b
	jne	LBB0_2
## %bb.1:
	imull	$18000, %edx, %edx              ## imm = 0x4650
	movslq	%edx, %rdx
	imulq	$156180629, %rdx, %rdx          ## imm = 0x94F2095
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$36, %rdx
	addl	%eax, %edx
	jmp	LBB0_3
LBB0_2:
	leal	(%rdx,%rdx,8), %edx
LBB0_3:
	orl	8(%rsi), %ecx
	addl	$-8192, %ebx                    ## imm = 0xE000
	testb	$2, %dil
	jne	LBB0_5
## %bb.4:
	imull	$18000, %ebx, %eax              ## imm = 0x4650
	cltq
	imulq	$156180629, %rax, %r15          ## imm = 0x94F2095
	movq	%r15, %rax
	shrq	$63, %rax
	sarq	$36, %r15
	addl	%eax, %r15d
	jmp	LBB0_6
LBB0_5:
	leal	(%rbx,%rbx,8), %r15d
LBB0_6:
	addl	$-8192, %ecx                    ## imm = 0xE000
	testb	$1, %r8b
	jne	LBB0_8
## %bb.7:
	imull	$18000, %ecx, %eax              ## imm = 0x4650
	cltq
	imulq	$156180629, %rax, %rbx          ## imm = 0x94F2095
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$36, %rbx
	addl	%eax, %ebx
	jmp	LBB0_9
LBB0_8:
	leal	(%rcx,%rcx,8), %ebx
LBB0_9:
	movl	(%r14), %edi
	movq	_ABS_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_input_report_abs
	movl	(%r14), %edi
	movq	_ABS_RY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_abs
	movl	(%r14), %edi
	movq	_ABS_RZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	callq	_input_report_abs
	movl	(%r14), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_RX,4,2                     ## @ABS_RX
	.comm	_ABS_RY,4,2                     ## @ABS_RY
	.comm	_ABS_RZ,4,2                     ## @ABS_RZ
	.no_dead_strip	_wiimod_mp_in_mp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wiimod_mp_in_mp
_wiimod_mp_in_mp:                       ; @wiimod_mp_in_mp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldp	w8, w9, [x1]
	ldp	w10, w11, [x1, #8]
	lsl	w12, w11, #6
	and	w12, w12, #0xff00
	orr	w8, w12, w8
	ldp	w12, w13, [x1, #16]
	lsl	w14, w12, #6
	and	w14, w14, #0xff00
	orr	w9, w14, w9
	lsl	w13, w13, #6
	and	w13, w13, #0xff00
	orr	w10, w13, w10
	sub	w8, w8, #2, lsl #12             ; =8192
	sub	w9, w9, #2, lsl #12             ; =8192
	sub	w10, w10, #2, lsl #12           ; =8192
	add	w13, w8, w8, lsl #3
	mov	w14, #18000
	mul	w8, w8, w14
	mov	w15, #8341
	movk	w15, #2383, lsl #16
	smull	x8, w8, w15
	lsr	x16, x8, #63
	asr	x8, x8, #36
	add	w8, w8, w16
	tst	w11, #0x2
	csel	w2, w13, w8, ne
	add	w8, w9, w9, lsl #3
	mul	w9, w9, w14
	smull	x9, w9, w15
	lsr	x13, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w13
	tst	w12, #0x2
	csel	w20, w8, w9, ne
	add	w8, w10, w10, lsl #3
	mul	w9, w10, w14
	smull	x9, w9, w15
	lsr	x10, x9, #63
	asr	x9, x9, #36
	add	w9, w9, w10
	tst	w11, #0x1
	csel	w21, w8, w9, ne
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _ABS_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ABS_RX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _ABS_RY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ABS_RY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_abs
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _ABS_RZ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ABS_RZ@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_input_report_abs
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_input_sync
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_RX,4,2                     ; @ABS_RX
	.comm	_ABS_RY,4,2                     ; @ABS_RY
	.comm	_ABS_RZ,4,2                     ; @ABS_RZ
	.no_dead_strip	_wiimod_mp_in_mp
.subsections_via_symbols
