	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_report_fixup
_sony_report_fixup:                     ## @sony_report_fixup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_hid_get_drvdata
	movq	%rax, %rbx
	movl	(%rax), %eax
	movq	_SINO_LITE_CONTROLLER@GOTPCREL(%rip), %rcx
	movq	_FUTUREMAX_DANCE_MAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_1
LBB0_10:
	movq	%r15, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_VAIO_RDESC_CONSTANT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	cmpl	$56, (%r14)
	jb	LBB0_8
## %bb.3:
	cmpl	$9, 8(%r15)
	jne	LBB0_8
## %bb.4:
	cmpl	$2, 12(%r15)
	jne	LBB0_8
## %bb.5:
	cmpl	$129, 216(%r15)
	jne	LBB0_8
## %bb.6:
	cmpl	$7, 220(%r15)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_hid_info
	movl	$6, 220(%r15)
	movl	(%rbx), %eax
LBB0_8:
	movq	_MOTION_CONTROLLER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_motion_fixup                   ## TAILCALL
LBB0_9:
	movq	_PS3REMOTE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.12:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ps3remote_fixup                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SINO_LITE_CONTROLLER,4,2       ## @SINO_LITE_CONTROLLER
	.comm	_FUTUREMAX_DANCE_MAT,4,2        ## @FUTUREMAX_DANCE_MAT
	.comm	_VAIO_RDESC_CONSTANT,4,2        ## @VAIO_RDESC_CONSTANT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fixing up Sony RF Receiver report descriptor\n"

	.comm	_MOTION_CONTROLLER,4,2          ## @MOTION_CONTROLLER
	.comm	_PS3REMOTE,4,2                  ## @PS3REMOTE
	.no_dead_strip	_sony_report_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_report_fixup
_sony_report_fixup:                     ; @sony_report_fixup
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_hid_get_drvdata
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SINO_LITE_CONTROLLER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SINO_LITE_CONTROLLER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _FUTUREMAX_DANCE_MAT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FUTUREMAX_DANCE_MAT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
LBB0_1:
	mov	x0, x20
	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
	ret
LBB0_2:
Lloh6:
	adrp	x9, _VAIO_RDESC_CONSTANT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VAIO_RDESC_CONSTANT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.3:
	ldr	w9, [x19]
	cmp	w9, #56
	b.lo	LBB0_9
; %bb.4:
	ldr	w9, [x20, #8]
	cmp	w9, #9
	b.ne	LBB0_9
; %bb.5:
	ldr	w9, [x20, #12]
	cmp	w9, #2
	b.ne	LBB0_9
; %bb.6:
	ldr	w9, [x20, #216]
	cmp	w9, #129
	b.ne	LBB0_9
; %bb.7:
	ldr	w9, [x20, #220]
	cmp	w9, #7
	b.ne	LBB0_9
; %bb.8:
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_hid_info
	mov	w8, #6
	str	w8, [x20, #220]
	ldr	w8, [x22]
LBB0_9:
Lloh11:
	adrp	x9, _MOTION_CONTROLLER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MOTION_CONTROLLER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_motion_fixup
LBB0_11:
Lloh14:
	adrp	x9, _PS3REMOTE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PS3REMOTE@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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	_ps3remote_fixup
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SINO_LITE_CONTROLLER,4,2       ; @SINO_LITE_CONTROLLER
	.comm	_FUTUREMAX_DANCE_MAT,4,2        ; @FUTUREMAX_DANCE_MAT
	.comm	_VAIO_RDESC_CONSTANT,4,2        ; @VAIO_RDESC_CONSTANT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fixing up Sony RF Receiver report descriptor\n"

	.comm	_MOTION_CONTROLLER,4,2          ; @MOTION_CONTROLLER
	.comm	_PS3REMOTE,4,2                  ; @PS3REMOTE
	.no_dead_strip	_sony_report_fixup
.subsections_via_symbols
