	.file	"extr_if_mgb.c_mgb_isc_rxd_available.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mgb_isc_rxd_available, @function
mgb_isc_rxd_available:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	xor	edi, edi
	test	rsi, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	sete	dil
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	KASSERT@PLT
	mov	edi, DWORD PTR [r14]
	call	iflib_get_softc_ctx@PLT
	mov	rax, QWORD PTR 8[r14]
	cmp	rbp, QWORD PTR [rax]
	je	.L5
	cmp	r13, 1
	je	.L6
	mov	ebx, 2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, ebx
	lea	rax, 1[rbx]
	cmp	r13, rbx
	je	.L1
	mov	rbx, rax
.L3:
	mov	rdi, rbp
	lea	r12d, -1[rbx]
	call	MGB_NEXT_RING_IDX@PLT
	mov	rbp, rax
	mov	rax, QWORD PTR 8[r14]
	cmp	QWORD PTR [rax], rbp
	jne	.L4
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	xor	r12d, r12d
	jmp	.L1
.L6:
	mov	r12d, 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mgb_isc_rxd_available, .-mgb_isc_rxd_available
	.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_if_mgb.c_mgb_isc_rxd_available.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mgb_isc_rxd_available, %function
mgb_isc_rxd_available:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	clz	r0, r1
	mov	r4, r2
	lsr	r0, r0, #5
	mov	r7, r3
	bl	KASSERT
	ldr	r0, [r6]
	bl	iflib_get_softc_ctx
	ldr	r3, [r6, #4]
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L5
	cmp	r7, #1
	beq	.L6
	mov	r5, #1
	b	.L3
.L4:
	add	r5, r5, #1
	cmp	r5, r7
	beq	.L1
.L3:
	mov	r0, r4
	bl	MGB_NEXT_RING_IDX
	ldr	r2, [r6, #4]
	mov	r4, r0
	ldr	r2, [r2]
	cmp	r2, r0
	bne	.L4
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r5, #0
	b	.L1
.L6:
	mov	r5, r7
	b	.L1
	.size	mgb_isc_rxd_available, .-mgb_isc_rxd_available
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
