	.file	"extr_ipmi_msghandler.c_intf_next_seq.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intf_next_seq, @function
intf_next_seq:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r11, rdx
	mov	r15, r9
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r10d, DWORD PTR [rdi]
	test	rdx, rdx
	mov	edi, DWORD PTR IPMI_IPMB_NUM_SEQ[rip]
	cmove	r11, QWORD PTR default_retry_ms[rip]
	mov	r9, QWORD PTR 8[r14]
	test	ecx, ecx
	mov	edx, r10d
	cmovs	ecx, DWORD PTR default_max_retries[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	test	eax, eax
	je	.L5
.L4:
	lea	ebp, 1[rdx]
	mov	r13d, edx
	xor	edx, edx
	mov	eax, ebp
	div	edi
	mov	eax, r13d
	lea	rbx, [rax+rax*2]
	sal	rbx, 4
	lea	r12, [r9+rbx]
	mov	eax, DWORD PTR [r12]
	cmp	edx, r10d
	jne	.L6
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR EAGAIN[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR MAX_MSG_TIMEOUT[rip]
	mov	QWORD PTR 8[r12], r11
	mov	DWORD PTR 16[r12], ecx
	mov	rdi, QWORD PTR 24[r12]
	mov	DWORD PTR 20[r12], r8d
	mov	QWORD PTR 40[r12], rsi
	mov	DWORD PTR 32[r12], eax
	mov	DWORD PTR [r12], 1
	call	NEXT_SEQID@PLT
	mov	rdi, r14
	mov	QWORD PTR 24[r12], rax
	mov	BYTE PTR [r15], r13b
	mov	rax, QWORD PTR 8[r14]
	mov	esi, DWORD PTR IPMI_WATCH_MASK_CHECK_MESSAGES[rip]
	mov	rdx, QWORD PTR 24[rax+rbx]
	mov	rax, QWORD PTR 64[rsp]
	mov	QWORD PTR [rax], rdx
	mov	eax, ebp
	xor	edx, edx
	div	DWORD PTR IPMI_IPMB_NUM_SEQ[rip]
	mov	DWORD PTR [r14], edx
	call	smi_add_watch@PLT
	mov	rdi, r14
	call	need_waiter@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	intf_next_seq, .-intf_next_seq
	.comm	default_retry_ms,8,8
	.comm	default_max_retries,4,4
	.comm	MAX_MSG_TIMEOUT,4,4
	.comm	IPMI_WATCH_MASK_CHECK_MESSAGES,4,4
	.comm	IPMI_IPMB_NUM_SEQ,4,4
	.comm	EAGAIN,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_ipmi_msghandler.c_intf_next_seq.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intf_next_seq, %function
intf_next_seq:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r10, r3
	cmp	r2, #0
	ldreq	r3, .L14
	sub	sp, sp, #20
	ldreq	r3, [r3]
	str	r2, [sp, #4]
	streq	r3, [sp, #4]
	cmp	r10, #0
	ldrlt	r3, .L14+4
	ldr	r6, [r0]
	ldr	fp, .L14+8
	mov	r8, r0
	mov	ip, r6
	ldrlt	r10, [r3]
	ldr	r7, [fp]
	ldr	r5, [r0, #4]
	str	r1, [sp, #8]
	b	.L4
.L6:
	cmp	r0, #0
	beq	.L5
.L4:
	add	r9, ip, #1
	mov	r0, r9
	mov	r1, r7
	mov	r4, ip
	bl	__aeabi_uidivmod
	rsb	r0, r4, r4, lsl #3
	cmp	r1, r6
	mov	ip, r1
	lsl	r2, r0, #2
	add	r1, r5, r0, lsl #2
	ldr	r0, [r5, r0, lsl #2]
	bne	.L6
	cmp	r0, #0
	beq	.L5
	ldr	r3, .L14+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r0, #1
	ldr	r3, [sp, #8]
	ldr	ip, .L14+16
	str	r3, [r1, #24]
	ldr	r3, [sp, #4]
	ldr	ip, [ip]
	stmib	r1, {r3, r10}
	ldr	r3, [sp, #56]
	str	ip, [r1, #20]
	str	r3, [r1, #12]
	str	r0, [r1]
	ldr	r0, [r1, #16]
	str	r2, [sp, #12]
	str	r1, [sp, #4]
	bl	NEXT_SEQID
	ldr	r1, [sp, #4]
	ldr	r3, [sp, #60]
	str	r0, [r1, #16]
	strb	r4, [r3]
	ldr	r0, [r8, #4]
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #64]
	add	r2, r0, r2
	ldr	r2, [r2, #16]
	ldr	r1, [fp]
	mov	r0, r9
	str	r2, [r3]
	bl	__aeabi_uidivmod
	ldr	r3, .L14+20
	str	r1, [r8]
	mov	r0, r8
	ldr	r1, [r3]
	bl	smi_add_watch
	mov	r0, r8
	bl	need_waiter
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	default_retry_ms
	.word	default_max_retries
	.word	IPMI_IPMB_NUM_SEQ
	.word	EAGAIN
	.word	MAX_MSG_TIMEOUT
	.word	IPMI_WATCH_MASK_CHECK_MESSAGES
	.size	intf_next_seq, .-intf_next_seq
	.comm	default_retry_ms,4,4
	.comm	default_max_retries,4,4
	.comm	MAX_MSG_TIMEOUT,4,4
	.comm	IPMI_WATCH_MASK_CHECK_MESSAGES,4,4
	.comm	IPMI_IPMB_NUM_SEQ,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
