	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xbox_remote_input_report
_xbox_remote_input_report:              ## @xbox_remote_input_report
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	16(%rdi), %rax
	movq	(%rax), %r8
	movl	(%rdi), %ecx
	cmpl	$6, %ecx
	jne	LBB0_2
## %bb.1:
	cmpb	$6, 1(%r8)
	jne	LBB0_2
## %bb.3:
	movl	8(%rax), %r14d
	movq	_RC_PROTO_XBOX_DVD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addq	$2, %r8
	movq	%r8, %rdi
	callq	_le16_to_cpup
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rc_keydown                     ## TAILCALL
LBB0_2:
	movq	8(%rdi), %rdi
	movzbl	%cl, %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ecx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Weird data, len=%d: %*ph\n"

	.comm	_RC_PROTO_XBOX_DVD,4,2          ## @RC_PROTO_XBOX_DVD
	.no_dead_strip	_xbox_remote_input_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xbox_remote_input_report
_xbox_remote_input_report:              ; @xbox_remote_input_report
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #16]
	ldr	x4, [x8]
	ldr	w9, [x0]
	cmp	w9, #6
	b.ne	LBB0_3
; %bb.1:
	ldrb	w10, [x4, #1]
	cmp	w10, #6
	b.ne	LBB0_3
; %bb.2:
	ldr	w19, [x8, #8]
Lloh0:
	adrp	x8, _RC_PROTO_XBOX_DVD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RC_PROTO_XBOX_DVD@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x0, x4, #2
	bl	_le16_to_cpup
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rc_keydown
LBB0_3:
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	and	w2, w9, #0xff
	mov	x3, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Weird data, len=%d: %*ph\n"

	.comm	_RC_PROTO_XBOX_DVD,4,2          ; @RC_PROTO_XBOX_DVD
	.no_dead_strip	_xbox_remote_input_report
.subsections_via_symbols
