	.file	"extr_ar8327.c_ar8327_set_port_igmp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ar8327_set_port_igmp, @function
ar8327_set_port_igmp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	mov	edi, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	AR8327_REG_FRAME_ACK_CTRL@PLT
	mov	edi, ebp
	mov	ebx, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_MLD[rip]
	or	ebx, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_JOIN[rip]
	mov	r13d, eax
	or	ebx, DWORD PTR AR8327_FRAME_ACK_CTRL_IGMP_LEAVE[rip]
	call	AR8327_FRAME_ACK_CTRL_S@PLT
	mov	edi, ebp
	mov	ecx, eax
	sal	ebx, cl
	test	r14d, r14d
	je	.L2
	call	BIT@PLT
	mov	ecx, DWORD PTR AR8327_FWD_CTRL1_IGMP_S[rip]
	mov	edi, ebp
	sal	eax, cl
	mov	r14d, eax
	call	BIT@PLT
	mov	ecx, DWORD PTR AR8327_FWD_CTRL1_MC_FLOOD_S[rip]
	mov	esi, DWORD PTR AR8327_REG_FWD_CTRL1[rip]
	mov	rdi, r12
	sal	eax, cl
	mov	ecx, r14d
	mov	edx, eax
	call	ar8xxx_rmw@PLT
	mov	edx, ebx
	mov	esi, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	ar8xxx_reg_set@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	BIT@PLT
	mov	ecx, DWORD PTR AR8327_FWD_CTRL1_MC_FLOOD_S[rip]
	mov	edi, ebp
	sal	eax, cl
	mov	r14d, eax
	call	BIT@PLT
	mov	ecx, DWORD PTR AR8327_FWD_CTRL1_IGMP_S[rip]
	mov	esi, DWORD PTR AR8327_REG_FWD_CTRL1[rip]
	mov	rdi, r12
	sal	eax, cl
	mov	ecx, r14d
	mov	edx, eax
	call	ar8xxx_rmw@PLT
	mov	edx, ebx
	mov	esi, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rdi, r12
	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
	jmp	ar8xxx_reg_clear@PLT
	.cfi_endproc
.LFE0:
	.size	ar8327_set_port_igmp, .-ar8327_set_port_igmp
	.comm	AR8327_REG_FWD_CTRL1,4,4
	.comm	AR8327_FWD_CTRL1_MC_FLOOD_S,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_set_port_igmp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ar8327_set_port_igmp, %function
ar8327_set_port_igmp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	mov	r8, r2
	bl	AR8327_REG_FRAME_ACK_CTRL
	ldr	r1, .L5
	ldr	r2, .L5+4
	ldr	r3, .L5+8
	ldr	r4, [r1]
	mov	r7, r0
	ldr	r0, [r2]
	ldr	r3, [r3]
	orr	r4, r4, r0
	mov	r0, r5
	orr	r4, r4, r3
	bl	AR8327_FRAME_ACK_CTRL_S
	ldr	r3, .L5+12
	cmp	r8, #0
	lsl	r4, r4, r0
	ldr	r8, [r3]
	mov	r0, r5
	beq	.L2
	bl	BIT
	mov	r2, r0
	ldr	r3, .L5+16
	mov	r0, r5
	ldr	r5, [r3]
	lsl	r5, r2, r5
	bl	BIT
	ldr	r3, .L5+20
	mov	r2, r5
	ldr	r3, [r3]
	mov	r1, r8
	lsl	r3, r0, r3
	mov	r0, r6
	bl	ar8xxx_rmw
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	ar8xxx_reg_set
.L2:
	bl	BIT
	mov	r2, r0
	ldr	r3, .L5+20
	mov	r0, r5
	ldr	r5, [r3]
	lsl	r5, r2, r5
	bl	BIT
	ldr	r3, .L5+16
	mov	r2, r5
	ldr	r3, [r3]
	mov	r1, r8
	lsl	r3, r0, r3
	mov	r0, r6
	bl	ar8xxx_rmw
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	ar8xxx_reg_clear
.L6:
	.align	2
.L5:
	.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
	.word	AR8327_FWD_CTRL1_MC_FLOOD_S
	.word	AR8327_FWD_CTRL1_IGMP_S
	.size	ar8327_set_port_igmp, .-ar8327_set_port_igmp
	.comm	AR8327_REG_FWD_CTRL1,4,4
	.comm	AR8327_FWD_CTRL1_MC_FLOOD_S,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
