	.file	"extr_ethtool.c_ethtool_convert_link_mode_to_legacy_u32.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ethtool_convert_link_mode_to_legacy_u32
	.type	ethtool_convert_link_mode_to_legacy_u32, @function
ethtool_convert_link_mode_to_legacy_u32:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	eax, 1
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	DWORD PTR __ETHTOOL_LINK_MODE_MASK_NBITS[rip], 32
	jg	.L7
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 0[rbp], rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR ext[rip]
	call	__ETHTOOL_DECLARE_LINK_MODE_MASK@PLT
	mov	esi, DWORD PTR __ETHTOOL_LINK_MODE_MASK_NBITS[rip]
	mov	edi, DWORD PTR ext[rip]
	call	bitmap_zero@PLT
	mov	edi, DWORD PTR ext[rip]
	mov	esi, 32
	call	bitmap_fill@PLT
	mov	edi, DWORD PTR ext[rip]
	mov	edx, DWORD PTR __ETHTOOL_LINK_MODE_MASK_NBITS[rip]
	mov	esi, edi
	call	bitmap_complement@PLT
	mov	edx, DWORD PTR __ETHTOOL_LINK_MODE_MASK_NBITS[rip]
	mov	edi, DWORD PTR ext[rip]
	mov	rsi, rbx
	call	bitmap_intersects@PLT
	mov	rdx, QWORD PTR [rbx]
	test	rax, rax
	mov	QWORD PTR 0[rbp], rdx
	sete	al
	add	rsp, 8
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ethtool_convert_link_mode_to_legacy_u32, .-ethtool_convert_link_mode_to_legacy_u32
	.comm	ext,4,4
	.comm	__ETHTOOL_LINK_MODE_MASK_NBITS,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_ethtool.c_ethtool_convert_link_mode_to_legacy_u32.c"
	.text
	.align	2
	.global	ethtool_convert_link_mode_to_legacy_u32
	.syntax unified
	.arm
	.fpu softvfp
	.type	ethtool_convert_link_mode_to_legacy_u32, %function
ethtool_convert_link_mode_to_legacy_u32:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L7
	mov	r5, r0
	ldr	r3, [r6]
	mov	r4, r1
	cmp	r3, #32
	movle	r0, #1
	bgt	.L6
.L2:
	ldr	r3, [r4]
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	ldr	r7, .L7+4
	ldr	r0, [r7]
	bl	__ETHTOOL_DECLARE_LINK_MODE_MASK
	ldr	r1, [r6]
	ldr	r0, [r7]
	bl	bitmap_zero
	mov	r1, #32
	ldr	r0, [r7]
	bl	bitmap_fill
	ldr	r1, [r7]
	ldr	r2, [r6]
	mov	r0, r1
	bl	bitmap_complement
	mov	r1, r4
	ldr	r0, [r7]
	ldr	r2, [r6]
	bl	bitmap_intersects
	clz	r0, r0
	lsr	r0, r0, #5
	b	.L2
.L8:
	.align	2
.L7:
	.word	__ETHTOOL_LINK_MODE_MASK_NBITS
	.word	ext
	.size	ethtool_convert_link_mode_to_legacy_u32, .-ethtool_convert_link_mode_to_legacy_u32
	.comm	ext,4,4
	.comm	__ETHTOOL_LINK_MODE_MASK_NBITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
