	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_calculate_extended_ir          ## -- Begin function calculate_extended_ir
	.p2align	4, 0x90
_calculate_extended_ir:                 ## @calculate_extended_ir
	.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, %r12
	movq	%rdi, %r15
	leaq	8(%rdi), %r14
	movq	8(%rdi), %rbx
	addq	$12, %rbx
	movl	$8, %r13d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%r13), %eax
	andl	$48, %eax
	shll	$4, %eax
	orl	-8(%r12,%r13), %eax
	movl	$1023, %edi                     ## imm = 0x3FF
	subl	%eax, %edi
	movl	%edi, -12(%rbx)
	movl	(%r12,%r13), %eax
	shll	$2, %eax
	andl	$768, %eax                      ## imm = 0x300
	orl	-4(%r12,%r13), %eax
	movl	%eax, -8(%rbx)
	movl	(%r12,%r13), %eax
	movl	%eax, -4(%rbx)
	callq	_BIG_ENDIAN_SHORT
	movl	%eax, -12(%rbx)
	movl	-8(%rbx), %edi
	callq	_BIG_ENDIAN_SHORT
	movl	%eax, -8(%rbx)
	andl	$15, -4(%rbx)
	xorl	%ecx, %ecx
	cmpl	$1023, %eax                     ## imm = 0x3FF
	setne	%cl
	movl	%ecx, (%rbx)
	addq	$16, %rbx
	addq	$12, %r13
	cmpq	$56, %r13
	jne	LBB0_1
## %bb.2:
	movq	_WIIMOTE_STATE_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_WIIMOTE_IS_SET
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_interpret_ir_data              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WIIMOTE_STATE_ACC,4,2          ## @WIIMOTE_STATE_ACC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_calculate_extended_ir          ; -- Begin function calculate_extended_ir
	.p2align	2
_calculate_extended_ir:                 ; @calculate_extended_ir
	.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	x21, x1
	mov	x19, x0
	mov	x20, x0
	ldr	x22, [x20, #8]!
	ldr	w8, [x1]
	ldr	w9, [x1, #8]
	lsl	w9, w9, #4
	and	w9, w9, #0x300
	orr	w8, w9, w8
	mov	w23, #1023
	sub	w0, w23, w8
	str	w0, [x22]
	ldp	w8, w9, [x1, #4]
	lsl	w9, w9, #2
	and	w9, w9, #0x300
	orr	w8, w9, w8
	str	w8, [x22, #4]
	ldr	w8, [x1, #8]
	str	w8, [x22, #8]
	bl	_BIG_ENDIAN_SHORT
	str	w0, [x22]
	ldr	w0, [x22, #4]
	bl	_BIG_ENDIAN_SHORT
	ldr	w8, [x22, #8]
	and	w8, w8, #0xf
	stp	w0, w8, [x22, #4]
	cmp	w0, #1023
	cset	w8, ne
	str	w8, [x22, #12]
	ldr	w8, [x21, #12]
	ldr	w9, [x21, #20]
	lsl	w9, w9, #4
	and	w9, w9, #0x300
	orr	w8, w9, w8
	sub	w0, w23, w8
	str	w0, [x22, #16]
	ldp	w8, w9, [x21, #16]
	lsl	w9, w9, #2
	and	w9, w9, #0x300
	orr	w8, w9, w8
	str	w8, [x22, #20]
	ldr	w8, [x21, #20]
	str	w8, [x22, #24]
	bl	_BIG_ENDIAN_SHORT
	str	w0, [x22, #16]
	ldr	w0, [x22, #20]
	bl	_BIG_ENDIAN_SHORT
	ldr	w8, [x22, #24]
	and	w8, w8, #0xf
	stp	w0, w8, [x22, #20]
	cmp	w0, #1023
	cset	w8, ne
	str	w8, [x22, #28]
	ldr	w8, [x21, #24]
	ldr	w9, [x21, #32]
	lsl	w9, w9, #4
	and	w9, w9, #0x300
	orr	w8, w9, w8
	sub	w0, w23, w8
	str	w0, [x22, #32]
	ldp	w8, w9, [x21, #28]
	lsl	w9, w9, #2
	and	w9, w9, #0x300
	orr	w8, w9, w8
	str	w8, [x22, #36]
	ldr	w8, [x21, #32]
	str	w8, [x22, #40]
	bl	_BIG_ENDIAN_SHORT
	str	w0, [x22, #32]
	ldr	w0, [x22, #36]
	bl	_BIG_ENDIAN_SHORT
	ldr	w8, [x22, #40]
	and	w8, w8, #0xf
	stp	w0, w8, [x22, #36]
	cmp	w0, #1023
	cset	w8, ne
	str	w8, [x22, #44]
	ldr	w8, [x21, #36]
	ldr	w9, [x21, #44]
	lsl	w9, w9, #4
	and	w9, w9, #0x300
	orr	w8, w9, w8
	sub	w0, w23, w8
	str	w0, [x22, #48]
	ldp	w8, w9, [x21, #40]
	lsl	w9, w9, #2
	and	w9, w9, #0x300
	orr	w8, w9, w8
	str	w8, [x22, #52]
	ldr	w8, [x21, #44]
	str	w8, [x22, #56]
	bl	_BIG_ENDIAN_SHORT
	str	w0, [x22, #48]
	ldr	w0, [x22, #52]
	bl	_BIG_ENDIAN_SHORT
	ldr	w8, [x22, #56]
	and	w8, w8, #0xf
	stp	w0, w8, [x22, #52]
	cmp	w0, #1023
	cset	w8, ne
	str	w8, [x22, #60]
Lloh0:
	adrp	x8, _WIIMOTE_STATE_ACC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WIIMOTE_STATE_ACC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_WIIMOTE_IS_SET
	mov	x2, x0
	mov	x0, x20
	mov	x1, 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	_interpret_ir_data
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WIIMOTE_STATE_ACC,4,2          ; @WIIMOTE_STATE_ACC
.subsections_via_symbols
