	.file	"extr_pcap-bpf.c_bpf_open_and_bind.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BIOCSETIF: %s"
	.text
	.p2align 4
	.type	bpf_open_and_bind, @function
bpf_open_and_bind:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	bpf_open@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	edi, DWORD PTR 4[rsp]
	mov	edx, 4
	mov	rsi, rbx
	call	strncpy@PLT
	mov	esi, DWORD PTR BIOCSETIF[rip]
	lea	rdx, 4[rsp]
	mov	edi, r12d
	call	ioctl@PLT
	test	rax, rax
	js	.L10
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edx, DWORD PTR errno[rip]
	cmp	edx, 128
	je	.L3
	cmp	edx, 129
	je	.L4
	mov	esi, DWORD PTR PCAP_ERRBUF_SIZE[rip]
	mov	r8, rbx
	lea	rcx, .LC0[rip]
	mov	rdi, rbp
	call	pcap_fmt_errmsg_for_errno@PLT
	mov	edi, r12d
	call	close@PLT
	mov	r12d, DWORD PTR PCAP_ERROR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, r12d
	call	close@PLT
	mov	r12d, DWORD PTR PCAP_ERROR_IFACE_NOT_UP[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, r12d
	call	close@PLT
	mov	r12d, DWORD PTR PCAP_ERROR_NO_SUCH_DEVICE[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bpf_open_and_bind, .-bpf_open_and_bind
	.comm	errno,4,4
	.comm	PCAP_ERROR_NO_SUCH_DEVICE,4,4
	.comm	PCAP_ERROR_IFACE_NOT_UP,4,4
	.comm	PCAP_ERROR,4,4
	.comm	PCAP_ERRBUF_SIZE,4,4
	.comm	BIOCSETIF,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_pcap-bpf.c_bpf_open_and_bind.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BIOCSETIF: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bpf_open_and_bind, %function
bpf_open_and_bind:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #16
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	bpf_open
	subs	r4, r0, #0
	blt	.L1
	mov	r2, #4
	mov	r1, r6
	ldr	r0, [sp, #8]
	bl	strncpy
	ldr	r3, .L12+4
	mov	r0, r4
	ldr	r1, [r3]
	add	r2, sp, #8
	bl	ioctl
	cmp	r0, #0
	blt	.L10
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	cmp	r2, #128
	beq	.L3
	cmp	r2, #129
	beq	.L4
	ldr	r3, .L12+12
	str	r6, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, .L12+16
	bl	pcap_fmt_errmsg_for_errno
	mov	r0, r4
	bl	close
	ldr	r3, .L12+20
	ldr	r4, [r3]
	b	.L1
.L4:
	mov	r0, r4
	bl	close
	ldr	r3, .L12+24
	ldr	r4, [r3]
	b	.L1
.L3:
	mov	r0, r4
	bl	close
	ldr	r3, .L12+28
	ldr	r4, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	BIOCSETIF
	.word	errno
	.word	PCAP_ERRBUF_SIZE
	.word	.LC0
	.word	PCAP_ERROR
	.word	PCAP_ERROR_IFACE_NOT_UP
	.word	PCAP_ERROR_NO_SUCH_DEVICE
	.size	bpf_open_and_bind, .-bpf_open_and_bind
	.comm	errno,4,4
	.comm	PCAP_ERROR_NO_SUCH_DEVICE,4,4
	.comm	PCAP_ERROR_IFACE_NOT_UP,4,4
	.comm	PCAP_ERROR,4,4
	.comm	PCAP_ERRBUF_SIZE,4,4
	.comm	BIOCSETIF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
