	.file	"extr_b44.c_b44_magic_pattern.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b44_magic_pattern, @function
b44_magic_pattern:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rax, ecx
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	rdi, [rsi+rax*4]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	mov	edx, 6
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rax
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, ebp
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	mov	esi, 255
	call	memset@PLT
	lea	eax, 6[rbp]
	mov	DWORD PTR 4[rsp], eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, ebx
	mov	rsi, r13
	add	ebx, 1
	call	set_bit@PLT
	cmp	ebx, DWORD PTR 4[rsp]
	jne	.L2
	mov	edx, DWORD PTR B44_MAX_PATTERNS[rip]
	lea	eax, 5[rbp]
	test	edx, edx
	jle	.L1
	mov	ebx, DWORD PTR B44_PATTERN_SIZE[rip]
	mov	ebp, DWORD PTR 4[rsp]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	sub	ebx, ebp
	cmp	ebx, edx
	cmovg	ebx, edx
	test	ebx, ebx
	jle	.L1
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r14d, r14d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR ETH_ALEN[rip]
.L6:
	imul	edx, r12d
	add	edx, DWORD PTR 4[rsp]
	mov	eax, DWORD PTR [r15+r14*4]
	lea	edi, 0[rbp+r14]
	mov	rsi, QWORD PTR 8[rsp]
	add	edx, r14d
	add	r14, 1
	movsx	rdx, edx
	mov	DWORD PTR [rsi+rdx*4], eax
	mov	rsi, r13
	call	set_bit@PLT
	cmp	ebx, r14d
	jg	.L11
	test	ebx, ebx
	mov	ecx, 0
	lea	eax, -1[rbx]
	cmovle	eax, ecx
	add	r12d, 1
	lea	ecx, 1[rbp+rax]
	add	eax, ebp
	cmp	DWORD PTR B44_MAX_PATTERNS[rip], r12d
	jle	.L1
	mov	ebx, DWORD PTR B44_PATTERN_SIZE[rip]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	sub	ebx, ecx
	cmp	ebx, edx
	cmovg	ebx, edx
	test	ebx, ebx
	jle	.L1
	mov	ebp, ecx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 24
	.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
	.cfi_endproc
.LFE0:
	.size	b44_magic_pattern, .-b44_magic_pattern
	.comm	ETH_ALEN,4,4
	.comm	B44_PATTERN_SIZE,4,4
	.comm	B44_MAX_PATTERNS,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_b44.c_b44_magic_pattern.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b44_magic_pattern, %function
b44_magic_pattern:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	mov	r3, #255
	mov	r8, r1
	mov	r6, r0
	mov	r5, r4
	mov	fp, r2
	add	r2, r1, r4, lsl #2
	strb	r3, [r1, r4, lsl #2]
	sub	sp, sp, #12
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	strb	r3, [r2, #3]
	strb	r3, [r2, #4]
	strb	r3, [r2, #5]
	add	r7, r4, #6
.L2:
	mov	r0, r5
	mov	r1, fp
	add	r5, r5, #1
	bl	set_bit
	cmp	r5, r7
	bne	.L2
	ldr	r3, .L13
	add	r0, r4, #5
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L1
	ldr	r3, .L13+4
	ldr	r4, [r3]
	ldr	r3, .L13+8
	sub	r4, r4, r7
	ldr	ip, [r3]
	cmp	r4, ip
	movge	r4, ip
	cmp	r4, #0
	ble	.L1
	sub	r3, r6, #4
	mov	r5, r7
	mov	r6, #0
	str	r3, [sp, #4]
.L4:
	mov	r9, #0
	ldr	r10, [sp, #4]
	b	.L6
.L12:
	ldr	r3, .L13+8
	ldr	ip, [r3]
.L6:
	add	r3, r9, r7
	mla	ip, r6, ip, r3
	ldr	r3, [r10, #4]!
	add	r0, r9, r5
	mov	r1, fp
	str	r3, [r8, ip, lsl #2]
	add	r9, r9, #1
	bl	set_bit
	cmp	r9, r4
	blt	.L12
	cmp	r4, #0
	subgt	r4, r4, #1
	movle	r4, #0
	ldr	r3, .L13
	add	r6, r6, #1
	ldr	r3, [r3]
	cmp	r3, r6
	add	r3, r5, #1
	add	r3, r4, r3
	add	r5, r5, r4
	ble	.L9
	ldr	r2, .L13+4
	ldr	r4, [r2]
	ldr	r2, .L13+8
	sub	r4, r4, r3
	ldr	ip, [r2]
	cmp	r4, ip
	movge	r4, ip
	cmp	r4, #0
	movgt	r5, r3
	bgt	.L4
.L9:
	mov	r0, r5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	.align	2
.L13:
	.word	B44_MAX_PATTERNS
	.word	B44_PATTERN_SIZE
	.word	ETH_ALEN
	.size	b44_magic_pattern, .-b44_magic_pattern
	.comm	ETH_ALEN,4,4
	.comm	B44_PATTERN_SIZE,4,4
	.comm	B44_MAX_PATTERNS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
