	.file	"extr_if_bridge.c_bridge_ioctl_sifflags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bridge_ioctl_sifflags, @function
bridge_ioctl_sifflags:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR 4[rsi]
	call	bridge_lookup_member@PLT
	mov	r13d, DWORD PTR ENOENT[rip]
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	eax, DWORD PTR [rbx]
	mov	r13d, eax
	and	r13d, DWORD PTR IFBIF_SPAN[rip]
	jne	.L14
	mov	edx, DWORD PTR IFBIF_STP[rip]
	mov	ecx, DWORD PTR 0[rbp]
	lea	r12, 4[rbp]
	and	ecx, edx
	test	eax, edx
	je	.L5
	test	ecx, ecx
	je	.L15
.L6:
	xor	esi, esi
	test	DWORD PTR IFBIF_BSTP_EDGE[rip], eax
	mov	rdi, r12
	setne	sil
	call	bstp_set_edge@PLT
	mov	eax, DWORD PTR [rbx]
	xor	esi, esi
	test	DWORD PTR IFBIF_BSTP_AUTOEDGE[rip], eax
	setne	sil
	mov	rdi, r12
	call	bstp_set_autoedge@PLT
	mov	eax, DWORD PTR [rbx]
	xor	esi, esi
	test	DWORD PTR IFBIF_BSTP_PTP[rip], eax
	setne	sil
	mov	rdi, r12
	call	bstp_set_ptp@PLT
	mov	eax, DWORD PTR [rbx]
	xor	esi, esi
	test	DWORD PTR IFBIF_BSTP_AUTOPTP[rip], eax
	setne	sil
	mov	rdi, r12
	call	bstp_set_autoptp@PLT
	mov	eax, DWORD PTR [rbx]
	and	eax, DWORD PTR IFBIFMASK[rip]
	mov	DWORD PTR 0[rbp], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L5:
	.cfi_restore_state
	test	ecx, ecx
	je	.L6
	mov	rdi, r12
	call	bstp_disable@PLT
.L12:
	mov	eax, DWORD PTR [rbx]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r13d, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, r12
	call	bstp_enable@PLT
	test	eax, eax
	je	.L12
	mov	r13d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bridge_ioctl_sifflags, .-bridge_ioctl_sifflags
	.comm	IFBIF_STP,4,4
	.comm	IFBIF_SPAN,4,4
	.comm	IFBIF_BSTP_PTP,4,4
	.comm	IFBIF_BSTP_EDGE,4,4
	.comm	IFBIF_BSTP_AUTOPTP,4,4
	.comm	IFBIF_BSTP_AUTOEDGE,4,4
	.comm	IFBIFMASK,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,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_if_bridge.c_bridge_ioctl_sifflags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bridge_ioctl_sifflags, %function
bridge_ioctl_sifflags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	ldr	r1, [r1, #4]
	bl	bridge_lookup_member
	subs	r7, r0, #0
	beq	.L14
	ldr	r2, .L17
	ldr	r3, [r4]
	ldr	r0, [r2]
	ands	r6, r3, r0
	bne	.L15
	mov	r5, r7
	ldr	r2, .L17+4
	ldr	r1, [r5], #4
	ldr	r2, [r2]
	tst	r3, r2
	and	r2, r2, r1
	beq	.L5
	cmp	r2, #0
	beq	.L16
.L6:
	ldr	r2, .L17+8
	mov	r0, r5
	ldr	r2, [r2]
	tst	r3, r2
	movne	r1, #1
	moveq	r1, #0
	bl	bstp_set_edge
	ldr	r3, .L17+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	movne	r1, #1
	moveq	r1, #0
	bl	bstp_set_autoedge
	ldr	r3, .L17+16
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	movne	r1, #1
	moveq	r1, #0
	bl	bstp_set_ptp
	ldr	r3, .L17+20
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	tst	r2, r3
	movne	r1, #1
	moveq	r1, #0
	bl	bstp_set_autoptp
	ldr	r2, .L17+24
	ldr	r3, [r4]
	ldr	r2, [r2]
	and	r3, r3, r2
	str	r3, [r7]
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	cmp	r2, #0
	beq	.L6
	mov	r0, r5
	bl	bstp_disable
	b	.L12
.L15:
	ldr	r3, .L17+28
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	mov	r0, r5
	bl	bstp_enable
	cmp	r0, #0
	movne	r6, r0
	bne	.L1
.L12:
	ldr	r3, [r4]
	b	.L6
.L14:
	ldr	r3, .L17+32
	ldr	r6, [r3]
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	.align	2
.L17:
	.word	IFBIF_SPAN
	.word	IFBIF_STP
	.word	IFBIF_BSTP_EDGE
	.word	IFBIF_BSTP_AUTOEDGE
	.word	IFBIF_BSTP_PTP
	.word	IFBIF_BSTP_AUTOPTP
	.word	IFBIFMASK
	.word	EINVAL
	.word	ENOENT
	.size	bridge_ioctl_sifflags, .-bridge_ioctl_sifflags
	.comm	IFBIF_STP,4,4
	.comm	IFBIF_SPAN,4,4
	.comm	IFBIF_BSTP_PTP,4,4
	.comm	IFBIF_BSTP_EDGE,4,4
	.comm	IFBIF_BSTP_AUTOPTP,4,4
	.comm	IFBIF_BSTP_AUTOEDGE,4,4
	.comm	IFBIFMASK,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
