	.file	"extr_mly.c_mly_get_controllerinfo.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mly_get_controllerinfo, @function
mly_get_controllerinfo:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	edi, 1
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	debug_called@PLT
	mov	rdi, QWORD PTR 8[rbp]
	test	rdi, rdi
	je	.L2
	mov	esi, DWORD PTR M_DEVBUF[rip]
	call	free@PLT
.L2:
	lea	r12, 12[rsp]
	mov	esi, 4
	lea	rbx, 16[rsp]
	mov	rdi, r12
	call	bzero@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rsi, r12
	mov	rdi, rbp
	mov	eax, DWORD PTR MDACIOCTL_GETCONTROLLERINFO[rip]
	lea	rdx, 8[rbp]
	xor	r9d, r9d
	mov	r8, rbx
	mov	QWORD PTR 8[rbp], 0
	mov	ecx, 4
	mov	DWORD PTR 20[rsp], eax
	push	0
	.cfi_def_cfa_offset 80
	call	mly_ioctl@PLT
	pop	rsi
	.cfi_def_cfa_offset 72
	pop	rdi
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rsp], 0
	jne	.L14
	mov	rdi, QWORD PTR 0[rbp]
	test	rdi, rdi
	je	.L5
	mov	esi, DWORD PTR M_DEVBUF[rip]
	call	free@PLT
.L5:
	mov	esi, 4
	mov	rdi, r12
	call	bzero@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rdx, rbp
	xor	r9d, r9d
	mov	eax, DWORD PTR MDACIOCTL_GETCONTROLLERPARAMETER[rip]
	mov	r8, rbx
	mov	rsi, r12
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], 0
	mov	ecx, 4
	mov	DWORD PTR 20[rsp], eax
	push	0
	.cfi_def_cfa_offset 80
	call	mly_ioctl@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	eax, eax
	jne	.L1
	cmp	QWORD PTR 16[rsp], 0
	jne	.L14
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L16
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR EIO[rip]
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mly_get_controllerinfo, .-mly_get_controllerinfo
	.comm	M_DEVBUF,4,4
	.comm	MDACIOCTL_GETCONTROLLERPARAMETER,4,4
	.comm	MDACIOCTL_GETCONTROLLERINFO,4,4
	.comm	EIO,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_mly.c_mly_get_controllerinfo.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mly_get_controllerinfo, %function
mly_get_controllerinfo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L20
	sub	sp, sp, #32
	mov	r0, #1
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	debug_called
	ldr	r0, [r4, #4]
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L20+4
	ldr	r1, [r3]
	bl	free
.L2:
	mov	r1, #4
	add	r0, sp, #20
	bl	bzero
	mov	r3, #0
	mov	r2, r4
	ldr	r1, .L20+8
	str	r3, [r2, #4]!
	ldr	ip, [r1]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	add	r3, sp, #24
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #4
	add	r1, sp, #20
	str	ip, [sp, #20]
	bl	mly_ioctl
	cmp	r0, #0
	bne	.L1
	ldr	r3, [sp, #24]
	cmp	r3, #0
	bne	.L17
	ldr	r0, [r4]
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L20+4
	ldr	r1, [r3]
	bl	free
.L5:
	mov	r1, #4
	add	r0, sp, #20
	bl	bzero
	mov	r3, #0
	ldr	r2, .L20+12
	add	r1, sp, #24
	str	r1, [sp]
	ldr	ip, [r2]
	mov	r0, r4
	str	r3, [r4]
	mov	r2, r4
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	add	r1, sp, #20
	mov	r3, #4
	str	ip, [sp, #20]
	bl	mly_ioctl
	cmp	r0, #0
	bne	.L1
	ldr	r0, [sp, #24]
	cmp	r0, #0
	bne	.L17
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L17:
	ldr	r3, .L20+16
	ldr	r0, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	M_DEVBUF
	.word	MDACIOCTL_GETCONTROLLERINFO
	.word	MDACIOCTL_GETCONTROLLERPARAMETER
	.word	EIO
	.size	mly_get_controllerinfo, .-mly_get_controllerinfo
	.comm	M_DEVBUF,4,4
	.comm	MDACIOCTL_GETCONTROLLERPARAMETER,4,4
	.comm	MDACIOCTL_GETCONTROLLERINFO,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
