	.file	"extr_qeth_core_main.c_qeth_update_max_mtu.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qeth_update_max_mtu, @function
qeth_update_max_mtu:
.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
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR 8[rdi]
	test	esi, esi
	jne	.L17
	call	IS_IQD@PLT
	mov	ebp, DWORD PTR ETH_MAX_MTU[rip]
	test	rax, rax
	jne	.L20
.L2:
	xor	eax, eax
	call	rtnl_lock@PLT
	mov	rdi, r12
	call	IS_IQD@PLT
	mov	r13d, DWORD PTR [rbx]
	test	rax, rax
	jne	.L21
	test	r13d, r13d
	je	.L22
.L7:
	mov	DWORD PTR 4[rbx], ebp
	mov	esi, ebp
	mov	edi, r13d
	call	min@PLT
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	call	rtnl_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	mov	ebp, esi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	mov	eax, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR PAGE_SIZE[rip]
	cmp	r13d, eax
	lea	edx, 0[rbp+rdx*2]
	mov	DWORD PTR [r12], edx
	cmove	r13d, ebp
	test	eax, eax
	je	.L7
	cmp	eax, ebp
	je	.L7
	mov	rdi, r12
	call	qeth_free_qdio_queues@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L20:
	mov	eax, 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
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, r12
	call	IS_LAYER2@PLT
	mov	r13d, DWORD PTR ETH_DATA_LEN[rip]
	test	rax, rax
	jne	.L7
	mov	eax, DWORD PTR ETH_DATA_LEN[rip]
	lea	r13d, -8[rax]
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	qeth_update_max_mtu, .-qeth_update_max_mtu
	.comm	PAGE_SIZE,4,4
	.comm	ETH_MAX_MTU,4,4
	.comm	ETH_DATA_LEN,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_qeth_core_main.c_qeth_update_max_mtu.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qeth_update_max_mtu, %function
qeth_update_max_mtu:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r1, #0
	mov	r6, r0
	ldr	r7, [r0, #4]
	bne	.L2
	bl	IS_IQD
	cmp	r0, #0
	bne	.L15
	ldr	r3, .L18
	ldr	r4, [r3]
.L2:
	bl	rtnl_lock
	mov	r0, r6
	bl	IS_IQD
	cmp	r0, #0
	ldr	r5, [r7]
	bne	.L16
	cmp	r5, #0
	beq	.L17
.L7:
	mov	r1, r4
	mov	r0, r5
	str	r4, [r7, #4]
	bl	min
	str	r0, [r7]
	bl	rtnl_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r3, [r7, #4]
	ldr	r2, .L18+4
	cmp	r5, r3
	moveq	r5, r4
	cmp	r3, #0
	cmpne	r3, r4
	ldr	r3, [r2]
	add	r3, r4, r3, lsl #1
	str	r3, [r6]
	beq	.L7
	mov	r0, r6
	bl	qeth_free_qdio_queues
	b	.L7
.L15:
	ldr	r3, .L18+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r6
	bl	IS_LAYER2
	ldr	r3, .L18+12
	cmp	r0, #0
	ldr	r5, [r3]
	subeq	r5, r5, #8
	b	.L7
.L19:
	.align	2
.L18:
	.word	ETH_MAX_MTU
	.word	PAGE_SIZE
	.word	EINVAL
	.word	ETH_DATA_LEN
	.size	qeth_update_max_mtu, .-qeth_update_max_mtu
	.comm	PAGE_SIZE,4,4
	.comm	ETH_MAX_MTU,4,4
	.comm	ETH_DATA_LEN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
