	.file	"extr_cbin.c_add_section.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fmap.%s"
.LC1:
	.string	"text"
	.text
	.p2align 4
	.type	add_section, @function
add_section:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	esi, ecx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR [rdi]
	call	r_io_desc_get@PLT
	test	eax, eax
	jne	.L25
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L25:
	.cfi_restore_state
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR [rbx]
	call	UT64_ADD_OVFCHK@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, QWORD PTR [rbx]
	mov	rsi, r13
	call	UT64_ADD_OVFCHK@PLT
	test	rax, rax
	jne	.L1
	mov	r14, QWORD PTR 16[rbx]
	test	r14, r14
	je	.L1
	mov	rdx, QWORD PTR [rbx]
	cmp	r14, rdx
	jle	.L5
	mov	edi, DWORD PTR 0[rbp]
	add	rdx, r13
	mov	rsi, rbx
	call	io_create_mem_map@PLT
	test	eax, eax
	je	.L1
	mov	r14, QWORD PTR [rbx]
.L5:
	mov	rsi, QWORD PTR 32[rbx]
	lea	rdi, .LC0[rip]
	call	r_str_newf@PLT
	mov	r15, rax
	test	rax, rax
	je	.L1
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, DWORD PTR 24[rbx]
	test	rdi, rdi
	jne	.L26
.L6:
	mov	rcx, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 0[rbp]
	mov	r9, r14
	mov	r8, r13
	mov	esi, r12d
	call	r_io_map_add_batch@PLT
	test	rax, rax
	je	.L27
	mov	QWORD PTR [rax], r15
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 12[rsp], edx
	call	strstr@PLT
	mov	edx, DWORD PTR 12[rsp]
	test	rax, rax
	je	.L6
	or	edx, DWORD PTR R_PERM_X[rip]
	jmp	.L6
.L27:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	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
	jmp	free@PLT
	.cfi_endproc
.LFE0:
	.size	add_section, .-add_section
	.comm	R_PERM_X,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_cbin.c_add_section.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fmap.%s\000"
	.align	2
.LC1:
	.ascii	"text\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	add_section, %function
add_section:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	mov	r4, r1
	ldr	r0, [r0]
	mov	r1, r3
	sub	sp, sp, #8
	mov	r7, r3
	mov	r5, r2
	bl	r_io_desc_get
	cmp	r0, #0
	bne	.L25
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L25:
	ldm	r4, {r0, r1}
	bl	UT64_ADD_OVFCHK
	cmp	r0, #0
	bne	.L1
	mov	r1, r5
	ldr	r0, [r4]
	bl	UT64_ADD_OVFCHK
	cmp	r0, #0
	bne	.L1
	ldr	r8, [r4, #8]
	cmp	r8, #0
	beq	.L1
	ldr	r2, [r4]
	cmp	r8, r2
	ble	.L5
	mov	r1, r4
	ldr	r0, [r6]
	add	r2, r2, r5
	bl	io_create_mem_map
	cmp	r0, #0
	beq	.L1
	ldr	r8, [r4]
.L5:
	ldr	r1, [r4, #16]
	ldr	r0, .L27
	bl	r_str_newf
	subs	r9, r0, #0
	beq	.L1
	ldr	r0, [r4, #16]
	ldr	r10, [r4, #12]
	cmp	r0, #0
	bne	.L26
.L6:
	stm	sp, {r5, r8}
	mov	r2, r10
	mov	r1, r7
	ldr	r3, [r4, #4]
	ldr	r0, [r6]
	bl	r_io_map_add_batch
	cmp	r0, #0
	strne	r9, [r0]
	bne	.L1
	mov	r0, r9
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	free
.L26:
	ldr	r1, .L27+4
	bl	strstr
	cmp	r0, #0
	ldrne	r3, .L27+8
	ldrne	r3, [r3]
	orrne	r10, r10, r3
	b	.L6
.L28:
	.align	2
.L27:
	.word	.LC0
	.word	.LC1
	.word	R_PERM_X
	.size	add_section, .-add_section
	.comm	R_PERM_X,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
