	.file	"extr_vub300.c___set_clock_speed.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SET_CLOCK_SPEED %dkHz failed with retval=%d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"SET_CLOCK_SPEED %dkHz\n"
	.text
	.p2align 4
	.type	__set_clock_speed, @function
__set_clock_speed:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, 48000
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR [rdx]
	cmp	eax, 47999999
	jg	.L2
	mov	r13d, 24000
	cmp	eax, 23999999
	jle	.L13
.L2:
	mov	rax, rbp
	lea	rcx, 32[rbp]
	mov	edx, r13d
	.p2align 4,,10
	.p2align 3
.L3:
	mov	DWORD PTR [rax], edx
	add	rax, 4
	sar	edx, 8
	cmp	rcx, rax
	jne	.L3
	mov	rdi, QWORD PTR [rbx]
	mov	r15d, DWORD PTR HZ[rip]
	xor	esi, esi
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	mov	r14d, DWORD PTR SET_CLOCK_SPEED[rip]
	or	r12d, DWORD PTR USB_TYPE_VENDOR[rip]
	or	r12d, DWORD PTR USB_RECIP_DEVICE[rip]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	rdi, QWORD PTR [rbx]
	mov	ecx, r12d
	push	r15
	.cfi_def_cfa_offset 80
	mov	edx, r14d
	mov	esi, eax
	xor	r9d, r9d
	push	8
	.cfi_def_cfa_offset 88
	xor	r8d, r8d
	push	rbp
	.cfi_def_cfa_offset 96
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edx, r13d
	mov	ecx, eax
	cmp	eax, 8
	je	.L4
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dev_err@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r13d, 20000
	cmp	eax, 19999999
	jg	.L2
	mov	r13d, 15000
	cmp	eax, 14999999
	jg	.L2
	cmp	eax, 199999
	mov	r13d, 200
	mov	eax, 0
	cmovle	r13d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dev_dbg@PLT
	.cfi_endproc
.LFE0:
	.size	__set_clock_speed, .-__set_clock_speed
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	SET_CLOCK_SPEED,4,4
	.comm	HZ,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_vub300.c___set_clock_speed.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SET_CLOCK_SPEED %dkHz failed with retval=%d\012\000"
	.align	2
.LC1:
	.ascii	"SET_CLOCK_SPEED %dkHz\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__set_clock_speed, %function
__set_clock_speed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L14
	ldr	r5, [r2]
	mov	r6, r0
	cmp	r5, r3
	mov	r4, r1
	ldrge	r5, .L14+4
	sub	sp, sp, #28
	bge	.L2
	ldr	r3, .L14+8
	cmp	r5, r3
	ldrgt	r5, .L14+12
	ble	.L13
.L2:
	mov	r2, r5
	sub	r3, r4, #4
	add	ip, r4, #28
.L3:
	str	r2, [r3, #4]!
	cmp	ip, r3
	asr	r2, r2, #8
	bne	.L3
	ldr	r7, [r6]
	mov	r1, #0
	mov	r0, r7
	bl	usb_sndctrlpipe
	mov	r2, #0
	mov	lr, #8
	mov	r1, r0
	ldr	r3, .L14+16
	ldr	r0, .L14+20
	ldr	r3, [r3]
	ldr	ip, [r0]
	mov	r0, r7
	orr	r3, r3, ip
	ldr	ip, .L14+24
	ldr	r7, [ip]
	ldr	ip, .L14+28
	str	r4, [sp, #8]
	ldr	ip, [ip]
	str	lr, [sp, #12]
	str	ip, [sp, #16]
	ldr	ip, .L14+32
	str	r2, [sp, #4]
	str	r2, [sp]
	ldr	r2, [ip]
	orr	r3, r3, r7
	bl	usb_control_msg
	mov	r3, r0
	cmp	r3, #8
	mov	r2, r5
	ldr	r0, [r6]
	beq	.L4
	ldr	r1, .L14+36
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	dev_err
.L13:
	sub	r3, r3, #3997696
	sub	r3, r3, #2304
	cmp	r5, r3
	ldrgt	r5, .L14+40
	bgt	.L2
	ldr	r3, .L14+44
	cmp	r5, r3
	ldrge	r5, .L14+48
	bge	.L2
	ldr	r3, .L14+52
	cmp	r5, r3
	movge	r5, #200
	movlt	r5, #0
	b	.L2
.L4:
	ldr	r1, .L14+56
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	dev_dbg
.L15:
	.align	2
.L14:
	.word	48000000
	.word	48000
	.word	23999999
	.word	24000
	.word	USB_DIR_OUT
	.word	USB_TYPE_VENDOR
	.word	USB_RECIP_DEVICE
	.word	HZ
	.word	SET_CLOCK_SPEED
	.word	.LC0
	.word	20000
	.word	15000000
	.word	15000
	.word	200000
	.word	.LC1
	.size	__set_clock_speed, .-__set_clock_speed
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_DEVICE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	SET_CLOCK_SPEED,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
