	.file	"extr_libusb20_ugen20.c_ugen20_set_power_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ugen20_set_power_mode, @function
ugen20_set_power_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	add	esi, -128
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	esi, 4
	ja	.L2
	lea	rdx, .L4[rip]
	mov	rbx, rdi
	movsx	rax, DWORD PTR [rdx+rsi*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR USB_POWER_MODE_ON[rip]
	mov	DWORD PTR 4[rsp], eax
.L9:
	mov	edi, DWORD PTR USB_SET_POWER_MODE[rip]
	call	IOUSB@PLT
	mov	edi, DWORD PTR [rbx]
	lea	rdx, 4[rsp]
	mov	esi, eax
	call	ioctl@PLT
	test	rax, rax
	mov	eax, 0
	cmovne	eax, DWORD PTR LIBUSB20_ERROR_OTHER[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	eax, DWORD PTR USB_POWER_MODE_OFF[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR USB_POWER_MODE_SUSPEND[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR USB_POWER_MODE_SAVE[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR USB_POWER_MODE_RESUME[rip]
	mov	DWORD PTR 4[rsp], eax
	jmp	.L9
.L2:
	mov	eax, DWORD PTR LIBUSB20_ERROR_INVALID_PARAM[rip]
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ugen20_set_power_mode, .-ugen20_set_power_mode
	.comm	USB_SET_POWER_MODE,4,4
	.comm	USB_POWER_MODE_SUSPEND,4,4
	.comm	USB_POWER_MODE_SAVE,4,4
	.comm	USB_POWER_MODE_RESUME,4,4
	.comm	USB_POWER_MODE_ON,4,4
	.comm	USB_POWER_MODE_OFF,4,4
	.comm	LIBUSB20_ERROR_OTHER,4,4
	.comm	LIBUSB20_ERROR_INVALID_PARAM,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_set_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_set_power_mode, %function
ugen20_set_power_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L18
	sub	sp, sp, #8
	sub	r1, r1, #128
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	cmp	r1, #4
	ldrls	pc, [pc, r1, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r3, .L18+4
	ldr	r3, [r3]
	str	r3, [sp]
.L9:
	ldr	r3, .L18+8
	ldr	r4, [r0]
	ldr	r0, [r3]
	bl	IOUSB
	mov	r2, sp
	mov	r1, r0
	mov	r0, r4
	bl	ioctl
	cmp	r0, #0
	ldrne	r3, .L18+12
	ldrne	r0, [r3]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L8:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	str	r3, [sp]
	b	.L9
.L7:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	str	r3, [sp]
	b	.L9
.L6:
	ldr	r3, .L18+24
	ldr	r3, [r3]
	str	r3, [sp]
	b	.L9
.L5:
	ldr	r3, .L18+28
	ldr	r3, [r3]
	str	r3, [sp]
	b	.L9
.L17:
	bl	__stack_chk_fail
.L2:
	ldr	r3, .L18+32
	ldr	r0, [r3]
	b	.L1
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	USB_POWER_MODE_OFF
	.word	USB_SET_POWER_MODE
	.word	LIBUSB20_ERROR_OTHER
	.word	USB_POWER_MODE_SUSPEND
	.word	USB_POWER_MODE_SAVE
	.word	USB_POWER_MODE_RESUME
	.word	USB_POWER_MODE_ON
	.word	LIBUSB20_ERROR_INVALID_PARAM
	.size	ugen20_set_power_mode, .-ugen20_set_power_mode
	.comm	USB_SET_POWER_MODE,4,4
	.comm	USB_POWER_MODE_SUSPEND,4,4
	.comm	USB_POWER_MODE_SAVE,4,4
	.comm	USB_POWER_MODE_RESUME,4,4
	.comm	USB_POWER_MODE_ON,4,4
	.comm	USB_POWER_MODE_OFF,4,4
	.comm	LIBUSB20_ERROR_OTHER,4,4
	.comm	LIBUSB20_ERROR_INVALID_PARAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
