	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_init_chip                ## -- Begin function ipath_init_chip
	.p2align	4, 0x90
_ipath_init_chip:                       ## @ipath_init_chip
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movq	_GFP_USER@GOTPCREL(%rip), %rax
	movq	___GFP_COMP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	callq	_init_housekeeping
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movl	272(%r13), %esi
	movl	276(%r13), %edi
	callq	_max
	movq	%rax, (%r13)
	movq	144(%r13), %rcx
	movl	44(%rcx), %esi
	movq	%r13, %rdi
	movq	%rax, %rdx
	callq	_ipath_write_kreg
	movl	12(%r13), %edi
	addl	8(%r13), %edi
	movq	_BITS_PER_BYTE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	shll	$2, %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_ALIGN
	movslq	%eax, %rcx
	movslq	(%r14), %rdx
	shlq	$2, %rdx
	movabsq	$9223372036854775804, %rsi      ## imm = 0x7FFFFFFFFFFFFFFC
	andq	%rdx, %rsi
	movq	%rcx, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	movl	%r15d, -56(%rbp)                ## 4-byte Spill
	je	LBB0_3
## %bb.2:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_3:
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movl	%eax, 16(%r13)
	movl	20(%r13), %edi
	xorl	%r14d, %r14d
	subl	$1, %edi
	movl	%edi, %r12d
	cmovbl	%r14d, %r12d
	xorl	%eax, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	$145, %ecx
	setge	%bl
	movq	_ipath_kpiobufs@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r15d
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	movq	_IPATH_MIN_USER_PORT_BUFCNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r9d, %eax
	imull	%r12d, %eax
	leal	(%rax,%r15), %edx
	cmpl	%ecx, %edx
	jle	LBB0_8
## %bb.6:
	movl	%ecx, %edx
	subl	%eax, %edx
	cmpl	$2, %edx
	movl	$1, %ebx
	cmovgel	%edx, %ebx
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	224(%r13), %rdi
	movl	%ebx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_dev_info
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r15d
	jmp	LBB0_8
LBB0_7:
	movl	24(%r13), %edx
	movb	%bl, %al
	shll	$4, %eax
	leal	(%rax,%rdx), %r15d
	addl	$16, %r15d
LBB0_8:
	movl	%ecx, %ebx
	subl	%r15d, %ebx
	movq	%r13, %rsi
	movl	%ebx, 28(%r13)
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	cltd
	idivl	%edi
	movl	%eax, %r14d
LBB0_10:
	movq	%rsi, %r13
	movl	%r14d, 32(%rsi)
	movl	%r14d, %eax
	imull	%r12d, %eax
	subl	%eax, %ebx
	movl	%ebx, 36(%rsi)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ipath_dbg
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	32(%r13), %r14d
LBB0_12:
	movq	$0, 264(%r13)
	movl	8(%r13), %eax
	movl	%eax, 40(%r13)
	movq	_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	callq	_ipath_cdbg
	movq	%r13, %rdi
	callq	*48(%r13)
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %r14
LBB0_14:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_ipath_dev_err
LBB0_15:
	leaq	L_.str.10(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_ipath_dbg
LBB0_16:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movslq	60(%r13), %rdx
	movl	(%r13), %eax
	decl	%eax
	imull	%edx, %eax
	movl	%eax, 56(%r13)
	movq	144(%r13), %rax
	movl	40(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	64(%r13), %rdx
	movq	144(%r13), %rax
	movl	36(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	testl	%r15d, %r15d
	je	LBB0_26
LBB0_18:
	movq	72(%r13), %rdx
	movq	144(%r13), %rax
	movl	32(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	32(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_read_kreg64
	movq	72(%r13), %rdx
	cmpq	%rax, %rdx
	jne	LBB0_21
## %bb.19:
	movq	144(%r13), %rax
	movl	28(%rax), %esi
	movq	_IPATH_KD_QP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	16(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	20(%rax), %esi
	movq	_INFINIPATH_HWE_MEMBISTFAILED@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	notq	%rdx
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	24(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	%r13, %rdi
	callq	_bringup_link
	testq	%rax, %rax
	je	LBB0_27
## %bb.20:
	movq	224(%r13), %rdi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_21:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_ipath_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_22:
	subl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_15
LBB0_24:
	movq	_IPATH_STATUS_CHIP_PRESENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	136(%r13), %rcx
	orl	%eax, (%rcx)
	movq	%r13, %rdi
	callq	*152(%r13)
	testl	%eax, %eax
	je	LBB0_32
## %bb.25:
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	jmp	LBB0_35
LBB0_26:
	movq	%r13, %rdi
	callq	_init_pioavailregs
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_init_shadow_tids
	testl	%r12d, %r12d
	jne	LBB0_15
	jmp	LBB0_18
LBB0_27:
	movq	%r13, %rdi
	callq	*256(%r13)
	movq	144(%r13), %rax
	movl	20(%rax), %esi
	movq	(%r14), %rdx
	notq	%rdx
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	80(%r13), %rdx
	movq	144(%r13), %rax
	movl	16(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	12(%rax), %esi
	movq	%r13, %rdi
	movq	$-1, %rdx
	callq	_ipath_write_kreg
	movq	88(%r13), %rdx
	movq	144(%r13), %rax
	movl	8(%rax), %esi
	notq	%rdx
	movq	%r13, %rdi
	callq	_ipath_write_kreg
	movq	$0, 88(%r13)
	movq	144(%r13), %rax
	movl	8(%rax), %esi
	movq	%r13, %rdi
	callq	_ipath_read_kreg64
	movq	%rax, 248(%r13)
	movq	144(%r13), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	$-1, %rdx
	callq	_ipath_write_kreg
	movq	%r13, %rdi
	callq	*240(%r13)
	movq	216(%r13), %rax
	movq	(%rax), %r14
	testl	%r15d, %r15d
	je	LBB0_30
## %bb.28:
	movq	%r13, %rdi
	callq	_create_portdata0
	testq	%rax, %rax
	je	LBB0_46
## %bb.29:
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ipath_free_pddata
	movq	216(%r13), %rax
	movq	%rbx, (%rax)
	movq	%rbx, %r14
LBB0_30:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_ipath_create_rcvhdrq
	leaq	L_.str.7(%rip), %r14
	testl	%eax, %eax
	je	LBB0_37
## %bb.31:
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_32:
	movq	144(%r13), %rax
	movl	4(%rax), %esi
	movq	%r13, %rdi
	movq	$-1, %rdx
	callq	_ipath_write_kreg
	movq	144(%r13), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	movq	_IPATH_STATUS_INITTED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	136(%r13), %rcx
	orl	%eax, (%rcx)
	testl	%r15d, %r15d
	jne	LBB0_34
## %bb.33:
	leaq	112(%r13), %rdi
	callq	_init_timer
	movq	_verify_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 128(%r13)
	movq	%r13, 112(%r13)
LBB0_34:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movslq	%edx, %rcx
	addq	(%rax), %rcx
	leaq	112(%r13), %rdi
	movq	%rcx, 120(%r13)
	callq	_add_timer
LBB0_35:
	movslq	20(%r13), %rax
	movq	_ipath_stats@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	%rax, (%rcx)
	jge	LBB0_16
## %bb.36:
	movq	%rax, (%rcx)
	jmp	LBB0_16
LBB0_37:
	movq	%r13, %rdi
	callq	_create_port0_egr
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.38:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_enable_chip
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$1, %ecx
	callq	_ipath_chg_pioavailkernel
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_ipath_cancel_sends
	testl	%r15d, %r15d
	jne	LBB0_41
## %bb.39:
	movq	216(%r13), %rax
	movq	224(%r13), %rdi
	movq	(%rax), %rax
	movl	(%rax), %esi
	leaq	96(%r13), %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	callq	_dma_alloc_coherent
	movl	%eax, 232(%r13)
	testl	%eax, %eax
	jne	LBB0_41
## %bb.40:
	movq	216(%r13), %rax
	movq	224(%r13), %rdi
	movq	(%rax), %rax
	movl	(%rax), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_info
	movq	$0, 96(%r13)
LBB0_41:
	movq	144(%r13), %rax
	movl	(%rax), %esi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_ipath_write_kreg
	cmpl	$0, 104(%r13)
	jne	LBB0_43
## %bb.42:
	leaq	192(%r13), %r14
	movq	%r14, %rdi
	callq	_init_timer
	movq	_ipath_get_faststats@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 208(%r13)
	movq	%r13, 192(%r13)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 200(%r13)
	movq	%r14, %rdi
	callq	_add_timer
	movl	$1, 104(%r13)
LBB0_43:
	movq	_IPATH_HAS_SEND_DMA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 108(%r13)
	je	LBB0_45
## %bb.44:
	movq	%r13, %rdi
	callq	_setup_sdma
	movl	%eax, %r12d
LBB0_45:
	leaq	168(%r13), %rdi
	callq	_init_timer
	movq	_ipath_hol_event@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 184(%r13)
	movq	%r13, 168(%r13)
	movq	_IPATH_HOL_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 160(%r13)
	testl	%r12d, %r12d
	jne	LBB0_15
	jmp	LBB0_24
LBB0_46:
	leaq	L_.str.6(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_ipath_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_USER,4,2                   ## @GFP_USER
	.comm	___GFP_COMP,4,2                 ## @__GFP_COMP
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_BITS_PER_BYTE,4,2              ## @BITS_PER_BYTE
	.comm	_ipath_kpiobufs,4,2             ## @ipath_kpiobufs
	.comm	_IPATH_MIN_USER_PORT_BUFCNT,4,2 ## @IPATH_MIN_USER_PORT_BUFCNT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Allocating %d PIO bufs of %d for kernel leaves too few for %d user ports (%d each); using %u\n"

L_.str.1:                               ## @.str.1
	.asciz	"%u pbufs/port leaves some unused, add 1 buffer to ports <= %u\n"

	.comm	_VERBOSE,4,2                    ## @VERBOSE
L_.str.2:                               ## @.str.2
	.asciz	"%d PIO bufs for kernel out of %d total %u each for %u user ports\n"

L_.str.3:                               ## @.str.3
	.asciz	"Early initialization failure\n"

L_.str.4:                               ## @.str.4
	.asciz	"Catastrophic software error, SendPIOAvailAddr written as %lx, read back as %llx\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IPATH_KD_QP,8,3                ## @IPATH_KD_QP
	.comm	_INFINIPATH_HWE_MEMBISTFAILED,8,3 ## @INFINIPATH_HWE_MEMBISTFAILED
L_.str.5:                               ## @.str.5
	.asciz	"Failed to bringup IB link\n"

	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
L_.str.6:                               ## @.str.6
	.asciz	"Unable to allocate portdata for port 0, failing\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.7:                               ## @.str.7
	.asciz	"failed to allocate kernel port's rcvhdrq and/or egr bufs\n"

L_.str.8:                               ## @.str.8
	.asciz	"Couldn't allocate 0x%lx bytes for dummy hdrq\n"

	.comm	_ipath_get_faststats,4,2        ## @ipath_get_faststats
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_IPATH_HAS_SEND_DMA,4,2         ## @IPATH_HAS_SEND_DMA
	.comm	_ipath_hol_event,4,2            ## @ipath_hol_event
	.comm	_IPATH_HOL_UP,4,2               ## @IPATH_HOL_UP
	.comm	_IPATH_STATUS_CHIP_PRESENT,4,2  ## @IPATH_STATUS_CHIP_PRESENT
	.comm	_IPATH_STATUS_INITTED,4,2       ## @IPATH_STATUS_INITTED
	.comm	_verify_interrupt,4,2           ## @verify_interrupt
L_.str.9:                               ## @.str.9
	.asciz	"No interrupts enabled, couldn't setup interrupt address\n"

	.comm	_ipath_stats,8,3                ## @ipath_stats
L_.str.10:                              ## @.str.10
	.asciz	"Failed (%d) to initialize chip\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipath_init_chip                ; -- Begin function ipath_init_chip
	.p2align	2
_ipath_init_chip:                       ; @ipath_init_chip
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_USER@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
Lloh3:
	adrp	x8, ___GFP_COMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___GFP_COMP@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	bl	_init_housekeeping
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	w0, [x19, #276]
	ldr	w1, [x19, #272]
	bl	_max
	mov	x2, x0
	str	x0, [x19]
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #44]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldp	w8, w9, [x19, #8]
	add	w21, w9, w8
Lloh6:
	adrp	x22, _BITS_PER_BYTE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _BITS_PER_BYTE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	w1, w8, #2
	mov	x0, x21
	bl	_ALIGN
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	ldrsw	x9, [x22]
	ubfiz	x9, x9, #2, #61
	udiv	x8, x8, x9
	str	w8, [x19, #16]
	ldr	w8, [x19, #20]
	sub	w26, w8, #1
	cmp	w8, #0
	csel	w22, wzr, w26, eq
	mov	w8, #16
	mov	w9, #32
	cmp	w21, #144
	csel	w8, w9, w8, gt
Lloh8:
	adrp	x9, _ipath_kpiobufs@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ipath_kpiobufs@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x9]
	cbz	w23, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _IPATH_MIN_USER_PORT_BUFCNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IPATH_MIN_USER_PORT_BUFCNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	mul	w9, w8, w22
	add	w10, w9, w23
	cmp	w10, w21
	b.le	LBB0_5
; %bb.3:
	sub	w9, w21, w9
	cmp	w9, #1
	csinc	w27, w9, wzr, gt
	ldr	x0, [x19, #224]
	stp	x22, x8, [sp, #16]
	stp	x23, x21, [sp]
	str	x27, [sp, #32]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	x23, x27
	b	LBB0_5
LBB0_4:
	ldr	w9, [x19, #24]
	add	w23, w9, w8
LBB0_5:
	sub	w8, w21, w23
	str	w8, [x19, #28]
	cbz	w22, LBB0_7
; %bb.6:
	sdiv	w4, w8, w26
	b	LBB0_8
LBB0_7:
	mov	w4, #0
LBB0_8:
	mul	w9, w4, w22
	subs	w8, w8, w9
	stp	w4, w8, [x19, #32]
	b.eq	LBB0_10
; %bb.9:
	str	x8, [sp]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x4
	bl	_ipath_dbg
	ldr	w4, [x19, #32]
LBB0_10:
	str	xzr, [x19, #264]
	ldr	w8, [x19, #8]
	str	w8, [x19, #40]
Lloh18:
	adrp	x8, _VERBOSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VERBOSE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	mov	x5, x22
	bl	_ipath_cdbg
	ldr	x8, [x19, #48]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_15
; %bb.11:
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_ipath_dev_err
LBB0_13:
Lloh25:
	adrp	x0, l_.str.10@PAGE
Lloh26:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x22
	bl	_ipath_dbg
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_15:
	ldrsw	x2, [x19, #60]
	ldr	w8, [x19]
	sub	w8, w8, #1
	mul	w8, w8, w2
	str	w8, [x19, #56]
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #40]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #36]
	ldr	x2, [x19, #64]
	mov	x0, x19
	bl	_ipath_write_kreg
	cbz	w20, LBB0_23
LBB0_16:
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #32]
	ldr	x2, [x19, #72]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #32]
	mov	x0, x19
	bl	_ipath_read_kreg64
	ldr	x8, [x19, #72]
	cmp	x8, x0
	b.ne	LBB0_19
; %bb.17:
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #28]
Lloh27:
	adrp	x8, _IPATH_KD_QP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IPATH_KD_QP@GOTPAGEOFF]
Lloh29:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #16]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #20]
Lloh30:
	adrp	x22, _INFINIPATH_HWE_MEMBISTFAILED@GOTPAGE
Lloh31:
	ldr	x22, [x22, _INFINIPATH_HWE_MEMBISTFAILED@GOTPAGEOFF]
	ldr	x8, [x22]
	mvn	x2, x8
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #24]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	mov	x0, x19
	bl	_bringup_link
	cbz	x0, LBB0_24
; %bb.18:
	ldr	x0, [x19, #224]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_info
Lloh34:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_20
LBB0_19:
	stp	x8, x0, [sp]
Lloh36:
	adrp	x1, l_.str.4@PAGE
Lloh37:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
Lloh38:
	adrp	x8, _EINVAL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w22, w8
	cbnz	w22, LBB0_13
LBB0_21:
Lloh40:
	adrp	x8, _IPATH_STATUS_CHIP_PRESENT@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IPATH_STATUS_CHIP_PRESENT@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	x9, [x19, #136]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	ldr	x8, [x19, #152]
	mov	x0, x19
	blr	x8
	cbz	w0, LBB0_30
; %bb.22:
Lloh43:
	adrp	x1, l_.str.9@PAGE
Lloh44:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
	b	LBB0_33
LBB0_23:
	mov	x0, x19
	bl	_init_pioavailregs
	mov	x22, x0
	mov	x0, x19
	bl	_init_shadow_tids
	cbnz	w22, LBB0_13
	b	LBB0_16
LBB0_24:
	ldr	x8, [x19, #256]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #20]
	ldr	x8, [x22]
	mvn	x2, x8
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #16]
	ldr	x2, [x19, #80]
	mov	x0, x19
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #12]
	mov	x0, x19
	mov	x2, #-1
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #8]
	ldr	x8, [x19, #88]
	mvn	x2, x8
	mov	x0, x19
	bl	_ipath_write_kreg
	str	xzr, [x19, #88]
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_ipath_read_kreg64
	str	x0, [x19, #248]
	ldr	x8, [x19, #144]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_ipath_write_kreg
	ldr	x8, [x19, #240]
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #216]
	ldr	x22, [x8]
	cbz	w20, LBB0_27
; %bb.25:
	mov	x0, x19
	bl	_create_portdata0
	cbz	x0, LBB0_36
; %bb.26:
	mov	x23, x0
	mov	x0, x19
	mov	x1, x22
	bl	_ipath_free_pddata
	ldr	x8, [x19, #216]
	str	x23, [x8]
	mov	x22, x23
LBB0_27:
	mov	x0, x19
	mov	x1, x22
	bl	_ipath_create_rcvhdrq
	cbnz	w0, LBB0_29
; %bb.28:
	mov	x0, x19
	bl	_create_port0_egr
	cbz	w0, LBB0_37
LBB0_29:
	mov	x22, x0
Lloh45:
	adrp	x1, l_.str.7@PAGE
Lloh46:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_12
LBB0_30:
	ldr	x8, [x19, #144]
	ldr	w1, [x8, #4]
	mov	x0, x19
	mov	x2, #-1
	bl	_ipath_write_kreg
	ldr	x8, [x19, #144]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
Lloh47:
	adrp	x8, _IPATH_STATUS_INITTED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IPATH_STATUS_INITTED@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	ldr	x9, [x19, #136]
	ldr	w10, [x9]
	orr	w8, w10, w8
	str	w8, [x9]
	cbnz	w20, LBB0_32
; %bb.31:
	add	x0, x19, #112
	bl	_init_timer
Lloh50:
	adrp	x8, _verify_interrupt@GOTPAGE
Lloh51:
	ldr	x8, [x8, _verify_interrupt@GOTPAGEOFF]
Lloh52:
	ldr	w8, [x8]
	str	w8, [x19, #128]
	str	x19, [x19, #112]
LBB0_32:
Lloh53:
	adrp	x8, _jiffies@GOTPAGE
Lloh54:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
Lloh56:
	adrp	x9, _HZ@GOTPAGE
Lloh57:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh58:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	add	x8, x8, w9, sxtw
	add	x0, x19, #112
	str	x8, [x19, #120]
	bl	_add_timer
LBB0_33:
	ldrsw	x8, [x19, #20]
Lloh59:
	adrp	x9, _ipath_stats@GOTPAGE
Lloh60:
	ldr	x9, [x9, _ipath_stats@GOTPAGEOFF]
	ldr	x10, [x9]
	cmp	x10, x8
	b.ge	LBB0_35
; %bb.34:
	mov	w22, #0
	str	x8, [x9]
	b	LBB0_14
LBB0_35:
	mov	w22, #0
	b	LBB0_14
LBB0_36:
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ipath_dev_err
Lloh63:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh64:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_20
LBB0_37:
	mov	x0, x19
	mov	x1, x20
	bl	_enable_chip
	mov	x0, x19
	mov	w1, #0
	mov	x2, x21
	mov	w3, #1
	bl	_ipath_chg_pioavailkernel
	mov	x0, x19
	mov	w1, #1
	bl	_ipath_cancel_sends
	cbnz	w20, LBB0_40
; %bb.38:
	orr	w3, w25, w24
	ldp	x8, x0, [x19, #216]
	ldr	x8, [x8]
	ldr	w1, [x8]
	add	x2, x19, #96
	bl	_dma_alloc_coherent
	str	w0, [x19, #232]
	cbnz	w0, LBB0_40
; %bb.39:
	ldp	x8, x0, [x19, #216]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	x8, [sp]
Lloh65:
	adrp	x1, l_.str.8@PAGE
Lloh66:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_info
	str	xzr, [x19, #96]
LBB0_40:
	ldr	x8, [x19, #144]
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ipath_write_kreg
	ldr	w8, [x19, #104]
	cbnz	w8, LBB0_42
; %bb.41:
	add	x21, x19, #192
	mov	x0, x21
	bl	_init_timer
Lloh67:
	adrp	x8, _ipath_get_faststats@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ipath_get_faststats@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
	str	w8, [x19, #208]
Lloh70:
	adrp	x8, _jiffies@GOTPAGE
Lloh71:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh72:
	adrp	x9, _HZ@GOTPAGE
Lloh73:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh74:
	ldr	x8, [x8]
Lloh75:
	ldrsw	x9, [x9]
	add	x9, x9, x9, lsl #2
	add	x8, x8, x9
	stp	x19, x8, [x19, #192]
	mov	x0, x21
	bl	_add_timer
	mov	w8, #1
	str	w8, [x19, #104]
LBB0_42:
	ldr	w8, [x19, #108]
Lloh76:
	adrp	x9, _IPATH_HAS_SEND_DMA@GOTPAGE
Lloh77:
	ldr	x9, [x9, _IPATH_HAS_SEND_DMA@GOTPAGEOFF]
Lloh78:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_44
; %bb.43:
	mov	x0, x19
	bl	_setup_sdma
	mov	x22, x0
	b	LBB0_45
LBB0_44:
	mov	w22, #0
LBB0_45:
	add	x0, x19, #168
	bl	_init_timer
Lloh79:
	adrp	x8, _ipath_hol_event@GOTPAGE
Lloh80:
	ldr	x8, [x8, _ipath_hol_event@GOTPAGEOFF]
Lloh81:
	ldr	w8, [x8]
	str	w8, [x19, #184]
	str	x19, [x19, #168]
Lloh82:
	adrp	x8, _IPATH_HOL_UP@GOTPAGE
Lloh83:
	ldr	x8, [x8, _IPATH_HOL_UP@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	str	w8, [x19, #160]
	cbnz	w22, LBB0_13
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh72, Lloh73, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh74
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_USER,4,2                   ; @GFP_USER
	.comm	___GFP_COMP,4,2                 ; @__GFP_COMP
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_BITS_PER_BYTE,4,2              ; @BITS_PER_BYTE
	.comm	_ipath_kpiobufs,4,2             ; @ipath_kpiobufs
	.comm	_IPATH_MIN_USER_PORT_BUFCNT,4,2 ; @IPATH_MIN_USER_PORT_BUFCNT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Allocating %d PIO bufs of %d for kernel leaves too few for %d user ports (%d each); using %u\n"

l_.str.1:                               ; @.str.1
	.asciz	"%u pbufs/port leaves some unused, add 1 buffer to ports <= %u\n"

	.comm	_VERBOSE,4,2                    ; @VERBOSE
l_.str.2:                               ; @.str.2
	.asciz	"%d PIO bufs for kernel out of %d total %u each for %u user ports\n"

l_.str.3:                               ; @.str.3
	.asciz	"Early initialization failure\n"

l_.str.4:                               ; @.str.4
	.asciz	"Catastrophic software error, SendPIOAvailAddr written as %lx, read back as %llx\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IPATH_KD_QP,8,3                ; @IPATH_KD_QP
	.comm	_INFINIPATH_HWE_MEMBISTFAILED,8,3 ; @INFINIPATH_HWE_MEMBISTFAILED
l_.str.5:                               ; @.str.5
	.asciz	"Failed to bringup IB link\n"

	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
l_.str.6:                               ; @.str.6
	.asciz	"Unable to allocate portdata for port 0, failing\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.7:                               ; @.str.7
	.asciz	"failed to allocate kernel port's rcvhdrq and/or egr bufs\n"

l_.str.8:                               ; @.str.8
	.asciz	"Couldn't allocate 0x%lx bytes for dummy hdrq\n"

	.comm	_ipath_get_faststats,4,2        ; @ipath_get_faststats
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_IPATH_HAS_SEND_DMA,4,2         ; @IPATH_HAS_SEND_DMA
	.comm	_ipath_hol_event,4,2            ; @ipath_hol_event
	.comm	_IPATH_HOL_UP,4,2               ; @IPATH_HOL_UP
	.comm	_IPATH_STATUS_CHIP_PRESENT,4,2  ; @IPATH_STATUS_CHIP_PRESENT
	.comm	_IPATH_STATUS_INITTED,4,2       ; @IPATH_STATUS_INITTED
	.comm	_verify_interrupt,4,2           ; @verify_interrupt
l_.str.9:                               ; @.str.9
	.asciz	"No interrupts enabled, couldn't setup interrupt address\n"

	.comm	_ipath_stats,8,3                ; @ipath_stats
l_.str.10:                              ; @.str.10
	.asciz	"Failed (%d) to initialize chip\n"

.subsections_via_symbols
