	.file	"extr_libbpf.c_libbpf_prog_type_by_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to guess program type based on ELF section name '%s'\n"
	.align 8
.LC1:
	.string	"supported section(type) names are:%s\n"
	.text
	.p2align 4
	.globl	libbpf_prog_type_by_name
	.type	libbpf_prog_type_by_name, @function
libbpf_prog_type_by_name:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L17
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
.L2:
	mov	rdi, QWORD PTR section_names[rip]
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jle	.L18
	mov	rax, QWORD PTR section_names[rip]
	mov	rbp, rbx
	mov	rdi, r12
	add	rbx, 1
	sal	rbp, 4
	add	rax, rbp
	mov	edx, DWORD PTR 8[rax]
	mov	esi, DWORD PTR 12[rax]
	call	strncmp@PLT
	test	rax, rax
	jne	.L2
	add	rbp, QWORD PTR section_names[rip]
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR [r14], eax
	mov	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 0[r13], eax
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.cfi_offset 6, -40
	.cfi_offset 12, -32
	.cfi_offset 13, -24
	.cfi_offset 14, -16
	mov	rsi, r12
	lea	rdi, .LC0[rip]
	call	pr_warning@PLT
	xor	edi, edi
	call	libbpf_get_type_names@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L5
	lea	rdi, .LC1[rip]
	mov	rsi, rax
	call	pr_info@PLT
	mov	rdi, rbp
	call	free@PLT
.L5:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	libbpf_prog_type_by_name, .-libbpf_prog_type_by_name
	.comm	section_names,8,8
	.comm	EINVAL,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_libbpf.c_libbpf_prog_type_by_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to guess program type based on ELF section n"
	.ascii	"ame '%s'\012\000"
	.align	2
.LC1:
	.ascii	"supported section(type) names are:%s\012\000"
	.text
	.align	2
	.global	libbpf_prog_type_by_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	libbpf_prog_type_by_name, %function
libbpf_prog_type_by_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	beq	.L6
	mov	r6, r1
	mov	r7, r2
	mov	r5, #0
	ldr	r8, .L15
.L2:
	ldr	r0, [r8]
	bl	ARRAY_SIZE
	cmp	r0, r5
	ble	.L13
	ldr	r3, [r8]
	mov	r0, r4
	add	r3, r3, r5, lsl #4
	ldr	r2, [r3, #8]
	ldr	r1, [r3, #12]
	bl	strncmp
	cmp	r0, #0
	lsl	r2, r5, #4
	bne	.L14
	ldr	r3, [r8]
	ldr	r1, [r3, r2]
	add	r3, r3, r2
	str	r1, [r6]
	ldr	r3, [r3, #4]
	str	r3, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	add	r5, r5, #1
	b	.L2
.L13:
	mov	r1, r4
	ldr	r0, .L15+4
	bl	pr_warning
	mov	r0, #0
	bl	libbpf_get_type_names
	subs	r4, r0, #0
	beq	.L6
	mov	r1, r4
	ldr	r0, .L15+8
	bl	pr_info
	mov	r0, r4
	bl	free
.L6:
	ldr	r3, .L15+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	section_names
	.word	.LC0
	.word	.LC1
	.word	EINVAL
	.size	libbpf_prog_type_by_name, .-libbpf_prog_type_by_name
	.comm	section_names,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
