	.file	"extr_cmm.c_zfFindRlnkExtCap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfFindRlnkExtCap
	.type	zfFindRlnkExtCap, @function
zfFindRlnkExtCap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	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
	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
	call	zmw_rx_buf_readb@PLT
	mov	rdx, QWORD PTR zgElementOffsetTable[rip]
	sar	eax, 4
	cdqe
	mov	r14d, DWORD PTR [rdx+rax*4]
	cmp	r14d, 255
	je	.L20
.L2:
	mov	rsi, rbp
	mov	rdi, rbx
	lea	r12d, 24[r14]
	add	r14d, 26
	call	zfwBufGetSize@PLT
	mov	r13d, eax
	cmp	eax, r14d
	jg	.L3
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, r15d
	mov	rsi, rbp
	mov	rdi, rbx
	call	zmw_rx_buf_readb@PLT
	test	eax, eax
	je	.L6
	lea	r12d, 2[rax+r12]
	lea	r14d, 2[r12]
	cmp	r14d, r13d
	jge	.L6
.L3:
	mov	edx, r12d
	mov	rsi, rbp
	lea	r15d, 1[r12]
	mov	rdi, rbx
	call	zmw_rx_buf_readb@PLT
	cmp	eax, 127
	jne	.L8
	mov	edx, r15d
	mov	rsi, rbp
	mov	rdi, rbx
	call	zmw_rx_buf_readb@PLT
	mov	edx, r13d
	sub	edx, r12d
	cmp	edx, eax
	jl	.L6
	test	eax, eax
	je	.L6
	mov	edx, r14d
	mov	rsi, rbp
	mov	rdi, rbx
	call	zmw_rx_buf_readb@PLT
	cmp	eax, 1
	jne	.L8
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	r12d, 65535
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	xor	edi, edi
	call	zm_assert@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	zfFindRlnkExtCap, .-zfFindRlnkExtCap
	.comm	zgElementOffsetTable,8,8
	.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_cmm.c_zfFindRlnkExtCap.c"
	.text
	.align	2
	.global	zfFindRlnkExtCap
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfFindRlnkExtCap, %function
zfFindRlnkExtCap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r2, #0
	mov	r5, r0
	mov	r6, r1
	bl	zmw_rx_buf_readb
	ldr	r3, .L21
	asr	r0, r0, #4
	ldr	r3, [r3]
	ldr	r4, [r3, r0, lsl #2]
	cmp	r4, #255
	beq	.L20
.L2:
	mov	r1, r6
	mov	r0, r5
	bl	zfwBufGetSize
	add	r7, r4, #26
	cmp	r0, r7
	mov	r8, r0
	add	r4, r4, #24
	bgt	.L3
	b	.L6
.L8:
	mov	r2, r9
	mov	r1, r6
	mov	r0, r5
	bl	zmw_rx_buf_readb
	cmp	r0, #0
	add	r0, r0, #2
	add	r4, r4, r0
	add	r7, r4, #2
	beq	.L6
	cmp	r7, r8
	bge	.L6
.L3:
	mov	r2, r4
	mov	r1, r6
	mov	r0, r5
	bl	zmw_rx_buf_readb
	cmp	r0, #127
	add	r9, r4, #1
	bne	.L8
	mov	r2, r9
	mov	r1, r6
	mov	r0, r5
	bl	zmw_rx_buf_readb
	clz	r3, r0
	sub	r2, r8, r4
	lsr	r3, r3, #5
	cmp	r2, r0
	orrlt	r3, r3, #1
	cmp	r3, #0
	bne	.L6
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	zmw_rx_buf_readb
	cmp	r0, #1
	bne	.L8
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	ldr	r4, .L21+4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	mov	r0, #0
	bl	zm_assert
	b	.L2
.L22:
	.align	2
.L21:
	.word	zgElementOffsetTable
	.word	65535
	.size	zfFindRlnkExtCap, .-zfFindRlnkExtCap
	.comm	zgElementOffsetTable,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
