	.file	"extr_ar8327.c_ar8327_get_port_igmp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8327_get_port_igmp, @function
ar8327_get_port_igmp:
.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, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	BIT@PLT
	mov	ecx, DWORD PTR AR8327_FWD_CTRL1_IGMP_S[rip]
	mov	edi, ebp
	mov	r13d, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_MLD[rip]
	mov	r15d, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_JOIN[rip]
	mov	r14d, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_LEAVE[rip]
	sal	eax, cl
	mov	ebx, eax
	call	AR8327_FRAME_ACK_CTRL_S@PLT
	mov	esi, DWORD PTR AR8327_REG_FWD_CTRL1[rip]
	mov	rdi, r12
	mov	DWORD PTR 12[rsp], eax
	call	ar8xxx_read@PLT
	xor	r8d, r8d
	and	eax, ebx
	cmp	eax, ebx
	je	.L7
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L7:
	.cfi_restore_state
	movzx	ecx, BYTE PTR 12[rsp]
	or	r13d, r15d
	mov	edi, ebp
	or	r14d, r13d
	sal	r14d, cl
	call	AR8327_REG_FRAME_ACK_CTRL@PLT
	mov	rdi, r12
	mov	esi, eax
	call	ar8xxx_read@PLT
	xor	r8d, r8d
	and	eax, r14d
	cmp	eax, r14d
	sete	r8b
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ar8327_get_port_igmp, .-ar8327_get_port_igmp
	.comm	AR8327_REG_FWD_CTRL1,4,4
	.comm	AR8327_FWD_CTRL1_IGMP_S,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_MLD,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_LEAVE,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_JOIN,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_ar8327.c_ar8327_get_port_igmp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8327_get_port_igmp, %function
ar8327_get_port_igmp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r0
	mov	r0, r1
	mov	r4, r1
	bl	BIT
	mov	r6, r0
	ldr	r3, .L7
	ldr	r1, .L7+4
	ldr	ip, [r3]
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	mov	r0, r4
	lsl	r6, r6, ip
	ldr	r8, [r1]
	ldr	r10, [r2]
	ldr	r9, [r3]
	bl	AR8327_FRAME_ACK_CTRL_S
	ldr	r3, .L7+16
	mov	r7, r0
	ldr	r1, [r3]
	mov	r0, r5
	bl	ar8xxx_read
	bics	r3, r6, r0
	beq	.L6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r0, r4
	bl	AR8327_REG_FRAME_ACK_CTRL
	mov	r1, r0
	mov	r0, r5
	bl	ar8xxx_read
	orr	r8, r8, r10
	orr	r8, r8, r9
	lsl	r7, r8, r7
	bics	r3, r7, r0
	moveq	r0, #1
	movne	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	.align	2
.L7:
	.word	AR8327_FWD_CTRL1_IGMP_S
	.word	AR8327_FRAME_ACK_CTRL_IGMP_MLD
	.word	AR8327_FRAME_ACK_CTRL_IGMP_JOIN
	.word	AR8327_FRAME_ACK_CTRL_IGMP_LEAVE
	.word	AR8327_REG_FWD_CTRL1
	.size	ar8327_get_port_igmp, .-ar8327_get_port_igmp
	.comm	AR8327_REG_FWD_CTRL1,4,4
	.comm	AR8327_FWD_CTRL1_IGMP_S,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_MLD,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_LEAVE,4,4
	.comm	AR8327_FRAME_ACK_CTRL_IGMP_JOIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
