	.file	"extr_psock_snd.c_do_bind.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"if_nametoindex"
.LC1:
	.string	"bind"
	.text
	.p2align 4
	.type	do_bind, @function
do_bind:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, edi
	pxor	xmm0, xmm0
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ETH_P_IP[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR AF_PACKET[rip]
	movaps	XMMWORD PTR [rsp], xmm0
	mov	DWORD PTR 8[rsp], eax
	call	htons@PLT
	mov	edi, DWORD PTR cfg_ifname[rip]
	mov	DWORD PTR 4[rsp], eax
	call	if_nametoindex@PLT
	mov	DWORD PTR [rsp], eax
	test	eax, eax
	je	.L10
.L2:
	mov	rsi, rsp
	mov	edx, 16
	mov	edi, ebp
	call	bind@PLT
	test	rax, rax
	jne	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, DWORD PTR errno[rip]
	lea	rdx, .LC0[rip]
	mov	edi, 1
	call	error@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR errno[rip]
	lea	rdx, .LC1[rip]
	mov	edi, 1
	call	error@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	do_bind, .-do_bind
	.comm	errno,4,4
	.comm	cfg_ifname,4,4
	.comm	ETH_P_IP,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
	.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_psock_snd.c_do_bind.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"if_nametoindex\000"
	.align	2
.LC1:
	.ascii	"bind\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_bind, %function
do_bind:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, lr}
	ldr	r1, .L13
	ldr	r2, .L13+4
	mov	r4, r0
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, .L13+8
	sub	sp, sp, #24
	ldr	r1, [r1]
	str	r1, [sp, #20]
	mov	r1,#0
	str	r2, [sp, #12]
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #16]
	bl	htons
	ldr	r3, .L13+12
	str	r0, [sp, #8]
	ldr	r0, [r3]
	bl	if_nametoindex
	cmp	r0, #0
	str	r0, [sp, #4]
	beq	.L10
.L2:
	mov	r0, r4
	mov	r2, #16
	add	r1, sp, #4
	bl	bind
	cmp	r0, #0
	bne	.L11
.L1:
	ldr	r3, .L13+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #24
	@ sp needed
	pop	{r4, pc}
.L10:
	ldr	r3, .L13+16
	ldr	r2, .L13+20
	ldr	r1, [r3]
	mov	r0, #1
	bl	error
	b	.L2
.L11:
	ldr	r3, .L13+16
	ldr	r2, .L13+24
	ldr	r1, [r3]
	mov	r0, #1
	bl	error
	b	.L1
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	ETH_P_IP
	.word	AF_PACKET
	.word	.LC2
	.word	cfg_ifname
	.word	errno
	.word	.LC0
	.word	.LC1
	.size	do_bind, .-do_bind
	.comm	errno,4,4
	.comm	cfg_ifname,4,4
	.comm	ETH_P_IP,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
