	.file	"extr_libusb20_ugen20.c_ugen20_get_power_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ugen20_get_power_mode, @function
ugen20_get_power_mode:
.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, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR USB_GET_POWER_MODE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	IOUSB@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rdx, 4[rsp]
	mov	esi, eax
	call	ioctl@PLT
	test	rax, rax
	jne	.L14
	mov	eax, DWORD PTR 4[rsp]
	cmp	eax, 130
	je	.L4
	jg	.L5
	mov	edx, DWORD PTR LIBUSB20_POWER_SUSPEND[rip]
	cmp	eax, 128
	je	.L9
	cmp	eax, 129
	jne	.L8
	mov	edx, DWORD PTR LIBUSB20_POWER_SAVE[rip]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR 0[rbp], edx
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 24
	.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
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR LIBUSB20_POWER_OFF[rip]
	cmp	eax, 132
	je	.L9
.L8:
	mov	edx, DWORD PTR LIBUSB20_POWER_ON[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR LIBUSB20_ERROR_OTHER[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR LIBUSB20_POWER_RESUME[rip]
	jmp	.L9
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ugen20_get_power_mode, .-ugen20_get_power_mode
	.comm	USB_GET_POWER_MODE,4,4
	.comm	LIBUSB20_POWER_SUSPEND,4,4
	.comm	LIBUSB20_POWER_SAVE,4,4
	.comm	LIBUSB20_POWER_RESUME,4,4
	.comm	LIBUSB20_POWER_ON,4,4
	.comm	LIBUSB20_POWER_OFF,4,4
	.comm	LIBUSB20_ERROR_OTHER,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_libusb20_ugen20.c_ugen20_get_power_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ugen20_get_power_mode, %function
ugen20_get_power_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L16
	ldr	r4, [r0]
	ldr	r0, [r3]
	ldr	r3, .L16+4
	sub	sp, sp, #12
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	IOUSB
	mov	r2, sp
	mov	r1, r0
	mov	r0, r4
	bl	ioctl
	cmp	r0, #0
	bne	.L14
	ldr	r3, [sp]
	sub	r3, r3, #128
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L4
	.word	.L5
.L4:
	ldr	r3, .L16+8
	ldr	r3, [r3]
.L10:
	str	r3, [r5]
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L14:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	b	.L1
.L5:
	ldr	r3, .L16+16
	ldr	r3, [r3]
	b	.L10
.L9:
	ldr	r3, .L16+20
	ldr	r3, [r3]
	b	.L10
.L8:
	ldr	r3, .L16+24
	ldr	r3, [r3]
	b	.L10
.L7:
	ldr	r3, .L16+28
	ldr	r3, [r3]
	b	.L10
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	USB_GET_POWER_MODE
	.word	.LC0
	.word	LIBUSB20_POWER_ON
	.word	LIBUSB20_ERROR_OTHER
	.word	LIBUSB20_POWER_OFF
	.word	LIBUSB20_POWER_SUSPEND
	.word	LIBUSB20_POWER_SAVE
	.word	LIBUSB20_POWER_RESUME
	.size	ugen20_get_power_mode, .-ugen20_get_power_mode
	.comm	USB_GET_POWER_MODE,4,4
	.comm	LIBUSB20_POWER_SUSPEND,4,4
	.comm	LIBUSB20_POWER_SAVE,4,4
	.comm	LIBUSB20_POWER_RESUME,4,4
	.comm	LIBUSB20_POWER_ON,4,4
	.comm	LIBUSB20_POWER_OFF,4,4
	.comm	LIBUSB20_ERROR_OTHER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
