	.file	"extr_iguanair.c_iguanair_get_features.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to get version\n"
.LC1:
	.string	"firmware 0x%04x is too old\n"
.LC2:
	.string	"failed to get buffer size\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC3:
	.string	"buffer size %u larger than expected\n"
	.section	.rodata.str1.1
.LC4:
	.string	"failed to get features\n"
	.text
	.p2align 4
	.type	iguanair_get_features, @function
iguanair_get_features:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 16[rdi]
	mov	edx, DWORD PTR DIR_OUT[rip]
	mov	DWORD PTR 4[rax], edx
	mov	edx, DWORD PTR CMD_NOP[rip]
	mov	QWORD PTR 8[rax], 0
	mov	DWORD PTR [rax], edx
	call	iguanair_send@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	esi, 16
	mov	rdi, rbx
	mov	edx, DWORD PTR CMD_GET_VERSION[rip]
	mov	DWORD PTR [rax], edx
	call	iguanair_send@PLT
	test	eax, eax
	jne	.L12
	mov	edx, DWORD PTR [rbx]
	cmp	edx, 516
	jle	.L13
	mov	edx, DWORD PTR CMD_GET_BUFSIZE[rip]
	mov	esi, 16
	mov	rdi, rbx
	movabs	rax, 279172874390
	mov	QWORD PTR 4[rbx], rax
	mov	rax, QWORD PTR 16[rbx]
	mov	DWORD PTR [rax], edx
	call	iguanair_send@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	mov	edx, DWORD PTR 4[rbx]
	cmp	edx, DWORD PTR BUF_SIZE[rip]
	jg	.L15
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	edx, DWORD PTR CMD_GET_FEATURES[rip]
	mov	esi, 16
	mov	rdi, rbx
	mov	DWORD PTR [rax], edx
	call	iguanair_send@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	mov	r12d, eax
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	dev_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	dev_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
.L3:
	endbr64
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	dev_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	lea	rsi, .LC3[rip]
	xor	eax, eax
	call	dev_info@PLT
	mov	eax, DWORD PTR BUF_SIZE[rip]
	mov	DWORD PTR 4[rbx], eax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	iguanair_get_features, .-iguanair_get_features
	.comm	ENODEV,4,4
	.comm	DIR_OUT,4,4
	.comm	CMD_NOP,4,4
	.comm	CMD_GET_VERSION,4,4
	.comm	CMD_GET_FEATURES,4,4
	.comm	CMD_GET_BUFSIZE,4,4
	.comm	BUF_SIZE,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_iguanair.c_iguanair_get_features.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to get version\012\000"
	.align	2
.LC1:
	.ascii	"firmware 0x%04x is too old\012\000"
	.align	2
.LC2:
	.ascii	"failed to get buffer size\012\000"
	.align	2
.LC3:
	.ascii	"buffer size %u larger than expected\012\000"
	.align	2
.LC4:
	.ascii	"failed to get features\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iguanair_get_features, %function
iguanair_get_features:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r1, .L17
	ldr	r2, .L17+4
	ldr	r3, [r0, #16]
	ldr	r1, [r1]
	ldr	r2, [r2]
	stmib	r3, {r1, ip}
	str	r2, [r3]
	mov	r1, #12
	bl	iguanair_send
	ldr	r2, .L17+8
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	mov	r0, r4
	mov	r1, #12
	str	r2, [r3]
	bl	iguanair_send
	subs	r5, r0, #0
	bne	.L12
	ldr	r2, [r4]
	cmp	r2, #516
	ble	.L13
	mov	r0, #150
	mov	r1, #65
	ldr	r2, .L17+12
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	stmib	r4, {r0, r1}
	mov	r1, #12
	mov	r0, r4
	str	r2, [r3]
	bl	iguanair_send
	subs	r5, r0, #0
	bne	.L14
	ldr	r5, .L17+16
	ldr	r2, [r4, #4]
	ldr	r3, [r5]
	cmp	r2, r3
	bgt	.L15
.L6:
	ldr	r2, .L17+20
	ldr	r3, [r4, #16]
	ldr	r2, [r2]
	mov	r1, #12
	mov	r0, r4
	str	r2, [r3]
	bl	iguanair_send
	subs	r5, r0, #0
	bne	.L16
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, [r4, #12]
	ldr	r1, .L17+24
	bl	dev_err
	ldr	r3, .L17+28
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r0, [r4, #12]
	ldr	r1, .L17+32
	bl	dev_info
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, [r4, #12]
	ldr	r1, .L17+36
	bl	dev_info
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
.L3:
	ldr	r0, [r4, #12]
	ldr	r1, .L17+40
	bl	dev_info
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r1, .L17+44
	ldr	r0, [r4, #12]
	bl	dev_info
	ldr	r3, [r5]
	str	r3, [r4, #4]
	b	.L6
.L18:
	.align	2
.L17:
	.word	DIR_OUT
	.word	CMD_NOP
	.word	CMD_GET_VERSION
	.word	CMD_GET_BUFSIZE
	.word	BUF_SIZE
	.word	CMD_GET_FEATURES
	.word	.LC1
	.word	ENODEV
	.word	.LC0
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	iguanair_get_features, .-iguanair_get_features
	.comm	ENODEV,4,4
	.comm	DIR_OUT,4,4
	.comm	CMD_NOP,4,4
	.comm	CMD_GET_VERSION,4,4
	.comm	CMD_GET_FEATURES,4,4
	.comm	CMD_GET_BUFSIZE,4,4
	.comm	BUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
