	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xbox_remote_initialize
_xbox_remote_initialize:                ## @xbox_remote_initialize
	.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	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movl	4(%rsi), %esi
	movq	%r14, %rdi
	callq	_usb_rcvintpipe
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_usb_pipeout
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_usb_maxpacket
	movq	_DATA_BUFSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	cmpl	%r8d, %eax
	cmovll	%eax, %r8d
	movl	(%r12), %ecx
	movl	4(%r12), %edi
	movq	_xbox_remote_irq_in@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	(%r15), %eax
	movq	%r14, %rsi
	movl	%ebx, %edx
	pushq	%rax
	pushq	%r12
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DATA_BUFSIZE,4,2               ## @DATA_BUFSIZE
	.comm	_xbox_remote_irq_in,4,2         ## @xbox_remote_irq_in
	.no_dead_strip	_xbox_remote_initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xbox_remote_initialize
_xbox_remote_initialize:                ; @xbox_remote_initialize
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w1, [x1, #4]
	mov	x0, x21
	bl	_usb_rcvintpipe
	mov	x22, x0
	bl	_usb_pipeout
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_usb_maxpacket
Lloh0:
	adrp	x8, _DATA_BUFSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DATA_BUFSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	csel	w4, w0, w8, lt
	ldp	w3, w0, [x20]
Lloh3:
	adrp	x8, _xbox_remote_irq_in@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xbox_remote_irq_in@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	ldr	w7, [x19]
	mov	x1, x21
	mov	x2, x22
	mov	x6, x20
	bl	_usb_fill_int_urb
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DATA_BUFSIZE,4,2               ; @DATA_BUFSIZE
	.comm	_xbox_remote_irq_in,4,2         ; @xbox_remote_irq_in
	.no_dead_strip	_xbox_remote_initialize
.subsections_via_symbols
