	.file	"extr_radio-ma901.c_ma901radio_set_volume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ma901radio_set_volume, @function
ma901radio_set_volume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, QWORD PTR [rdi]
	mov	DWORD PTR [rbx], 10
	mov	eax, DWORD PTR MA901_RADIO_SET_VOLUME[rip]
	mov	DWORD PTR 8[rbx], 194
	mov	r14d, DWORD PTR USB_TIMEOUT[rip]
	mov	DWORD PTR 4[rbx], eax
	lea	eax, 32[rsi]
	xor	esi, esi
	mov	r13d, DWORD PTR BUFFER_LENGTH[rip]
	mov	DWORD PTR 12[rbx], eax
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	edi, DWORD PTR 12[rdi]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR 12[rbp]
	xor	r9d, r9d
	push	r14
	.cfi_def_cfa_offset 64
	mov	esi, eax
	mov	r8d, 768
	mov	ecx, 33
	push	r13
	.cfi_def_cfa_offset 72
	mov	edx, 9
	push	rbx
	.cfi_def_cfa_offset 80
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	test	eax, eax
	js	.L1
	mov	DWORD PTR 8[rbp], r12d
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ma901radio_set_volume, .-ma901radio_set_volume
	.comm	USB_TIMEOUT,4,4
	.comm	MA901_RADIO_SET_VOLUME,4,4
	.comm	BUFFER_LENGTH,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_radio-ma901.c_ma901radio_set_volume.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ma901radio_set_volume, %function
ma901radio_set_volume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	mov	r0, #10
	mov	r6, r1
	mov	r4, #0
	mov	r1, #194
	ldr	r3, [r5]
	ldr	r2, .L5
	str	r0, [r3]
	ldr	r0, [r2]
	add	r2, r6, #32
	stmib	r3, {r0, r1, r2, r4}
	str	r4, [r3, #20]
	str	r4, [r3, #24]
	str	r4, [r3, #28]
	ldr	r7, [r5, #8]
	sub	sp, sp, #28
	mov	r1, r4
	mov	r0, r7
	bl	usb_sndctrlpipe
	mov	r3, #768
	mov	r1, r0
	ldr	r2, .L5+4
	ldr	r0, .L5+8
	ldr	r2, [r2]
	ldr	ip, [r0]
	str	r4, [sp, #4]
	ldr	lr, [r5]
	mov	r0, r7
	str	r2, [sp, #12]
	str	r3, [sp]
	mov	r2, #9
	mov	r3, #33
	str	lr, [sp, #8]
	str	ip, [sp, #16]
	bl	usb_control_msg
	cmp	r0, #0
	strge	r6, [r5, #4]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	MA901_RADIO_SET_VOLUME
	.word	BUFFER_LENGTH
	.word	USB_TIMEOUT
	.size	ma901radio_set_volume, .-ma901radio_set_volume
	.comm	USB_TIMEOUT,4,4
	.comm	MA901_RADIO_SET_VOLUME,4,4
	.comm	BUFFER_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
