	.file	"extr_ntb_hw_idt.c_idt_init_mws.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to scan mws of local port %hhu"
	.align 8
.LC1:
	.string	"Failed to scan mws of port %hhu"
	.align 8
.LC2:
	.string	"Outbound and inbound MWs initialized"
	.text
	.p2align 4
	.type	idt_init_mws, @function
idt_init_mws:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, 44[rdi]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 40[rdi]
	call	idt_scan_mws@PLT
	mov	QWORD PTR 32[rbp], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L2
	xor	r12d, r12d
	cmp	BYTE PTR 0[rbp], 0
	jne	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	add	r12d, 1
	cmp	BYTE PTR 0[rbp], r12b
	jbe	.L4
.L3:
	movzx	ebx, r12b
	mov	rdi, rbp
	sal	rbx, 4
	add	rbx, QWORD PTR 24[rbp]
	mov	esi, DWORD PTR 8[rbx]
	lea	rdx, 12[rbx]
	call	idt_scan_mws@PLT
	mov	QWORD PTR [rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	je	.L5
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR [rbx]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rdi, 16[rbp]
	call	spin_lock_init@PLT
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC2[rip]
	call	dev_dbg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR 40[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rdi, QWORD PTR 32[rbp]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	idt_init_mws, .-idt_init_mws
	.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_ntb_hw_idt.c_idt_init_mws.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to scan mws of local port %hhu\000"
	.align	2
.LC1:
	.ascii	"Failed to scan mws of port %hhu\000"
	.align	2
.LC2:
	.ascii	"Outbound and inbound MWs initialized\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	idt_init_mws, %function
idt_init_mws:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r0, #20]
	add	r2, r0, #24
	mov	r5, r0
	bl	idt_scan_mws
	str	r0, [r5, #16]
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L2
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #0
	movne	r3, r6
	bne	.L3
	b	.L4
.L5:
	ldrb	r2, [r5]	@ zero_extendqisi2
	cmp	r2, r3
	bls	.L4
.L3:
	ldr	r8, [r5, #12]
	add	r4, r3, r3, lsl #1
	add	r7, r8, r4, lsl #2
	ldr	r1, [r7, #4]
	add	r2, r7, #8
	mov	r0, r5
	bl	idt_scan_mws
	str	r0, [r8, r4, lsl #2]
	bl	IS_ERR
	add	r6, r6, #1
	cmp	r0, #0
	and	r3, r6, #255
	beq	.L5
	ldr	r0, [r5, #4]
	ldr	r2, [r7, #4]
	ldr	r1, .L10
	bl	dev_err
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L4:
	add	r0, r5, #8
	bl	spin_lock_init
	ldr	r0, [r5, #4]
	ldr	r1, .L10+4
	bl	dev_dbg
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r2, [r5, #20]
	ldr	r0, [r5, #4]
	ldr	r1, .L10+8
	bl	dev_err
	ldr	r0, [r5, #16]
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L11:
	.align	2
.L10:
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	idt_init_mws, .-idt_init_mws
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
