	.file	"extr_endpoint.c_snd_usb_endpoint_next_packet_size.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	snd_usb_endpoint_next_packet_size
	.type	snd_usb_endpoint_next_packet_size, @function
snd_usb_endpoint_next_packet_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR 24[rdi], 0
	je	.L2
	mov	r12d, DWORD PTR [rdi]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	lea	rbp, 16[rdi]
	xor	r13d, r13d
	mov	rsi, r13
	mov	rdi, rbp
	call	spin_lock_irqsave@PLT
	mov	ecx, DWORD PTR 12[rbx]
	mov	edi, DWORD PTR 8[rbx]
	movzx	eax, WORD PTR 4[rbx]
	mov	esi, DWORD PTR [rbx]
	sal	edi, cl
	add	edi, eax
	mov	DWORD PTR 4[rbx], edi
	sar	edi, 16
	call	min@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12d, eax
	call	spin_unlock_irqrestore@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	snd_usb_endpoint_next_packet_size, .-snd_usb_endpoint_next_packet_size
	.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_endpoint.c_snd_usb_endpoint_next_packet_size.c"
	.text
	.align	2
	.global	snd_usb_endpoint_next_packet_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_usb_endpoint_next_packet_size, %function
snd_usb_endpoint_next_packet_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #20]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	beq	.L2
	ldr	r4, [r0]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, #0
	add	r5, r0, #16
	mov	r1, r6
	mov	r0, r5
	bl	spin_lock_irqsave
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	ldrh	r0, [r4, #4]
	ldr	r1, [r4]
	add	r0, r0, r2, lsl r3
	str	r0, [r4, #4]
	asr	r0, r0, #16
	bl	min
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	bl	spin_unlock_irqrestore
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	snd_usb_endpoint_next_packet_size, .-snd_usb_endpoint_next_packet_size
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
