	.file	"extr_fw_consumer.c_fw_consumer_modevent.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"beastie"
.LC1:
	.string	"%s"
.LC2:
	.string	"Bye!"
	.text
	.p2align 4
	.type	fw_consumer_modevent, @function
fw_consumer_modevent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	cmp	esi, 128
	je	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	cmp	esi, 129
	jne	.L1
	lea	rdi, .LC0[rip]
	call	firmware_get@PLT
	mov	r12d, DWORD PTR ENOENT[rip]
	mov	QWORD PTR fp[rip], rax
	mov	rdi, rax
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR [rax]
	movsx	rax, DWORD PTR 8[rax]
	cmp	BYTE PTR -1[rsi+rax], 0
	jne	.L11
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	printf@PLT
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	puts@PLT
	mov	rax, QWORD PTR fp[rip]
	test	rax, rax
	je	.L1
	mov	rsi, QWORD PTR [rax]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR FIRMWARE_UNLOAD[rip]
	mov	rdi, QWORD PTR fp[rip]
	call	firmware_put@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	esi, DWORD PTR FIRMWARE_UNLOAD[rip]
	call	firmware_put@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	fw_consumer_modevent, .-fw_consumer_modevent
	.comm	fp,8,8
	.comm	FIRMWARE_UNLOAD,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.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_fw_consumer.c_fw_consumer_modevent.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"beastie\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Bye!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fw_consumer_modevent, %function
fw_consumer_modevent:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #128
	push	{r4, lr}
	beq	.L2
	cmp	r1, #129
	bne	.L3
	ldr	r0, .L12
	bl	firmware_get
	ldr	r2, .L12+4
	cmp	r0, #0
	str	r0, [r2]
	beq	.L10
	ldm	r0, {r1, r3}
	add	r3, r1, r3
	ldrb	r4, [r3, #-1]	@ zero_extendqisi2
	cmp	r4, #0
	bne	.L11
	ldr	r0, .L12+8
	bl	printf
	mov	r0, r4
	pop	{r4, pc}
.L2:
	ldr	r4, .L12+4
	ldr	r0, .L12+12
	bl	puts
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, pc}
	ldr	r1, [r0]
	ldr	r0, .L12+8
	bl	printf
	ldr	r3, .L12+16
	ldr	r0, [r4]
	ldr	r1, [r3]
	bl	firmware_put
	mov	r0, #0
	pop	{r4, pc}
.L3:
	ldr	r3, .L12+20
	ldr	r0, [r3]
	pop	{r4, pc}
.L11:
	ldr	r3, .L12+16
	ldr	r1, [r3]
	bl	firmware_put
	ldr	r3, .L12+20
	ldr	r0, [r3]
	pop	{r4, pc}
.L10:
	ldr	r3, .L12+24
	ldr	r0, [r3]
	pop	{r4, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	fp
	.word	.LC1
	.word	.LC2
	.word	FIRMWARE_UNLOAD
	.word	EINVAL
	.word	ENOENT
	.size	fw_consumer_modevent, .-fw_consumer_modevent
	.comm	fp,4,4
	.comm	FIRMWARE_UNLOAD,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
