	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_start_catas_poll         ## -- Begin function mthca_start_catas_poll
	.p2align	4, 0x90
_mthca_start_catas_poll:                ## @mthca_start_catas_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	8(%rdi), %r14
	movq	_poll_catas@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_timer_setup
	movq	$0, 24(%rbx)
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_resource_start
	movq	%rax, %r12
	movl	32(%rbx), %edi
	xorl	%esi, %esi
	callq	_pci_resource_len
	cltq
	decq	%rax
	movslq	(%rbx), %r15
	andq	%rax, %r15
	addq	%r12, %r15
	movl	4(%rbx), %esi
	shll	$2, %esi
	movq	%r15, %rdi
	callq	_ioremap
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_MTHCA_CATAS_POLL_INTERVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 8(%rbx)
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_add_timer                      ## TAILCALL
LBB0_1:
	movl	4(%rbx), %ecx
	shll	$2, %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mthca_warn                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_poll_catas,4,2                 ## @poll_catas
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"couldn't map catastrophic error region at 0x%llx/0x%x\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MTHCA_CATAS_POLL_INTERVAL,8,3  ## @MTHCA_CATAS_POLL_INTERVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_start_catas_poll         ; -- Begin function mthca_start_catas_poll
	.p2align	2
_mthca_start_catas_poll:                ; @mthca_start_catas_poll
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	add	x20, x0, #8
Lloh0:
	adrp	x8, _poll_catas@GOTPAGE
Lloh1:
	ldr	x8, [x8, _poll_catas@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_timer_setup
	str	xzr, [x19, #24]
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_pci_resource_start
	mov	x21, x0
	ldr	w0, [x19, #32]
	mov	w1, #0
	bl	_pci_resource_len
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x8, x8, #1
	ldp	w9, w10, [x19]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	and	x8, x8, x9
	add	x21, x21, x8
	lsl	w1, w10, #2
	mov	x0, x21
	bl	_ioremap
	str	x0, [x19, #24]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _jiffies@GOTPAGE
Lloh4:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _MTHCA_CATAS_POLL_INTERVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MTHCA_CATAS_POLL_INTERVAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #8]
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_add_timer
LBB0_2:
	ldr	w8, [x19, #4]
	lsl	w3, w8, #2
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mthca_warn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_poll_catas,4,2                 ; @poll_catas
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"couldn't map catastrophic error region at 0x%llx/0x%x\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MTHCA_CATAS_POLL_INTERVAL,8,3  ; @MTHCA_CATAS_POLL_INTERVAL
.subsections_via_symbols
