	.file	"extr_maple.c_maple_response_devinfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	maple_response_devinfo, @function
maple_response_devinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR started[rip]
	test	edi, edi
	je	.L2
	cmp	DWORD PTR scanning[rip], 2
	je	.L2
	mov	esi, DWORD PTR fullscan[rip]
	test	esi, esi
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	QWORD PTR [rbx], 0
	jne	.L4
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR checked[rip]
	sal	rax, 2
	add	rdx, rax
	mov	ecx, DWORD PTR [rdx]
	test	ecx, ecx
	je	.L11
.L5:
	mov	rdx, QWORD PTR empty[rip]
	mov	rdi, rbx
	mov	DWORD PTR [rdx+rax], 0
	call	maple_attach_driver@PLT
.L3:
	cmp	QWORD PTR [rbx], 0
	jne	.L1
	movzx	ebp, BYTE PTR 2[rbp]
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR subdevice_map[rip]
	and	ebp, 31
	cmp	BYTE PTR [rdx+rax], bpl
	je	.L1
	movsx	esi, bpl
	mov	rdi, rbx
	call	maple_map_subunits@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdx, QWORD PTR subdevice_map[rip]
	mov	BYTE PTR [rdx+rax], bpl
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbx
	call	maple_attach_driver@PLT
	cmp	QWORD PTR [rbx], 0
	je	.L12
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	DWORD PTR [rdx], 1
	mov	rdi, rbx
	call	maple_attach_driver@PLT
	jmp	.L3
.L12:
	mov	rax, QWORD PTR 8[rbx]
	sal	rax, 2
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	maple_response_devinfo, .-maple_response_devinfo
	.comm	subdevice_map,8,8
	.comm	started,4,4
	.comm	scanning,4,4
	.comm	fullscan,4,4
	.comm	empty,8,8
	.comm	checked,8,8
	.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_maple.c_maple_response_devinfo.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	maple_response_devinfo, %function
maple_response_devinfo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	push	{r4, r5, r6, lr}
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #0
	mov	r5, r1
	beq	.L2
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L2
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
.L2:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L4
	ldr	r2, .L18+12
	ldr	r3, [r4, #4]
	ldr	r2, [r2]
	lsl	ip, r3, #2
	ldr	r1, [r2, r3, lsl #2]
	cmp	r1, #0
	beq	.L17
.L5:
	mov	r2, #0
	ldr	r3, .L18+16
	mov	r0, r4
	ldr	r3, [r3]
	str	r2, [r3, ip]
	bl	maple_attach_driver
.L3:
	ldr	r3, [r4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	r6, .L18+20
	ldr	r3, [r4, #4]
	ldr	r2, [r6]
	ldrb	r5, [r5, #2]	@ zero_extendqisi2
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	and	r5, r5, #31
	cmp	r3, r5
	popeq	{r4, r5, r6, pc}
	mov	r1, r5
	mov	r0, r4
	bl	maple_map_subunits
	ldr	r2, [r6]
	ldr	r3, [r4, #4]
	strb	r5, [r2, r3]
	pop	{r4, r5, r6, pc}
.L4:
	mov	r0, r4
	bl	maple_attach_driver
	ldr	r3, [r4]
	cmp	r3, #0
	popne	{r4, r5, r6, pc}
	ldr	ip, [r4, #4]
	lsl	ip, ip, #2
	b	.L5
.L17:
	mov	r1, #1
	mov	r0, r4
	str	r1, [r2, r3, lsl #2]
	bl	maple_attach_driver
	b	.L3
.L19:
	.align	2
.L18:
	.word	started
	.word	scanning
	.word	fullscan
	.word	checked
	.word	empty
	.word	subdevice_map
	.size	maple_response_devinfo, .-maple_response_devinfo
	.comm	subdevice_map,4,4
	.comm	started,4,4
	.comm	scanning,4,4
	.comm	fullscan,4,4
	.comm	empty,4,4
	.comm	checked,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
