	.file	"extr_berry_charge.c_magic_dual_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Sending magic pearl command\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Magic pearl command returned %d\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Calling set_configuration\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Set Configuration failed :%d.\n"
	.text
	.p2align 4
	.type	magic_dual_mode, @function
magic_dual_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	edi, 2
	call	kzalloc@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	test	rax, rax
	je	.L1
	mov	r12, rax
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dbg@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	mov	r9d, 1
	mov	r8d, 1
	push	100
	.cfi_def_cfa_offset 48
	mov	ecx, 192
	mov	esi, eax
	mov	edx, 169
	push	2
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	push	r12
	.cfi_def_cfa_offset 64
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	edx, eax
	xor	eax, eax
	call	dbg@PLT
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dbg@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	usb_driver_set_configuration@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L10
.L4:
	mov	rdi, r12
	call	kfree@PLT
.L1:
	mov	eax, r13d
	pop	rbp
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	mov	edx, eax
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	magic_dual_mode, .-magic_dual_mode
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_berry_charge.c_magic_dual_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sending magic pearl command\012\000"
	.align	2
.LC1:
	.ascii	"Magic pearl command returned %d\012\000"
	.align	2
.LC2:
	.ascii	"Calling set_configuration\012\000"
	.align	2
.LC3:
	.ascii	"Set Configuration failed :%d.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	magic_dual_mode, %function
magic_dual_mode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	mov	r4, r0
	ldr	r1, [r3]
	mov	r0, #2
	sub	sp, sp, #24
	bl	kzalloc
	subs	r6, r0, #0
	beq	.L10
	ldr	r1, .L12+4
	mov	r0, r4
	bl	dbg
	mov	r1, #0
	mov	r0, r4
	bl	usb_rcvctrlpipe
	mov	r5, #1
	mov	r2, #100
	mov	r3, #2
	mov	r1, r0
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r2, #169
	mov	r3, #192
	str	r5, [sp, #4]
	str	r5, [sp]
	mov	r0, r4
	str	r6, [sp, #8]
	bl	usb_control_msg
	ldr	r1, .L12+8
	mov	r2, r0
	mov	r0, r4
	bl	dbg
	ldr	r1, .L12+12
	mov	r0, r4
	bl	dbg
	mov	r1, r5
	mov	r0, r4
	bl	usb_driver_set_configuration
	subs	r5, r0, #0
	bne	.L11
.L4:
	mov	r0, r6
	bl	kfree
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, r4
	mov	r2, r5
	ldr	r1, .L12+16
	bl	dev_err
	b	.L4
.L10:
	ldr	r3, .L12+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	GFP_KERNEL
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	ENOMEM
	.size	magic_dual_mode, .-magic_dual_mode
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
