	.file	"extr_catas.c_mlx4_start_catas_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to map internal error buffer at 0x%llx\n"
	.text
	.p2align 4
	.globl	mlx4_start_catas_poll
	.type	mlx4_start_catas_poll, @function
mlx4_start_catas_poll:
.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
	call	mlx4_priv@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	mlx4_is_mfunc@PLT
	test	rax, rax
	je	.L2
	mov	QWORD PTR internal_err_reset[rip], 0
.L2:
	lea	rdi, 24[rbp]
	call	INIT_LIST_HEAD@PLT
	mov	rdi, rbp
	call	init_timer@PLT
	mov	QWORD PTR 16[rbp], 0
	mov	esi, DWORD PTR 48[rbp]
	mov	edi, DWORD PTR [r12]
	call	pci_resource_start@PLT
	add	rax, QWORD PTR 40[rbp]
	mov	r13, rax
	mov	eax, DWORD PTR 32[rbp]
	mov	rdi, r13
	lea	esi, 0[0+rax*4]
	call	ioremap@PLT
	mov	QWORD PTR 16[rbp], rax
	test	rax, rax
	je	.L9
	mov	eax, DWORD PTR poll_catas[rip]
	mov	QWORD PTR 0[rbp], r12
	mov	rdi, QWORD PTR MLX4_CATAS_POLL_INTERVAL[rip]
	add	rdi, QWORD PTR jiffies[rip]
	mov	DWORD PTR 12[rbp], eax
	call	round_jiffies@PLT
	mov	rdi, rbp
	mov	DWORD PTR 8[rbp], eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	add_timer@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mlx4_warn@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_start_catas_poll, .-mlx4_start_catas_poll
	.comm	poll_catas,4,4
	.comm	jiffies,8,8
	.comm	internal_err_reset,8,8
	.comm	MLX4_CATAS_POLL_INTERVAL,8,8
	.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_catas.c_mlx4_start_catas_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to map internal error buffer at 0x%llx\012\000"
	.text
	.align	2
	.global	mlx4_start_catas_poll
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_start_catas_poll, %function
mlx4_start_catas_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	mlx4_priv
	mov	r4, r0
	mov	r0, r5
	bl	mlx4_is_mfunc
	cmp	r0, #0
	movne	r2, #0
	ldrne	r3, .L10
	add	r0, r4, #16
	strne	r2, [r3]
	bl	INIT_LIST_HEAD
	mov	r0, r4
	bl	init_timer
	mov	r3, #0
	ldr	r1, [r4, #28]
	str	r3, [r4, #12]
	ldr	r0, [r5]
	bl	pci_resource_start
	ldr	r6, [r4, #24]
	ldr	r1, [r4, #20]
	add	r6, r0, r6
	mov	r0, r6
	lsl	r1, r1, #2
	bl	ioremap
	cmp	r0, #0
	str	r0, [r4, #12]
	beq	.L9
	ldr	r1, .L10+4
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r1]
	str	r2, [r4, #8]
	str	r5, [r4]
	add	r0, r0, r3
	bl	round_jiffies
	mov	r3, r0
	mov	r0, r4
	str	r3, [r4, #4]
	pop	{r4, r5, r6, lr}
	b	add_timer
.L9:
	mov	r0, r5
	mov	r2, r6
	asr	r3, r6, #31
	ldr	r1, .L10+16
	pop	{r4, r5, r6, lr}
	b	mlx4_warn
.L11:
	.align	2
.L10:
	.word	internal_err_reset
	.word	jiffies
	.word	poll_catas
	.word	MLX4_CATAS_POLL_INTERVAL
	.word	.LC0
	.size	mlx4_start_catas_poll, .-mlx4_start_catas_poll
	.comm	poll_catas,4,4
	.comm	jiffies,4,4
	.comm	internal_err_reset,4,4
	.comm	MLX4_CATAS_POLL_INTERVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
