	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function subn_set_portinfo
_subn_set_portinfo:                     ## @subn_set_portinfo
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %r12
	movl	$128, %ebx
	andl	(%r12), %ebx
	movl	8(%rdi), %edi
	callq	_be32_to_cpu
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpl	(%r15), %eax
	jle	LBB0_2
## %bb.73:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r13)
	jmp	LBB0_74
LBB0_2:
	cmpl	%r14d, %eax
	jne	LBB0_74
LBB0_3:
	movl	%ebx, -56(%rbp)                 ## 4-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_dd_from_ibdev
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	8(%rax), %r13
	leal	-1(%r14), %eax
	cltq
	movq	%r15, %rcx
	imulq	$120, %rax, %r15
	leaq	(%r15,%r13), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rcx, -72(%rbp)
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movl	%r14d, -76(%rbp)
	movl	80(%r12), %eax
	movl	%eax, 116(%r13,%r15)
	movl	76(%r12), %eax
	movl	%eax, 112(%r13,%r15)
	movl	72(%r12), %edi
	callq	_be16_to_cpu
	movq	%rax, 104(%r13,%r15)
	movl	68(%r12), %edi
	callq	_be16_to_cpu
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %rbx
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %rbx
	jge	LBB0_5
## %bb.6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rbx, (%rdi)
	jne	LBB0_8
## %bb.7:
	movl	8(%r13,%r15), %eax
	movl	4(%r12), %ecx
	andl	$7, %ecx
	cmpl	%ecx, %eax
	jne	LBB0_9
	jmp	LBB0_12
LBB0_5:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	jmp	LBB0_12
LBB0_8:
	movq	__QIB_EVENT_LID_CHANGE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_qib_set_uevent_bits
	movl	8(%r13,%r15), %eax
	movl	4(%r12), %ecx
	andl	$7, %ecx
LBB0_9:
	cmpl	%ecx, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movq	__QIB_EVENT_LMC_CHANGE_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_qib_set_uevent_bits
LBB0_11:
	movl	4(%r12), %edx
	andl	$7, %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_qib_set_lid
	movq	_IB_EVENT_LID_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ib_dispatch_event
LBB0_12:
	movl	64(%r12), %edi
	callq	_be16_to_cpu
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	%rax, %r14
	movl	8(%r12), %ebx
	movq	_IB_MULTICAST_LID_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_be16_to_cpu
	cmpq	%rax, %r14
	jge	LBB0_14
## %bb.15:
	andl	$15, %ebx
	cmpq	40(%r13,%r15), %r14
	jne	LBB0_17
## %bb.16:
	cmpl	48(%r13,%r15), %ebx
	je	LBB0_27
LBB0_17:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	leaq	(%r15,%r13), %rbx
	addq	$40, %rbx
	leaq	(%r15,%r13), %rdi
	addq	$88, %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	96(%r13,%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.18:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	cmpq	(%rbx), %r14
	je	LBB0_20
## %bb.19:
	movq	%r14, %rsi
	callq	_rdma_ah_set_dlid
LBB0_20:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	48(%r13,%r15), %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	leaq	(%r15,%r13), %rax
	addq	$96, %rax
	movq	(%rax), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_rdma_ah_set_sl
LBB0_22:
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	cmpq	(%rbx), %r14
	je	LBB0_24
## %bb.23:
	movq	%r14, (%rbx)
LBB0_24:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	cmpl	48(%r13,%r15), %ecx
	je	LBB0_26
## %bb.25:
	leaq	(%r15,%r13), %rax
	addq	$48, %rax
	movl	%ecx, (%rax)
LBB0_26:
	movq	_IB_EVENT_SM_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ib_dispatch_event
	jmp	LBB0_27
LBB0_14:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_27:
	movl	12(%r12), %esi
	testl	%esi, %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_35
## %bb.28:
	cmpl	$255, %esi
	jne	LBB0_30
## %bb.29:
	movl	12(%r13,%r15), %esi
LBB0_34:
	movq	%r14, %rdi
	callq	_set_link_width_enabled
	jmp	LBB0_35
LBB0_30:
	cmpl	$15, %esi
	jg	LBB0_32
## %bb.31:
	movl	12(%r13,%r15), %eax
	notl	%eax
	testl	%eax, %esi
	je	LBB0_33
LBB0_32:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_35:
	movl	16(%r12), %esi
	andl	$15, %esi
	je	LBB0_43
## %bb.36:
	cmpl	$15, %esi
	jne	LBB0_38
## %bb.37:
	movl	20(%r13,%r15), %esi
LBB0_42:
	movq	%r14, %rdi
	callq	_set_link_speed_enabled
	jmp	LBB0_43
LBB0_38:
	cmpl	$7, %esi
	ja	LBB0_40
## %bb.39:
	movl	20(%r13,%r15), %eax
	notl	%eax
	testl	%eax, %esi
	je	LBB0_41
LBB0_40:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_43:
	movl	20(%r12), %eax
	andl	$15, %eax
	je	LBB0_50
## %bb.44:
	cmpl	$2, %eax
	je	LBB0_48
## %bb.45:
	cmpl	$1, %eax
	jne	LBB0_49
## %bb.46:
	movq	_QIB_IB_CFG_LINKDEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_LINKINITCMD_SLEEP@GOTPCREL(%rip), %rax
	jmp	LBB0_47
LBB0_48:
	movq	_QIB_IB_CFG_LINKDEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IB_LINKINITCMD_POLL@GOTPCREL(%rip), %rax
LBB0_47:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	*(%rbx)
	jmp	LBB0_50
LBB0_49:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_50:
	movl	4(%r12), %eax
	sarl	$6, %eax
	movl	%eax, 52(%r13,%r15)
	movl	24(%r12), %edx
	movl	%edx, 56(%r13,%r15)
	movq	_QIB_IB_CFG_VL_HIGH_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*(%rbx)
	movl	8(%r12), %edi
	shrl	$4, %edi
	andl	$15, %edi
	callq	_ib_mtu_enum_to_int
	cmpl	$-1, %eax
	je	LBB0_51
## %bb.52:
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_qib_set_mtu
	jmp	LBB0_53
LBB0_51:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_53:
	movl	28(%r12), %edx
	shrl	$4, %edx
	andl	$15, %edx
	je	LBB0_57
## %bb.54:
	cmpl	28(%r13,%r15), %edx
	jle	LBB0_56
## %bb.55:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_57:
	cmpq	$0, 32(%r12)
	je	LBB0_58
LBB0_59:
	cmpq	$0, 40(%r12)
	je	LBB0_60
LBB0_61:
	cmpq	$0, 48(%r12)
	je	LBB0_62
LBB0_63:
	movl	56(%r12), %ebx
	movl	%ebx, %esi
	shrl	$4, %esi
	andl	$15, %esi
	movq	%r14, %rdi
	callq	_set_phyerrthreshold
	testq	%rax, %rax
	je	LBB0_65
## %bb.64:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_65:
	andl	$15, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_overrunthreshold
	testq	%rax, %rax
	je	LBB0_67
## %bb.66:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
LBB0_67:
	movl	(%r12), %eax
	movl	%eax, %ecx
	andl	$31, %ecx
	movl	%ecx, 60(%r13,%r15)
	testb	$-16, 20(%r12)
	movq	-120(%rbp), %r14                ## 8-byte Reload
	je	LBB0_68
## %bb.69:
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rdx
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, (%r13)
	jmp	LBB0_70
LBB0_68:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ecx
LBB0_70:
	movl	-56(%rbp), %r15d                ## 4-byte Reload
	movq	_IB_SMP_INVALID_FIELD@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r13)
	testl	%r15d, %r15d
	je	LBB0_72
## %bb.71:
	movq	_IB_EVENT_CLIENT_REREGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	leaq	-80(%rbp), %rdi
	callq	_ib_dispatch_event
	movl	(%r12), %eax
LBB0_72:
	orl	%r15d, %eax
	movl	%eax, (%r12)
	movq	-112(%rbp), %r15                ## 8-byte Reload
LBB0_74:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_subn_get_portinfo
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	movq	_QIB_IB_CFG_OP_VLS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	*(%rbx)
	cmpq	$0, 32(%r12)
	jne	LBB0_59
LBB0_58:
	movq	$0, 80(%r13,%r15)
	cmpq	$0, 40(%r12)
	jne	LBB0_61
LBB0_60:
	movq	$0, 72(%r13,%r15)
	cmpq	$0, 48(%r12)
	jne	LBB0_63
LBB0_62:
	movq	$0, 64(%r13,%r15)
	jmp	LBB0_63
LBB0_33:
	cmpl	16(%r13,%r15), %esi
	jne	LBB0_34
	jmp	LBB0_35
LBB0_41:
	cmpl	24(%r13,%r15), %esi
	jne	LBB0_42
	jmp	LBB0_43
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ## @IB_MULTICAST_LID_BASE
	.comm	_IB_SMP_INVALID_FIELD,4,2       ## @IB_SMP_INVALID_FIELD
	.comm	__QIB_EVENT_LID_CHANGE_BIT,4,2  ## @_QIB_EVENT_LID_CHANGE_BIT
	.comm	__QIB_EVENT_LMC_CHANGE_BIT,4,2  ## @_QIB_EVENT_LMC_CHANGE_BIT
	.comm	_IB_EVENT_LID_CHANGE,4,2        ## @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_SM_CHANGE,4,2         ## @IB_EVENT_SM_CHANGE
	.comm	_QIB_IB_CFG_LINKDEFAULT,4,2     ## @QIB_IB_CFG_LINKDEFAULT
	.comm	_IB_LINKINITCMD_SLEEP,4,2       ## @IB_LINKINITCMD_SLEEP
	.comm	_IB_LINKINITCMD_POLL,4,2        ## @IB_LINKINITCMD_POLL
	.comm	_QIB_IB_CFG_VL_HIGH_LIMIT,4,2   ## @QIB_IB_CFG_VL_HIGH_LIMIT
	.comm	_QIB_IB_CFG_OP_VLS,4,2          ## @QIB_IB_CFG_OP_VLS
	.comm	_QIB_IB_LINKDOWN_ONLY,8,3       ## @QIB_IB_LINKDOWN_ONLY
	.comm	_QIB_IB_LINKDOWN_SLEEP,8,3      ## @QIB_IB_LINKDOWN_SLEEP
	.comm	_QIB_IB_LINKDOWN,8,3            ## @QIB_IB_LINKDOWN
	.comm	_QIB_IB_LINKDOWN_DISABLE,8,3    ## @QIB_IB_LINKDOWN_DISABLE
	.comm	_QIBL_LINKV,4,2                 ## @QIBL_LINKV
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ## @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ## @IB_MAD_RESULT_CONSUMED
	.comm	_QIB_IB_LINKARM,8,3             ## @QIB_IB_LINKARM
	.comm	_QIB_IB_LINKACTIVE,8,3          ## @QIB_IB_LINKACTIVE
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ## @IB_EVENT_CLIENT_REREGISTER
	.no_dead_strip	_subn_set_portinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function subn_set_portinfo
_subn_set_portinfo:                     ; @subn_set_portinfo
	.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	x26, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x27, [x0, #16]
	ldr	w19, [x27]
	ldr	w0, [x0, #8]
	bl	_be32_to_cpu
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_67
LBB0_3:
	cmp	w0, w26
	b.ne	LBB0_67
LBB0_4:
	mov	x0, x20
	bl	_dd_from_ibdev
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x28, [x0, #8]
	sxtw	x8, w26
	sub	x23, x8, #1
	mov	w8, #120
	madd	x22, x23, x8, x28
	str	x20, [sp, #40]
	str	w26, [sp, #36]
	ldur	d0, [x27, #76]
	str	d0, [x22, #112]
	ldr	w0, [x27, #72]
	bl	_be16_to_cpu
	str	x0, [x22, #104]
	ldr	w0, [x27, #68]
	bl	_be16_to_cpu
Lloh3:
	adrp	x25, _IB_MULTICAST_LID_BASE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _IB_MULTICAST_LID_BASE@GOTPAGEOFF]
	cbz	x0, LBB0_11
; %bb.5:
	mov	x24, x0
	ldr	w0, [x25]
	bl	_be16_to_cpu
	cmp	x24, x0
	b.ge	LBB0_11
; %bb.6:
	ldr	x8, [x22]
	cmp	x8, x24
	b.ne	LBB0_72
; %bb.7:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #8]
	ldr	w9, [x27, #4]
	and	w9, w9, #0x7
	cmp	w8, w9
	b.eq	LBB0_12
; %bb.8:
	cmp	w8, w9
	b.eq	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, __QIB_EVENT_LMC_CHANGE_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, __QIB_EVENT_LMC_CHANGE_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_qib_set_uevent_bits
LBB0_10:
	ldr	w8, [x27, #4]
	and	w2, w8, #0x7
	mov	x0, x22
	mov	x1, x24
	bl	_qib_set_lid
Lloh8:
	adrp	x8, _IB_EVENT_LID_CHANGE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_EVENT_LID_CHANGE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x0, sp, #32
	bl	_ib_dispatch_event
	b	LBB0_12
LBB0_11:
Lloh11:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_12:
	str	w19, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w0, [x27, #64]
	bl	_be16_to_cpu
	cbz	x0, LBB0_26
; %bb.13:
	mov	x24, x0
	ldr	w19, [x27, #8]
	ldr	w0, [x25]
	bl	_be16_to_cpu
	cmp	x24, x0
	b.ge	LBB0_26
; %bb.14:
	and	w9, w19, #0xf
	mov	w8, #120
	madd	x25, x23, x8, x28
	ldr	x8, [x25, #40]!
	cmp	x24, x8
	b.ne	LBB0_16
; %bb.15:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #48]
	cmp	w9, w8
	b.eq	LBB0_27
LBB0_16:
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	str	x26, [sp]                       ; 8-byte Folded Spill
	mov	w8, #120
	madd	x19, x23, x8, x28
	add	x26, x19, #88
	mov	x0, x26
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #96]!
	cbz	x0, LBB0_21
; %bb.17:
	ldr	x8, [x25]
	cmp	x24, x8
	b.eq	LBB0_19
; %bb.18:
	mov	x1, x24
	bl	_rdma_ah_set_dlid
LBB0_19:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #48]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, w8
	b.eq	LBB0_21
; %bb.20:
	ldr	x0, [x19]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_rdma_ah_set_sl
LBB0_21:
	mov	x0, x26
	bl	_spin_unlock_irqrestore
	ldr	x8, [x25]
	cmp	x24, x8
	b.eq	LBB0_23
; %bb.22:
	str	x24, [x25]
LBB0_23:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w9, [x8, #48]!
	ldr	w10, [sp, #12]                  ; 4-byte Folded Reload
	cmp	w10, w9
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	b.eq	LBB0_25
; %bb.24:
	str	w10, [x8]
LBB0_25:
Lloh14:
	adrp	x8, _IB_EVENT_SM_CHANGE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_EVENT_SM_CHANGE@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x0, sp, #32
	bl	_ib_dispatch_event
	b	LBB0_27
LBB0_26:
Lloh17:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_27:
	ldr	w1, [x27, #12]
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
	cbz	w1, LBB0_34
; %bb.28:
	cmp	w1, #255
	b.ne	LBB0_31
; %bb.29:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w1, [x8, #12]
LBB0_30:
	mov	x0, x22
	bl	_set_link_width_enabled
	b	LBB0_34
LBB0_31:
	cmp	w1, #15
	b.gt	LBB0_33
; %bb.32:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #12]
	bics	wzr, w1, w8
	b.eq	LBB0_73
LBB0_33:
Lloh20:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_34:
	ldr	w8, [x27, #16]
	ands	w1, w8, #0xf
	b.eq	LBB0_41
; %bb.35:
	cmp	w1, #15
	b.ne	LBB0_38
; %bb.36:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w1, [x8, #20]
LBB0_37:
	mov	x0, x22
	bl	_set_link_speed_enabled
	b	LBB0_41
LBB0_38:
	cmp	w1, #7
	b.hi	LBB0_40
; %bb.39:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #20]
	bics	wzr, w1, w8
	b.eq	LBB0_74
LBB0_40:
Lloh23:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_41:
	ldr	w8, [x27, #20]
	ands	w8, w8, #0xf
	b.eq	LBB0_48
; %bb.42:
	cmp	w8, #2
	b.eq	LBB0_45
; %bb.43:
	cmp	w8, #1
	b.ne	LBB0_47
; %bb.44:
	ldr	x8, [x19]
Lloh26:
	adrp	x9, _QIB_IB_CFG_LINKDEFAULT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _QIB_IB_CFG_LINKDEFAULT@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
Lloh29:
	adrp	x9, _IB_LINKINITCMD_SLEEP@GOTPAGE
Lloh30:
	ldr	x9, [x9, _IB_LINKINITCMD_SLEEP@GOTPAGEOFF]
	b	LBB0_46
LBB0_45:
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _QIB_IB_CFG_LINKDEFAULT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _QIB_IB_CFG_LINKDEFAULT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
Lloh34:
	adrp	x9, _IB_LINKINITCMD_POLL@GOTPAGE
Lloh35:
	ldr	x9, [x9, _IB_LINKINITCMD_POLL@GOTPAGEOFF]
LBB0_46:
	ldr	w2, [x9]
	mov	x0, x22
	blr	x8
	b	LBB0_48
LBB0_47:
Lloh36:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_48:
	ldr	w8, [x27, #4]
	asr	w8, w8, #6
	mov	w9, #120
	madd	x9, x23, x9, x28
	str	w8, [x9, #52]
	ldr	w2, [x27, #24]
	str	w2, [x9, #56]
	ldr	x8, [x19]
Lloh39:
	adrp	x9, _QIB_IB_CFG_VL_HIGH_LIMIT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _QIB_IB_CFG_VL_HIGH_LIMIT@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	ldr	w8, [x27, #8]
	ubfx	w0, w8, #4, #4
	bl	_ib_mtu_enum_to_int
	cmn	w0, #1
	b.eq	LBB0_50
; %bb.49:
	mov	x1, x0
	mov	x0, x22
	bl	_qib_set_mtu
	b	LBB0_51
LBB0_50:
Lloh42:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh43:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_51:
	ldr	w8, [x27, #28]
	ubfx	w2, w8, #4, #4
	cbz	w2, LBB0_54
; %bb.52:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #28]
	cmp	w2, w8
	b.le	LBB0_68
; %bb.53:
Lloh45:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_54:
	ldr	x8, [x27, #32]
	cbz	x8, LBB0_69
LBB0_55:
	ldr	x8, [x27, #40]
	cbz	x8, LBB0_70
LBB0_56:
	ldr	x8, [x27, #48]
	cbz	x8, LBB0_71
LBB0_57:
	ldr	w19, [x27, #56]
	ubfx	w1, w19, #4, #4
	mov	x0, x22
	bl	_set_phyerrthreshold
	cbz	x0, LBB0_59
; %bb.58:
Lloh48:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_59:
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	and	w24, w8, #0x80
	and	w1, w19, #0xf
	mov	x0, x22
	bl	_set_overrunthreshold
	cbz	x0, LBB0_61
; %bb.60:
Lloh51:
	adrp	x8, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
LBB0_61:
	ldr	w8, [x27]
	and	w9, w8, #0x1f
	mov	w10, #120
	madd	x10, x23, x10, x28
	str	w9, [x10, #60]
	ldrb	w9, [x27, #20]
	tst	w9, #0xf0
	b.eq	LBB0_63
; %bb.62:
Lloh54:
	adrp	x9, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh55:
	ldr	x9, [x9, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	ldr	w10, [x21]
	orr	w9, w10, w9
	str	w9, [x21]
	b	LBB0_64
LBB0_63:
	ldr	w9, [x21]
LBB0_64:
Lloh57:
	adrp	x10, _IB_SMP_INVALID_FIELD@GOTPAGE
Lloh58:
	ldr	x10, [x10, _IB_SMP_INVALID_FIELD@GOTPAGEOFF]
Lloh59:
	ldr	w10, [x10]
	orr	w9, w9, w10
	str	w9, [x21]
	cbz	w24, LBB0_66
; %bb.65:
Lloh60:
	adrp	x8, _IB_EVENT_CLIENT_REREGISTER@GOTPAGE
Lloh61:
	ldr	x8, [x8, _IB_EVENT_CLIENT_REREGISTER@GOTPAGEOFF]
Lloh62:
	ldr	w8, [x8]
	str	w8, [sp, #32]
	add	x0, sp, #32
	bl	_ib_dispatch_event
	ldr	w8, [x27]
LBB0_66:
	orr	w8, w8, w24
	str	w8, [x27]
LBB0_67:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	bl	_subn_get_portinfo
	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_68:
	ldr	x8, [x19]
Lloh63:
	adrp	x9, _QIB_IB_CFG_OP_VLS@GOTPAGE
Lloh64:
	ldr	x9, [x9, _QIB_IB_CFG_OP_VLS@GOTPAGEOFF]
Lloh65:
	ldr	w1, [x9]
	mov	x0, x22
	blr	x8
	ldr	x8, [x27, #32]
	cbnz	x8, LBB0_55
LBB0_69:
	mov	w8, #120
	madd	x8, x23, x8, x28
	str	xzr, [x8, #80]
	ldr	x8, [x27, #40]
	cbnz	x8, LBB0_56
LBB0_70:
	mov	w8, #120
	madd	x8, x23, x8, x28
	str	xzr, [x8, #72]
	ldr	x8, [x27, #48]
	cbnz	x8, LBB0_57
LBB0_71:
	mov	w8, #120
	madd	x8, x23, x8, x28
	str	xzr, [x8, #64]
	b	LBB0_57
LBB0_72:
Lloh66:
	adrp	x8, __QIB_EVENT_LID_CHANGE_BIT@GOTPAGE
Lloh67:
	ldr	x8, [x8, __QIB_EVENT_LID_CHANGE_BIT@GOTPAGEOFF]
Lloh68:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_qib_set_uevent_bits
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #8]
	ldr	w9, [x27, #4]
	and	w9, w9, #0x7
	cmp	w8, w9
	b.ne	LBB0_9
	b	LBB0_10
LBB0_73:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #16]
	cmp	w1, w8
	b.ne	LBB0_30
	b	LBB0_34
LBB0_74:
	mov	w8, #120
	madd	x8, x23, x8, x28
	ldr	w8, [x8, #24]
	cmp	w1, w8
	b.ne	LBB0_37
	b	LBB0_41
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MULTICAST_LID_BASE,4,2      ; @IB_MULTICAST_LID_BASE
	.comm	_IB_SMP_INVALID_FIELD,4,2       ; @IB_SMP_INVALID_FIELD
	.comm	__QIB_EVENT_LID_CHANGE_BIT,4,2  ; @_QIB_EVENT_LID_CHANGE_BIT
	.comm	__QIB_EVENT_LMC_CHANGE_BIT,4,2  ; @_QIB_EVENT_LMC_CHANGE_BIT
	.comm	_IB_EVENT_LID_CHANGE,4,2        ; @IB_EVENT_LID_CHANGE
	.comm	_IB_EVENT_SM_CHANGE,4,2         ; @IB_EVENT_SM_CHANGE
	.comm	_QIB_IB_CFG_LINKDEFAULT,4,2     ; @QIB_IB_CFG_LINKDEFAULT
	.comm	_IB_LINKINITCMD_SLEEP,4,2       ; @IB_LINKINITCMD_SLEEP
	.comm	_IB_LINKINITCMD_POLL,4,2        ; @IB_LINKINITCMD_POLL
	.comm	_QIB_IB_CFG_VL_HIGH_LIMIT,4,2   ; @QIB_IB_CFG_VL_HIGH_LIMIT
	.comm	_QIB_IB_CFG_OP_VLS,4,2          ; @QIB_IB_CFG_OP_VLS
	.comm	_QIB_IB_LINKDOWN_ONLY,8,3       ; @QIB_IB_LINKDOWN_ONLY
	.comm	_QIB_IB_LINKDOWN_SLEEP,8,3      ; @QIB_IB_LINKDOWN_SLEEP
	.comm	_QIB_IB_LINKDOWN,8,3            ; @QIB_IB_LINKDOWN
	.comm	_QIB_IB_LINKDOWN_DISABLE,8,3    ; @QIB_IB_LINKDOWN_DISABLE
	.comm	_QIBL_LINKV,4,2                 ; @QIBL_LINKV
	.comm	_IB_MAD_RESULT_SUCCESS,4,2      ; @IB_MAD_RESULT_SUCCESS
	.comm	_IB_MAD_RESULT_CONSUMED,4,2     ; @IB_MAD_RESULT_CONSUMED
	.comm	_QIB_IB_LINKARM,8,3             ; @QIB_IB_LINKARM
	.comm	_QIB_IB_LINKACTIVE,8,3          ; @QIB_IB_LINKACTIVE
	.comm	_IB_EVENT_CLIENT_REREGISTER,4,2 ; @IB_EVENT_CLIENT_REREGISTER
	.no_dead_strip	_subn_set_portinfo
.subsections_via_symbols
