	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_catas
_poll_catas:                            ## @poll_catas
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mlx4_priv
	movq	%rax, %r14
	movl	8(%rax), %edi
	callq	_readl
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	(%rbx), %edi
	callq	_pci_channel_offline
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_MLX4_CATAS_POLL_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	callq	_round_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mod_timer                      ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	callq	_dump_err_buf
	movq	_MLX4_DEV_EVENT_CATASTROPHIC_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mlx4_dispatch_event
	movq	_internal_err_reset@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.5:
	movq	_catas_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	addq	$4, %r14
	movq	_catas_list@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_list_add
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_mlx4_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_catas_work@GOTPCREL(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MLX4_CATAS_POLL_INTERVAL,8,3   ## @MLX4_CATAS_POLL_INTERVAL
	.comm	_MLX4_DEV_EVENT_CATASTROPHIC_ERROR,4,2 ## @MLX4_DEV_EVENT_CATASTROPHIC_ERROR
	.comm	_internal_err_reset,8,3         ## @internal_err_reset
	.comm	_catas_lock,4,2                 ## @catas_lock
	.comm	_catas_list,4,2                 ## @catas_list
	.comm	_mlx4_wq,4,2                    ## @mlx4_wq
	.comm	_catas_work,4,2                 ## @catas_work
	.no_dead_strip	_poll_catas
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_catas
_poll_catas:                            ; @poll_catas
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_mlx4_priv
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_readl
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
	bl	_pci_channel_offline
	cbz	x0, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MLX4_CATAS_POLL_INTERVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MLX4_CATAS_POLL_INTERVAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_round_jiffies
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mod_timer
LBB0_3:
	mov	x0, x20
	bl	_dump_err_buf
Lloh6:
	adrp	x8, _MLX4_DEV_EVENT_CATASTROPHIC_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLX4_DEV_EVENT_CATASTROPHIC_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mlx4_dispatch_event
Lloh9:
	adrp	x8, _internal_err_reset@GOTPAGE
Lloh10:
	ldr	x8, [x8, _internal_err_reset@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh12:
	adrp	x20, _catas_lock@GOTPAGE
Lloh13:
	ldr	x20, [x20, _catas_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	add	x0, x19, #4
Lloh14:
	adrp	x1, _catas_list@GOTPAGE
Lloh15:
	ldr	x1, [x1, _catas_list@GOTPAGEOFF]
	bl	_list_add
	mov	x0, x20
	bl	_spin_unlock
Lloh16:
	adrp	x8, _mlx4_wq@GOTPAGE
Lloh17:
	ldr	x8, [x8, _mlx4_wq@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, _catas_work@GOTPAGE
Lloh20:
	ldr	x1, [x1, _catas_work@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_queue_work
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MLX4_CATAS_POLL_INTERVAL,8,3   ; @MLX4_CATAS_POLL_INTERVAL
	.comm	_MLX4_DEV_EVENT_CATASTROPHIC_ERROR,4,2 ; @MLX4_DEV_EVENT_CATASTROPHIC_ERROR
	.comm	_internal_err_reset,8,3         ; @internal_err_reset
	.comm	_catas_lock,4,2                 ; @catas_lock
	.comm	_catas_list,4,2                 ; @catas_list
	.comm	_mlx4_wq,4,2                    ; @mlx4_wq
	.comm	_catas_work,4,2                 ; @catas_work
	.no_dead_strip	_poll_catas
.subsections_via_symbols
