	.file	"extr_driver_macsec_qca.c_macsec_qca_init_sockets.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"socket[PF_PACKET,SOCK_RAW]: %s"
	.align 8
.LC1:
	.string	"Could not register read socket"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"ioctl(SIOCGIFINDEX): %s"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Opening raw packet socket for ifindex %d"
	.section	.rodata.str1.1
.LC4:
	.string	"macsec_qca: bind: %s"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"macsec_qca_init_sockets: Failed to add multicast group membership"
	.section	.rodata.str1.1
.LC6:
	.string	"ioctl(SIOCGIFHWADDR): %s"
.LC7:
	.string	"Invalid HW-addr family 0x%04x"
	.text
	.p2align 4
	.type	macsec_qca_init_sockets, @function
macsec_qca_init_sockets:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 104
	.cfi_def_cfa_offset 144
	mov	edi, DWORD PTR ETH_P_PAE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	call	htons@PLT
	mov	esi, DWORD PTR SOCK_RAW[rip]
	mov	edi, DWORD PTR PF_PACKET[rip]
	mov	edx, eax
	call	socket@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	js	.L13
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR macsec_qca_handle_read[rip]
	xor	ecx, ecx
	mov	rdi, rax
	call	eloop_register_read_sock@PLT
	test	rax, rax
	jne	.L14
	mov	r12, rsp
	xor	esi, esi
	mov	edx, 40
	mov	rdi, r12
	call	os_memset@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 32[rsp]
	mov	edx, 4
	call	os_strlcpy@PLT
	mov	esi, DWORD PTR SIOCGIFINDEX[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	call	ioctl@PLT
	test	rax, rax
	jne	.L15
	lea	r13, 48[rsp]
	xor	esi, esi
	mov	edx, 40
	mov	rdi, r13
	call	os_memset@PLT
	mov	eax, DWORD PTR AF_PACKET[rip]
	mov	rdx, QWORD PTR 8[rsp]
	lea	rsi, .LC3[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	DWORD PTR 84[rsp], eax
	xor	eax, eax
	mov	QWORD PTR 48[rsp], rdx
	call	wpa_printf@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	edx, 40
	mov	rsi, r13
	call	bind@PLT
	test	rax, rax
	js	.L16
	mov	edx, DWORD PTR pae_group_addr[rip]
	mov	rsi, QWORD PTR 8[rsp]
	mov	ecx, 1
	mov	rdi, QWORD PTR [rbx]
	call	wired_multicast_membership@PLT
	test	rax, rax
	js	.L17
	xor	esi, esi
	mov	edx, 40
	mov	rdi, r12
	call	os_memset@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 32[rsp]
	mov	edx, 4
	call	os_strlcpy@PLT
	mov	esi, DWORD PTR SIOCGIFHWADDR[rip]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r12
	call	ioctl@PLT
	test	rax, rax
	jne	.L18
	mov	rdx, QWORD PTR 16[rsp]
	cmp	rdx, QWORD PTR ARPHRD_ETHER[rip]
	jne	.L19
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	esi, DWORD PTR 24[rsp]
	mov	rdi, rbp
	call	os_memcpy@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 88[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L20
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L13:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L16:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC4[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L17:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L18:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC6[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	macsec_qca_init_sockets, .-macsec_qca_init_sockets
	.comm	pae_group_addr,4,4
	.comm	macsec_qca_handle_read,4,4
	.comm	errno,4,4
	.comm	SOCK_RAW,4,4
	.comm	SIOCGIFINDEX,4,4
	.comm	SIOCGIFHWADDR,4,4
	.comm	PF_PACKET,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	ETH_P_PAE,4,4
	.comm	ETH_ALEN,4,4
	.comm	ARPHRD_ETHER,8,8
	.comm	AF_PACKET,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_driver_macsec_qca.c_macsec_qca_init_sockets.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket[PF_PACKET,SOCK_RAW]: %s\000"
	.align	2
.LC1:
	.ascii	"Could not register read socket\000"
	.align	2
.LC2:
	.ascii	"ioctl(SIOCGIFINDEX): %s\000"
	.align	2
.LC3:
	.ascii	"Opening raw packet socket for ifindex %d\000"
	.align	2
.LC4:
	.ascii	"macsec_qca: bind: %s\000"
	.align	2
.LC5:
	.ascii	"macsec_qca_init_sockets: Failed to add multicast gr"
	.ascii	"oup membership\000"
	.align	2
.LC6:
	.ascii	"ioctl(SIOCGIFHWADDR): %s\000"
	.align	2
.LC7:
	.ascii	"Invalid HW-addr family 0x%04x\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	macsec_qca_init_sockets, %function
macsec_qca_init_sockets:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L21
	mov	r4, r0
	ldr	r0, .L21+4
	ldr	r2, .L21+8
	ldr	r6, [r0]
	ldr	r0, [r3]
	ldr	r3, .L21+12
	sub	sp, sp, #60
	ldr	r7, [r2]
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	bl	htons
	mov	r1, r7
	mov	r2, r0
	mov	r0, r6
	bl	socket
	cmp	r0, #0
	str	r0, [r4]
	blt	.L13
	ldr	r2, .L21+16
	mov	r3, #0
	ldr	r1, [r2]
	ldr	r2, [r4, #8]
	bl	eloop_register_read_sock
	subs	r1, r0, #0
	bne	.L14
	mov	r2, #24
	add	r0, sp, #4
	bl	os_memset
	mov	r2, #4
	ldr	r1, [r4, #4]
	ldr	r0, [sp, #20]
	bl	os_strlcpy
	ldr	r3, .L21+20
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	ioctl
	subs	r6, r0, #0
	bne	.L15
	mov	r2, #24
	mov	r1, r6
	add	r0, sp, #28
	bl	os_memset
	ldr	r3, .L21+24
	ldr	r1, .L21+28
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	ldr	r0, [r1]
	ldr	r1, .L21+32
	str	r3, [sp, #48]
	str	r2, [sp, #28]
	bl	wpa_printf
	mov	r2, #24
	ldr	r0, [r4]
	add	r1, sp, #28
	bl	bind
	cmp	r0, #0
	blt	.L16
	ldr	r2, .L21+36
	mov	r3, #1
	ldr	r2, [r2]
	ldr	r1, [sp, #8]
	ldr	r0, [r4]
	bl	wired_multicast_membership
	cmp	r0, #0
	blt	.L17
	mov	r1, r6
	mov	r2, #24
	add	r0, sp, #4
	bl	os_memset
	ldr	r1, [r4, #4]
	mov	r2, #4
	ldr	r0, [sp, #20]
	bl	os_strlcpy
	ldr	r3, .L21+40
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	ioctl
	subs	r4, r0, #0
	bne	.L18
	ldr	r3, .L21+44
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L19
	ldr	r3, .L21+48
	mov	r0, r5
	ldr	r2, [r3]
	ldr	r1, [sp, #16]
	bl	os_memcpy
.L1:
	ldr	r3, .L21+12
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	ldr	r3, .L21+52
	ldr	r1, .L21+56
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L14:
	ldr	r3, .L21+52
	ldr	r1, .L21+60
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L15:
	ldr	r3, .L21+64
	ldr	r2, .L21+68
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L21+72
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L13:
	ldr	r3, .L21+64
	ldr	r2, .L21+68
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L21+76
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L16:
	ldr	r3, .L21+64
	ldr	r2, .L21+68
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L21+80
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L17:
	ldr	r3, .L21+68
	ldr	r1, .L21+84
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L18:
	ldr	r3, .L21+64
	ldr	r2, .L21+68
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L21+88
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	ETH_P_PAE
	.word	PF_PACKET
	.word	SOCK_RAW
	.word	.LC8
	.word	macsec_qca_handle_read
	.word	SIOCGIFINDEX
	.word	AF_PACKET
	.word	MSG_DEBUG
	.word	.LC3
	.word	pae_group_addr
	.word	SIOCGIFHWADDR
	.word	ARPHRD_ETHER
	.word	ETH_ALEN
	.word	MSG_INFO
	.word	.LC7
	.word	.LC1
	.word	errno
	.word	MSG_ERROR
	.word	.LC2
	.word	.LC0
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	macsec_qca_init_sockets, .-macsec_qca_init_sockets
	.comm	pae_group_addr,4,4
	.comm	macsec_qca_handle_read,4,4
	.comm	errno,4,4
	.comm	SOCK_RAW,4,4
	.comm	SIOCGIFINDEX,4,4
	.comm	SIOCGIFHWADDR,4,4
	.comm	PF_PACKET,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	ETH_P_PAE,4,4
	.comm	ETH_ALEN,4,4
	.comm	ARPHRD_ETHER,4,4
	.comm	AF_PACKET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
