	.file	"extr_qeth_l2_sys.c_qeth_l2_setup_bridgeport_attrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	qeth_l2_setup_bridgeport_attrs
	.type	qeth_l2_setup_bridgeport_attrs, @function
qeth_l2_setup_bridgeport_attrs:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L11
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	eax, DWORD PTR 16[rdi]
	mov	rbp, rdi
	test	eax, eax
	je	.L1
	mov	rsi, QWORD PTR [rdi]
	cmp	rsi, QWORD PTR QETH_SBP_ROLE_NONE[rip]
	jne	.L15
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
.L16:
	mov	esi, 1
	mov	rdi, rbp
	call	qeth_bridgeport_an_set@PLT
	test	eax, eax
	je	.L1
	mov	QWORD PTR 8[rbp], 0
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	xor	esi, esi
	pop	rbp
	.cfi_remember_state
	.cfi_restore 6
	.cfi_def_cfa_offset 8
	jmp	qeth_bridgeport_an_set@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	qeth_bridgeport_setrole@PLT
	xor	edx, edx
	mov	rsi, rbp
	mov	rdi, rbp
	call	qeth_bridgeport_query_ports@PLT
	cmp	QWORD PTR 8[rbp], 0
	je	.L6
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_def_cfa_offset 8
	.cfi_restore 6
	ret
	.cfi_endproc
.LFE0:
	.size	qeth_l2_setup_bridgeport_attrs, .-qeth_l2_setup_bridgeport_attrs
	.comm	QETH_SBP_ROLE_NONE,8,8
	.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_qeth_l2_sys.c_qeth_l2_setup_bridgeport_attrs.c"
	.text
	.align	2
	.global	qeth_l2_setup_bridgeport_attrs
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_l2_setup_bridgeport_attrs, %function
qeth_l2_setup_bridgeport_attrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	subs	r4, r0, #0
	popeq	{r4, pc}
	ldr	r3, [r4, #8]
	cmp	r3, #0
	popeq	{r4, pc}
	ldr	r3, .L17
	ldr	r1, [r4]
	ldr	r3, [r3]
	cmp	r1, r3
	bne	.L15
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L6
.L16:
	mov	r1, #1
	mov	r0, r4
	bl	qeth_bridgeport_an_set
	cmp	r0, #0
	movne	r3, #0
	strne	r3, [r4, #4]
	pop	{r4, pc}
.L6:
	mov	r0, r4
	pop	{r4, lr}
	b	qeth_bridgeport_an_set
.L15:
	bl	qeth_bridgeport_setrole
	mov	r1, r4
	mov	r2, #0
	mov	r0, r4
	bl	qeth_bridgeport_query_ports
	ldr	r1, [r4, #4]
	cmp	r1, #0
	beq	.L6
	b	.L16
.L18:
	.align	2
.L17:
	.word	QETH_SBP_ROLE_NONE
	.size	qeth_l2_setup_bridgeport_attrs, .-qeth_l2_setup_bridgeport_attrs
	.comm	QETH_SBP_ROLE_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
