	.file	"extr_main.c_rbcfg_find_tag.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no tag found with id=%u\n"
	.text
	.p2align 4
	.type	rbcfg_find_tag, @function
rbcfg_find_tag:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ebx, DWORD PTR 8[rdi]
	mov	rbp, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rcx
	mov	r13d, DWORD PTR RB_ERR_NOTFOUND[rip]
	sub	ebx, 8
	add	rbp, 8
	cmp	ebx, 2
	jbe	.L2
	mov	r15, rdx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	call	get_u16@PLT
	add	rbp, 4
	sub	ebx, 4
	cmp	QWORD PTR RB_ID_TERMINATOR[rip], rax
	je	.L14
	mov	ecx, ebx
	cmp	rcx, r14
	jl	.L3
	cmp	rax, r12
	je	.L15
	sub	ebx, r14d
	add	rbp, r14
	cmp	ebx, 2
	jbe	.L3
.L6:
	mov	rdi, rbp
	call	get_u16@PLT
	lea	rdi, 2[rbp]
	mov	r14, rax
	cmp	ebx, 3
	jne	.L16
.L3:
	cmp	DWORD PTR RB_ERR_NOTFOUND[rip], r13d
	je	.L2
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13d, DWORD PTR RB_ERR_NOTWANTED[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR [r15], r14
	xor	r13d, r13d
	mov	QWORD PTR [rax], rbp
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	rbcfg_find_tag, .-rbcfg_find_tag
	.comm	stderr,4,4
	.comm	RB_ID_TERMINATOR,8,8
	.comm	RB_ERR_NOTWANTED,4,4
	.comm	RB_ERR_NOTFOUND,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_main.c_rbcfg_find_tag.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no tag found with id=%u\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rbcfg_find_tag, %function
rbcfg_find_tag:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	ldr	r3, [r0, #4]
	ldr	r10, .L17
	sub	r9, r3, #8
	sub	sp, sp, #12
	cmp	r9, #2
	mov	r5, r1
	ldr	r4, [r0]
	ldr	r7, [r10]
	str	r2, [sp, #4]
	bls	.L2
	ldr	r6, .L17+4
	add	r4, r4, #8
	b	.L6
.L16:
	bl	get_u16
	ldr	r2, [r6]
	add	r4, r4, #4
	cmp	r2, r0
	sub	r2, r9, #4
	sub	r9, r2, fp
	beq	.L14
	cmp	fp, r2
	bhi	.L3
	cmp	r0, r5
	beq	.L15
	cmp	r9, #2
	add	r4, r4, fp
	bls	.L3
.L6:
	mov	r0, r4
	bl	get_u16
	cmp	r9, #3
	mov	fp, r0
	add	r0, r4, #2
	bne	.L16
.L3:
	ldr	r3, [r10]
	cmp	r3, r7
	beq	.L2
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L17+8
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L17+12
	bl	fprintf
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L17+16
	ldr	r7, [r3]
	b	.L3
.L15:
	ldr	r3, [sp, #4]
	mov	r7, #0
	str	fp, [r3]
	str	r4, [r8]
	b	.L3
.L18:
	.align	2
.L17:
	.word	RB_ERR_NOTFOUND
	.word	RB_ID_TERMINATOR
	.word	stderr
	.word	.LC0
	.word	RB_ERR_NOTWANTED
	.size	rbcfg_find_tag, .-rbcfg_find_tag
	.comm	stderr,4,4
	.comm	RB_ID_TERMINATOR,4,4
	.comm	RB_ERR_NOTWANTED,4,4
	.comm	RB_ERR_NOTFOUND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
