	.file	"extr_crdump.c_mlx4_crdump_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"crdump: create devlink region %s err %ld\n"
	.text
	.p2align 4
	.globl	mlx4_crdump_init
	.type	mlx4_crdump_init, @function
mlx4_crdump_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	call	mlx4_priv@PLT
	mov	edi, eax
	call	priv_to_devlink@PLT
	mov	rbx, QWORD PTR 0[rbp]
	xor	esi, esi
	mov	r12, rax
	mov	DWORD PTR 8[rbx], 0
	mov	rdi, QWORD PTR [rbx]
	call	pci_resource_len@PLT
	mov	edx, DWORD PTR MAX_NUM_OF_DUMPS_TO_STORE[rip]
	mov	esi, DWORD PTR region_cr_space_str[rip]
	mov	rdi, r12
	mov	ecx, eax
	call	devlink_region_create@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	ecx, DWORD PTR HEALTH_BUFFER_SIZE[rip]
	mov	edx, DWORD PTR MAX_NUM_OF_DUMPS_TO_STORE[rip]
	mov	rdi, r12
	mov	esi, DWORD PTR region_fw_health_str[rip]
	call	devlink_region_create@PLT
	mov	QWORD PTR 16[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	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
.L12:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	call	PTR_ERR@PLT
	mov	edx, DWORD PTR region_cr_space_str[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	mov	ecx, eax
	call	mlx4_warn@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, QWORD PTR 16[rbx]
	call	PTR_ERR@PLT
	mov	edx, DWORD PTR region_fw_health_str[rip]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	mov	ecx, eax
	call	mlx4_warn@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx4_crdump_init, .-mlx4_crdump_init
	.comm	region_fw_health_str,4,4
	.comm	region_cr_space_str,4,4
	.comm	MAX_NUM_OF_DUMPS_TO_STORE,4,4
	.comm	HEALTH_BUFFER_SIZE,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_crdump.c_mlx4_crdump_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"crdump: create devlink region %s err %ld\012\000"
	.text
	.align	2
	.global	mlx4_crdump_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_crdump_init, %function
mlx4_crdump_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	mlx4_priv
	bl	priv_to_devlink
	mov	r1, #0
	ldr	r4, [r6]
	ldr	r8, .L14
	ldr	r7, .L14+4
	mov	r5, r0
	str	r1, [r4, #4]
	ldr	r0, [r4]
	ldr	r9, [r8]
	ldr	r10, [r7]
	bl	pci_resource_len
	mov	r2, r10
	mov	r3, r0
	mov	r1, r9
	mov	r0, r5
	bl	devlink_region_create
	str	r0, [r4, #12]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L12
.L2:
	ldr	r3, .L14+8
	ldr	r8, .L14+12
	ldr	r2, [r7]
	ldr	r3, [r3]
	ldr	r1, [r8]
	mov	r0, r5
	bl	devlink_region_create
	str	r0, [r4, #8]
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	ldr	r0, [r4, #12]
	ldr	r8, [r8]
	bl	PTR_ERR
	mov	r2, r8
	mov	r3, r0
	ldr	r1, .L14+16
	mov	r0, r6
	bl	mlx4_warn
	b	.L2
.L13:
	ldr	r0, [r4, #8]
	ldr	r5, [r8]
	bl	PTR_ERR
	mov	r2, r5
	mov	r3, r0
	ldr	r1, .L14+16
	mov	r0, r6
	bl	mlx4_warn
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	region_cr_space_str
	.word	MAX_NUM_OF_DUMPS_TO_STORE
	.word	HEALTH_BUFFER_SIZE
	.word	region_fw_health_str
	.word	.LC0
	.size	mlx4_crdump_init, .-mlx4_crdump_init
	.comm	region_fw_health_str,4,4
	.comm	region_cr_space_str,4,4
	.comm	MAX_NUM_OF_DUMPS_TO_STORE,4,4
	.comm	HEALTH_BUFFER_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
