	.file	"extr_usbtest.c_is_good_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bogus config descriptor length\n"
	.align 8
.LC1:
	.string	"high bit of config attributes not set\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"reserved config bits set\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"bogus config descriptor read size\n"
	.text
	.p2align 4
	.type	is_good_config, @function
is_good_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	cmp	esi, 15
	jbe	.L1
	mov	r13, QWORD PTR [rdi]
	mov	rbp, rdi
	mov	eax, DWORD PTR 0[r13]
	add	eax, -128
	cmp	eax, 1
	jbe	.L12
.L1:
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	cmp	DWORD PTR 4[r13], 9
	jne	.L13
	mov	eax, DWORD PTR 8[r13]
	mov	r12d, eax
	and	r12d, 128
	or	r12d, DWORD PTR realworld[rip]
	je	.L14
	and	eax, 31
	mov	r12d, eax
	jne	.L15
	mov	edi, DWORD PTR 12[r13]
	mov	DWORD PTR 12[rsp], esi
	call	le16_to_cpu@PLT
	mov	esi, DWORD PTR 12[rsp]
	cmp	eax, esi
	je	.L7
	mov	edi, DWORD PTR 12[r13]
	call	le16_to_cpu@PLT
	cmp	eax, DWORD PTR TBUF_SIZE[rip]
	jl	.L16
.L7:
	mov	r12d, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC0[rip]
	call	ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC2[rip]
	xor	r12d, r12d
	call	ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC1[rip]
	call	ERROR@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	is_good_config, .-is_good_config
	.comm	realworld,4,4
	.comm	TBUF_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_usbtest.c_is_good_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bogus config descriptor length\012\000"
	.align	2
.LC1:
	.ascii	"high bit of config attributes not set\012\000"
	.align	2
.LC2:
	.ascii	"reserved config bits set\012\000"
	.align	2
.LC3:
	.ascii	"bogus config descriptor read size\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_good_config, %function
is_good_config:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #15
	push	{r4, r5, r6, r7, r8, lr}
	bls	.L9
	ldr	r7, [r0]
	mov	r6, r0
	ldr	r3, [r7]
	sub	r3, r3, #128
	cmp	r3, #1
	bls	.L12
.L9:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, [r7, #4]
	cmp	r3, #9
	bne	.L13
	ldr	r2, .L17
	ldr	r3, [r7, #8]
	ldr	r2, [r2]
	and	r5, r3, #128
	orrs	r5, r5, r2
	beq	.L14
	ands	r5, r3, #31
	bne	.L15
	ldr	r0, [r7, #12]
	mov	r4, r1
	bl	le16_to_cpu
	cmp	r0, r4
	beq	.L7
	ldr	r0, [r7, #12]
	bl	le16_to_cpu
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L16
.L7:
	mov	r5, #1
	b	.L1
.L13:
	ldr	r1, .L17+8
	bl	ERROR
	mov	r5, #0
	b	.L1
.L15:
	ldr	r1, .L17+12
	bl	ERROR
	mov	r5, #0
	b	.L1
.L16:
	mov	r0, r6
	ldr	r1, .L17+16
	bl	ERROR
	b	.L1
.L14:
	ldr	r1, .L17+20
	bl	ERROR
	b	.L1
.L18:
	.align	2
.L17:
	.word	realworld
	.word	TBUF_SIZE
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.size	is_good_config, .-is_good_config
	.comm	realworld,4,4
	.comm	TBUF_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
