	.file	"extr_ehea_main.c_ehea_sense_port_attr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"no mem for cb0"
.LC1:
	.string	"ehea_sense_port_attr"
	.text
	.p2align 4
	.globl	ehea_sense_port_attr
	.type	ehea_sense_port_attr, @function
ehea_sense_port_attr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, DWORD PTR GFP_ATOMIC[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	get_zeroed_page@PLT
	test	rax, rax
	je	.L28
	mov	edi, DWORD PTR H_PORT_CB0_ALL[rip]
	mov	esi, 65535
	mov	rbp, rax
	call	EHEA_BMASK_SET@PLT
	mov	esi, DWORD PTR 32[r13]
	mov	edx, DWORD PTR H_PORT_CB0[rip]
	mov	r8, rbp
	mov	ecx, eax
	mov	rax, QWORD PTR 40[r13]
	mov	edi, DWORD PTR [rax]
	call	ehea_h_query_ehea_port@PLT
	cmp	QWORD PTR H_SUCCESS[rip], rax
	je	.L4
	mov	r12d, DWORD PTR EIO[rip]
	neg	r12d
.L5:
	test	r12d, r12d
	jne	.L19
.L17:
	mov	rdi, r13
	xor	r12d, r12d
	call	netif_msg_probe@PLT
	test	rax, rax
	jne	.L19
.L20:
.L3:
	endbr64
	mov	rdi, rbp
	call	free_page@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.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
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[rbp]
	mov	rdi, r13
	sal	eax, 16
	mov	DWORD PTR 0[r13], eax
	call	is_valid_ether_addr@PLT
	mov	r12d, DWORD PTR EADDRNOTAVAIL[rip]
	neg	r12d
	test	eax, eax
	je	.L5
	mov	eax, DWORD PTR 4[rbp]
	add	eax, -128
	cmp	eax, 5
	ja	.L7
	lea	rdx, .L9[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L9:
	.long	.L14-.L9
	.long	.L13-.L9
	.long	.L12-.L9
	.long	.L11-.L9
	.long	.L10-.L9
	.long	.L8-.L9
	.text
	.p2align 4,,10
	.p2align 3
.L19:
	lea	rdx, .LC1[rip]
	mov	esi, 12
	mov	rdi, rbp
	call	ehea_dump@PLT
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L28:
	lea	rdi, .LC0[rip]
	call	ehea_error@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR EHEA_SPEED_100M[rip]
	mov	DWORD PTR 4[r13], 0
	mov	QWORD PTR 24[r13], rax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	eax, DWORD PTR 8[rbp]
	cmp	QWORD PTR use_mcs[rip], 0
	mov	DWORD PTR 8[r13], 1
	mov	DWORD PTR 12[r13], eax
	jne	.L16
	mov	DWORD PTR 16[r13], 1
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR EHEA_SPEED_10G[rip]
	mov	DWORD PTR 4[r13], 1
	mov	QWORD PTR 24[r13], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR EHEA_SPEED_10M[rip]
	mov	DWORD PTR 4[r13], 1
	mov	QWORD PTR 24[r13], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rax, QWORD PTR EHEA_SPEED_10M[rip]
	mov	DWORD PTR 4[r13], 0
	mov	QWORD PTR 24[r13], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR EHEA_SPEED_1G[rip]
	mov	DWORD PTR 4[r13], 1
	mov	QWORD PTR 24[r13], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR EHEA_SPEED_100M[rip]
	mov	DWORD PTR 4[r13], 1
	mov	QWORD PTR 24[r13], rax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 16[r13], eax
	neg	r12d
	test	eax, eax
	je	.L5
	jmp	.L17
.L7:
	mov	QWORD PTR 24[r13], 0
	mov	DWORD PTR 4[r13], 0
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	ehea_sense_port_attr, .-ehea_sense_port_attr
	.comm	use_mcs,8,8
	.comm	H_SUCCESS,8,8
	.comm	H_PORT_CB0_ALL,4,4
	.comm	H_PORT_CB0,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EHEA_SPEED_1G,8,8
	.comm	EHEA_SPEED_10M,8,8
	.comm	EHEA_SPEED_10G,8,8
	.comm	EHEA_SPEED_100M,8,8
	.comm	EADDRNOTAVAIL,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_ehea_main.c_ehea_sense_port_attr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"no mem for cb0\000"
	.align	2
.LC1:
	.ascii	"ehea_sense_port_attr\000"
	.text
	.align	2
	.global	ehea_sense_port_attr
	.syntax unified
	.arm
	.fpu softvfp
	.type	ehea_sense_port_attr, %function
ehea_sense_port_attr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L29
	mov	r6, r0
	sub	sp, sp, #8
	ldr	r0, [r3]
	bl	get_zeroed_page
	subs	r4, r0, #0
	beq	.L27
	ldr	r1, .L29+4
	ldr	r2, [r6, #28]
	ldr	r3, .L29+8
	ldr	r0, [r1]
	ldr	r1, .L29+12
	ldr	r5, [r2]
	ldr	r8, [r3]
	ldr	r7, [r6, #24]
	bl	EHEA_BMASK_SET
	mov	r2, r8
	mov	r3, r0
	mov	r1, r7
	mov	r0, r5
	str	r4, [sp]
	bl	ehea_h_query_ehea_port
	ldr	r3, .L29+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L4
	ldr	r3, .L29+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	cmp	r5, #0
	bne	.L19
.L17:
	mov	r0, r6
	bl	netif_msg_probe
	subs	r5, r0, #0
	bne	.L21
.L20:
.L3:
	mov	r0, r4
	bl	free_page
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	ldr	r3, [r4]
	mov	r0, r6
	lsl	r3, r3, #16
	str	r3, [r6]
	bl	is_valid_ether_addr
	cmp	r0, #0
	beq	.L28
	ldr	r3, [r4, #4]
	sub	r3, r3, #128
	cmp	r3, #5
	ldrls	pc, [pc, r3, asl #2]
	b	.L7
.L9:
	.word	.L14
	.word	.L13
	.word	.L12
	.word	.L11
	.word	.L10
	.word	.L8
.L21:
	mov	r5, #0
.L19:
	mov	r1, #12
	mov	r0, r4
	ldr	r2, .L29+24
	bl	ehea_dump
	b	.L20
.L27:
	ldr	r0, .L29+28
	bl	ehea_error
	ldr	r3, .L29+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L28:
	ldr	r3, .L29+36
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L5
.L8:
	mov	r2, #1
	ldr	r3, .L29+40
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
.L15:
	mov	r2, #1
	ldr	r1, .L29+44
	ldr	r3, [r4, #8]
	ldr	r1, [r1]
	str	r2, [r6, #8]
	cmp	r1, #0
	str	r3, [r6, #12]
	streq	r2, [r6, #16]
	beq	.L17
	cmp	r3, #0
	str	r3, [r6, #16]
	bne	.L17
	ldr	r3, .L29+48
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L5
.L10:
	mov	r2, #0
	ldr	r3, .L29+40
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
	b	.L15
.L11:
	mov	r2, #1
	ldr	r3, .L29+52
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
	b	.L15
.L12:
	mov	r2, #1
	ldr	r3, .L29+56
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
	b	.L15
.L13:
	mov	r2, #0
	ldr	r3, .L29+56
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
	b	.L15
.L14:
	mov	r2, #1
	ldr	r3, .L29+60
	str	r2, [r6, #4]
	ldr	r3, [r3]
	str	r3, [r6, #20]
	b	.L15
.L7:
	mov	r3, #0
	str	r3, [r6, #20]
	str	r3, [r6, #4]
	b	.L15
.L30:
	.align	2
.L29:
	.word	GFP_ATOMIC
	.word	H_PORT_CB0_ALL
	.word	H_PORT_CB0
	.word	65535
	.word	H_SUCCESS
	.word	EIO
	.word	.LC1
	.word	.LC0
	.word	ENOMEM
	.word	EADDRNOTAVAIL
	.word	EHEA_SPEED_100M
	.word	use_mcs
	.word	EINVAL
	.word	EHEA_SPEED_10G
	.word	EHEA_SPEED_10M
	.word	EHEA_SPEED_1G
	.size	ehea_sense_port_attr, .-ehea_sense_port_attr
	.comm	use_mcs,4,4
	.comm	H_SUCCESS,4,4
	.comm	H_PORT_CB0_ALL,4,4
	.comm	H_PORT_CB0,4,4
	.comm	GFP_ATOMIC,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.comm	EHEA_SPEED_1G,4,4
	.comm	EHEA_SPEED_10M,4,4
	.comm	EHEA_SPEED_10G,4,4
	.comm	EHEA_SPEED_100M,4,4
	.comm	EADDRNOTAVAIL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
