	.file	"extr_core.c_bpf_prog_array_copy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	bpf_prog_array_copy
	.type	bpf_prog_array_copy, @function
bpf_prog_array_copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L61
	mov	rsi, QWORD PTR [rdi]
	mov	r13, rdi
	xor	ecx, ecx
	xor	ebx, ebx
	lea	rdx, dummy_bpf_prog[rip]
	mov	rax, QWORD PTR [rsi]
	test	rax, rax
	jne	.L6
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L65:
	xor	edi, edi
	cmp	rax, rdx
	setne	dil
	add	ebx, edi
	cmp	r12, rax
	je	.L63
	mov	rax, QWORD PTR 8[rsi]
	add	rsi, 8
	test	rax, rax
	je	.L64
.L6:
	cmp	rbp, rax
	jne	.L65
	mov	rax, QWORD PTR 8[rsi]
	add	rsi, 8
	mov	ecx, 1
	test	rax, rax
	jne	.L6
	.p2align 4,,10
	.p2align 3
.L64:
	test	rbp, rbp
	je	.L10
	test	ecx, ecx
	jne	.L10
.L3:
	mov	eax, DWORD PTR ENOENT[rip]
	neg	eax
.L1:
	pop	rbx
	.cfi_remember_state
	.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
.L10:
	.cfi_restore_state
	test	r12, r12
	je	.L11
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 2[rbx]
	call	bpf_prog_array_alloc@PLT
	test	rax, rax
	je	.L12
	mov	r9, QWORD PTR [rax]
	test	ebx, ebx
	je	.L59
	mov	rsi, QWORD PTR 0[r13]
	mov	rdx, QWORD PTR [rsi]
	test	rdx, rdx
	je	.L59
.L20:
	xor	edi, edi
	lea	r10, dummy_bpf_prog[rip]
	.p2align 4,,10
	.p2align 3
.L18:
	movsx	rcx, edi
	sal	rcx, 3
	lea	r8, [r9+rcx]
	cmp	rdx, r10
	je	.L17
	cmp	rbp, rdx
	je	.L17
	mov	QWORD PTR [r8], rdx
	add	edi, 1
	lea	r8, 8[r9+rcx]
.L17:
	mov	rdx, QWORD PTR 8[rsi]
	add	rsi, 8
	test	rdx, rdx
	jne	.L18
	test	r12, r12
	je	.L19
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L61:
	test	rbp, rbp
	jne	.L3
	test	r12, r12
	je	.L5
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 2
	call	bpf_prog_array_alloc@PLT
	test	rax, rax
	je	.L12
	mov	r9, QWORD PTR [rax]
	mov	r8, r9
.L58:
	xor	edi, edi
.L22:
	add	edi, 1
	mov	QWORD PTR [r8], r12
	movsx	rdi, edi
	lea	r8, [r9+rdi*8]
.L19:
	mov	QWORD PTR [r8], 0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	QWORD PTR [r14], rax
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L11:
	.cfi_restore_state
	test	ebx, ebx
	jne	.L14
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	QWORD PTR [r14], 0
	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
.L63:
	.cfi_restore_state
	mov	eax, DWORD PTR EEXIST[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L12:
	.cfi_restore_state
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	jmp	.L1
.L59:
	mov	r8, r9
	jmp	.L58
.L14:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 1[rbx]
	call	bpf_prog_array_alloc@PLT
	test	rax, rax
	je	.L12
	mov	rsi, QWORD PTR 0[r13]
	mov	r8, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rsi]
	mov	r9, r8
	test	rdx, rdx
	jne	.L20
	jmp	.L19
	.cfi_endproc
.LFE0:
	.size	bpf_prog_array_copy, .-bpf_prog_array_copy
	.comm	dummy_bpf_prog,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EEXIST,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_core.c_bpf_prog_array_copy.c"
	.text
	.align	2
	.global	bpf_prog_array_copy
	.syntax unified
	.arm
	.fpu softvfp
	.type	bpf_prog_array_copy, %function
bpf_prog_array_copy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r8, r0, #0
	mov	r4, r1
	mov	r5, r2
	mov	r7, r3
	beq	.L50
	ldr	lr, [r8]
	ldr	ip, [lr]
	cmp	ip, #0
	beq	.L50
	mov	r3, #0
	ldr	r2, .L55
	mov	r6, r3
	b	.L6
.L54:
	cmp	ip, r2
	addne	r6, r6, #1
	cmp	r5, ip
	beq	.L52
	ldr	ip, [lr, #4]!
	cmp	ip, #0
	beq	.L53
.L6:
	cmp	r4, ip
	bne	.L54
	ldr	ip, [lr, #4]!
	mov	r3, #1
	cmp	ip, #0
	bne	.L6
.L53:
	cmp	r4, #0
	moveq	r3, #0
	eorne	r3, r3, #1
	cmp	r3, #0
	bne	.L3
	cmp	r5, #0
	beq	.L11
	ldr	r3, .L55+4
	add	r0, r6, #2
	ldr	r1, [r3]
	bl	bpf_prog_array_alloc
	subs	ip, r0, #0
	beq	.L12
	cmp	r6, #0
	ldr	r0, [ip]
	beq	.L48
	ldr	lr, [r8]
	ldr	r3, [lr]
	cmp	r3, #0
	moveq	r2, r3
	moveq	r1, r0
	beq	.L22
.L20:
	mov	r2, #0
	ldr	r8, .L55
.L18:
	cmp	r3, r8
	cmpne	r4, r3
	lsl	r6, r2, #2
	strne	r3, [r0, r6]
	ldr	r3, [lr, #4]!
	add	r1, r0, r2, lsl #2
	addne	r1, r6, #4
	addne	r2, r2, #1
	addne	r1, r0, r1
	cmp	r3, #0
	bne	.L18
	cmp	r5, #0
	beq	.L19
	b	.L22
.L50:
	cmp	r4, #0
	bne	.L3
	cmp	r5, #0
	beq	.L5
	ldr	r3, .L55+4
	mov	r0, #2
	ldr	r1, [r3]
	bl	bpf_prog_array_alloc
	subs	ip, r0, #0
	beq	.L12
	ldr	r0, [ip]
.L48:
	mov	r1, r0
	mov	r2, #0
.L22:
	add	r2, r2, #1
	str	r5, [r1]
	add	r1, r0, r2, lsl #2
.L19:
	mov	r0, #0
	str	r0, [r1]
	str	ip, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	cmp	r6, #0
	bne	.L14
.L5:
	mov	r0, #0
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L52:
	ldr	r3, .L55+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L55+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L55+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L55+4
	add	r0, r6, #1
	ldr	r1, [r3]
	bl	bpf_prog_array_alloc
	subs	ip, r0, #0
	beq	.L12
	ldr	lr, [r8]
	ldr	r1, [ip]
	ldr	r3, [lr]
	cmp	r3, #0
	movne	r0, r1
	bne	.L20
	b	.L19
.L56:
	.align	2
.L55:
	.word	dummy_bpf_prog
	.word	GFP_KERNEL
	.word	EEXIST
	.word	ENOENT
	.word	ENOMEM
	.size	bpf_prog_array_copy, .-bpf_prog_array_copy
	.comm	dummy_bpf_prog,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	ENOENT,4,4
	.comm	EEXIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
