	.file	"extr_device_wiiu_gca.c_wiiu_gca_handle_packet.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[gca]: instance null or not ready yet.\n"
	.align 8
.LC1:
	.string	"[gca]: packet size %d is too big for buffer of size %d\n"
	.text
	.p2align 4
	.type	wiiu_gca_handle_packet, @function
wiiu_gca_handle_packet:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	test	rdi, rdi
	je	.L2
	mov	eax, DWORD PTR 4[rdi]
	mov	rbp, rdi
	test	eax, eax
	je	.L2
	mov	r8, rdx
	cmp	rdx, 4
	ja	.L10
	mov	edi, DWORD PTR [rdi]
	call	memcpy@PLT
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	wiiu_gca_update_pad_state@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, 4
	mov	rsi, r8
	lea	rdi, .LC1[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	xor	eax, eax
	jmp	RARCH_WARN@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	RARCH_WARN@PLT
	.cfi_endproc
.LFE0:
	.size	wiiu_gca_handle_packet, .-wiiu_gca_handle_packet
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_device_wiiu_gca.c_wiiu_gca_handle_packet.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[gca]: instance null or not ready yet.\012\000"
	.align	2
.LC1:
	.ascii	"[gca]: packet size %d is too big for buffer of size"
	.ascii	" %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wiiu_gca_handle_packet, %function
wiiu_gca_handle_packet:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	beq	.L2
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L2
	cmp	r2, #4
	bhi	.L10
	ldr	r0, [r4]
	bl	memcpy
	mov	r0, r4
	pop	{r4, lr}
	b	wiiu_gca_update_pad_state
.L10:
	mov	r1, r2
	pop	{r4, lr}
	mov	r2, #4
	ldr	r0, .L11
	b	RARCH_WARN
.L2:
	ldr	r0, .L11+4
	pop	{r4, lr}
	b	RARCH_WARN
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	.LC0
	.size	wiiu_gca_handle_packet, .-wiiu_gca_handle_packet
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
