	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_register_mad_agent          ## -- Begin function ib_register_mad_agent
	.p2align	4, 0x90
_ib_register_mad_agent:                 ## @ib_register_mad_agent
	.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
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	24(%rbp), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	16(%rbp), %r13
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	movl	%r15d, %edi
	callq	_get_spl_qp_index
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.1:
	movl	%eax, %r12d
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	movq	_IB_MGMT_RMPP_VERSION@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_5
LBB0_3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_4:
	movq	%rbx, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.6:
	testq	%r13, %r13
	je	LBB0_3
## %bb.7:
	movq	_MAX_MGMT_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%rbx)
	jae	LBB0_3
## %bb.8:
	movq	8(%rbx), %rdi
	movq	_MAX_MGMT_CLASS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_21
## %bb.9:
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.10:
	callq	_is_vendor_class
	testq	%rax, %rax
	je	LBB0_22
## %bb.11:
	movl	152(%rbx), %edi
	callq	_is_vendor_oui
	testl	%eax, %eax
	jne	LBB0_22
	jmp	LBB0_3
LBB0_13:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_3
LBB0_14:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	callq	_ib_get_mad_port
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:
	movq	16(%rax), %rcx
	movslq	%r12d, %r15
	cmpq	$0, (%rcx,%r15,8)
	je	LBB0_31
## %bb.16:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$160, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_33
## %bb.17:
	movq	%rax, %r12
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %edi
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ib_get_dma_mr
	movl	%eax, 16(%r12)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_37
## %bb.18:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %r12
	jmp	LBB0_55
LBB0_21:
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_3
LBB0_22:
	movq	8(%rbx), %rdi
	callq	_ib_is_mad_class_rmpp
	testq	%r14, %r14
	je	LBB0_28
## %bb.23:
	testl	%eax, %eax
	je	LBB0_3
LBB0_28:
	movq	_IB_QPT_SMI@GOTPCREL(%rip), %rcx
	movq	8(%rbx), %rax
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	movq	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%al
	orb	%dl, %al
	cmpl	%r15d, (%rcx)
	jne	LBB0_35
## %bb.29:
	testb	%al, %al
	je	LBB0_3
	jmp	LBB0_14
LBB0_26:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_31:
	movq	_EPROTONOSUPPORT@GOTPCREL(%rip), %rax
	jmp	LBB0_34
LBB0_33:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_34:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_35:
	testb	%al, %al
	jne	LBB0_3
	jmp	LBB0_14
LBB0_37:
	movq	%rbx, %rcx
	leaq	16(%r12), %rbx
	testq	%rcx, %rcx
	je	LBB0_40
## %bb.38:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rcx, %r12
	movq	%rcx, %rdi
	movl	$160, %esi
	callq	_kmemdup
	testq	%rax, %rax
	jne	LBB0_41
## %bb.39:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %r12
	jmp	LBB0_54
LBB0_40:
	xorl	%eax, %eax
LBB0_41:
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rsi), %rdx
	leaq	(%rdx,%r15,8), %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%rcx, 144(%r12)
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%rax, 136(%r12)
	movq	%r14, 80(%r12)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%r12)
	movq	%r13, 64(%r12)
	movq	%rsi, %r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 56(%r12)
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rax, 48(%r12)
	movq	(%rdx,%r15,8), %rax
	movq	%rax, 40(%r12)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	leaq	128(%r12), %rdi
	callq	_spin_lock_init
	leaq	124(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	120(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	116(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	112(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	108(%r12), %rdi
	movq	_timeout_sends@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	104(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	100(%r12), %rdi
	movq	_local_completions@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	96(%r12), %rdi
	movl	$1, %esi
	callq	_atomic_set
	leaq	92(%r12), %rdi
	callq	_init_completion
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_ib_mad_client_id@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_56
## %bb.42:
	movq	%rax, %r15
	movq	8(%rax), %rdi
	callq	_convert_mgmt_class
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_is_vendor_class
	movq	8(%r13), %rcx
	movq	(%r15), %rdx
	shlq	$4, %rdx
	testq	%rax, %rax
	je	LBB0_47
## %bb.43:
	movq	(%rcx,%rdx), %r15
	testq	%r15, %r15
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_46
## %bb.44:
	movq	%r14, %rdi
	callq	_vendor_class_index
	movq	(%r15), %rcx
	movq	(%rcx,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_46
## %bb.45:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_is_vendor_method_in_use
	testq	%rax, %rax
	jne	LBB0_53
LBB0_46:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_add_oui_reg_req
	jmp	LBB0_51
LBB0_47:
	movq	8(%rcx,%rdx), %rax
	testq	%rax, %rax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_50
## %bb.48:
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movq	%rax, -120(%rbp)
	testq	%rax, %rax
	je	LBB0_50
## %bb.49:
	leaq	-120(%rbp), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_method_in_use
	testq	%rax, %rax
	jne	LBB0_53
LBB0_50:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_add_nonoui_reg_req
LBB0_51:
	testl	%eax, %eax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_56
## %bb.52:
	movl	%eax, %edi
	callq	_ERR_PTR
	movq	%rax, %r12
LBB0_53:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_kfree
LBB0_54:
	movl	(%rbx), %edi
	callq	_ib_dereg_mr
LBB0_55:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	%r12, %rbx
	jmp	LBB0_4
LBB0_56:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	addq	$88, %rdi
	movq	%r13, %rsi
	addq	$4, %rsi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IB_MGMT_RMPP_VERSION,8,3       ## @IB_MGMT_RMPP_VERSION
	.comm	_MAX_MGMT_VERSION,8,3           ## @MAX_MGMT_VERSION
	.comm	_MAX_MGMT_CLASS,8,3             ## @MAX_MGMT_CLASS
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ## @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_QPT_SMI,4,2                 ## @IB_QPT_SMI
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EPROTONOSUPPORT,4,2            ## @EPROTONOSUPPORT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.comm	_timeout_sends,4,2              ## @timeout_sends
	.comm	_local_completions,4,2          ## @local_completions
	.comm	_ib_mad_client_id,8,3           ## @ib_mad_client_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ib_register_mad_agent          ; -- Begin function ib_register_mad_agent
	.p2align	2
_ib_register_mad_agent:                 ; @ib_register_mad_agent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x25, x7
	mov	x28, x6
	mov	x27, x5
	mov	x24, x4
	mov	x20, x3
	mov	x23, x2
	mov	x26, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	mov	x0, x23
	bl	_get_spl_qp_index
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	mov	x22, x0
	cbz	x24, LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _IB_MGMT_RMPP_VERSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MGMT_RMPP_VERSION@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x24
	b.eq	LBB0_5
LBB0_3:
	mov	x22, x19
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_5:
	cbz	x20, LBB0_12
; %bb.6:
	cbz	x28, LBB0_3
; %bb.7:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _MAX_MGMT_VERSION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MAX_MGMT_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_3
; %bb.8:
	ldr	x0, [x20, #8]
Lloh9:
	adrp	x8, _MAX_MGMT_CLASS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_MGMT_CLASS@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_18
; %bb.9:
	cbz	x0, LBB0_3
; %bb.10:
	bl	_is_vendor_class
	cbz	x0, LBB0_19
; %bb.11:
	ldr	w0, [x20, #152]
	bl	_is_vendor_oui
	cbnz	w0, LBB0_19
	b	LBB0_3
LBB0_12:
	cbz	x27, LBB0_3
LBB0_13:
	mov	x0, x21
	mov	x1, x26
	bl	_ib_get_mad_port
	cbz	x0, LBB0_23
; %bb.14:
	ldr	x8, [x0, #16]
	ldr	x8, [x8, w22, sxtw #3]
	cbz	x8, LBB0_24
; %bb.15:
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #160
	bl	_kzalloc
	cbz	x0, LBB0_25
; %bb.16:
	mov	x23, x0
	sxtw	x9, w22
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #16]
	str	x9, [sp]                        ; 8-byte Folded Spill
	ldr	x8, [x8, x9, lsl #3]
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_ib_get_dma_mr
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	mov	x22, x23
	str	w0, [x22, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.17:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_46
LBB0_18:
Lloh21:
	adrp	x8, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
LBB0_19:
	ldr	x0, [x20, #8]
	bl	_ib_is_mad_class_rmpp
	cbz	x24, LBB0_21
; %bb.20:
	cbz	w0, LBB0_3
LBB0_21:
Lloh24:
	adrp	x8, _IB_QPT_SMI@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IB_QPT_SMI@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x8]
	ldr	x8, [x20, #8]
Lloh27:
	adrp	x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh28:
	ldr	x10, [x10, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x8, x10
Lloh30:
	adrp	x10, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGE
Lloh31:
	ldr	x10, [x10, _IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE@GOTPAGEOFF]
Lloh32:
	ldr	x10, [x10]
	ccmp	x8, x10, #4, ne
	cset	w8, eq
	cmp	w9, w23
	b.ne	LBB0_27
; %bb.22:
	tbz	w8, #0, LBB0_3
	b	LBB0_13
LBB0_23:
Lloh33:
	adrp	x8, _ENODEV@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_26
LBB0_24:
Lloh35:
	adrp	x8, _EPROTONOSUPPORT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _EPROTONOSUPPORT@GOTPAGEOFF]
	b	LBB0_26
LBB0_25:
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_26:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_ERR_PTR
LBB0_27:
	tbnz	w8, #0, LBB0_3
	b	LBB0_13
LBB0_28:
	ldr	x23, [sp]                       ; 8-byte Folded Reload
	cbz	x20, LBB0_31
; %bb.29:
Lloh39:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #160
	bl	_kmemdup
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	cbnz	x0, LBB0_32
; %bb.30:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x19, x0
	ldr	x25, [sp, #8]                   ; 8-byte Folded Reload
	b	LBB0_45
LBB0_31:
	mov	x0, #0
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
LBB0_32:
	ldr	x8, [x8, #16]
	lsl	x9, x23, #3
	add	x10, x8, x9
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	stp	x0, x10, [x11, #136]
	str	x0, [sp]                        ; 8-byte Folded Spill
	stp	x21, x24, [x11, #72]
	stp	x27, x28, [x11, #56]
	str	x25, [x11, #48]
	mov	x25, x11
	ldr	x8, [x8, x9]
	stp	x26, x8, [x11, #32]
	add	x0, x11, #128
	bl	_spin_lock_init
	add	x0, x25, #124
	bl	_INIT_LIST_HEAD
	add	x0, x25, #120
	bl	_INIT_LIST_HEAD
	add	x0, x25, #116
	bl	_INIT_LIST_HEAD
	add	x0, x25, #112
	bl	_INIT_LIST_HEAD
	add	x0, x25, #108
Lloh45:
	adrp	x8, _timeout_sends@GOTPAGE
Lloh46:
	ldr	x8, [x8, _timeout_sends@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x25, #104
	bl	_INIT_LIST_HEAD
	add	x0, x25, #100
Lloh48:
	adrp	x8, _local_completions@GOTPAGE
Lloh49:
	ldr	x8, [x8, _local_completions@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x8]
	bl	_INIT_WORK
	add	x0, x25, #96
	mov	w1, #1
	bl	_atomic_set
	add	x0, x25, #92
	bl	_init_completion
	ldr	x23, [sp, #16]                  ; 8-byte Folded Reload
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh51:
	adrp	x8, _ib_mad_client_id@GOTPAGE
Lloh52:
	ldr	x8, [x8, _ib_mad_client_id@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	str	x9, [x25, #24]
	cbz	x20, LBB0_47
; %bb.33:
	ldr	x0, [x20, #8]
	bl	_convert_mgmt_class
	mov	x21, x0
	bl	_is_vendor_class
	ldr	x8, [x23, #8]
	ldr	x9, [x20]
	cbz	x0, LBB0_38
; %bb.34:
	lsl	x9, x9, #4
	ldr	x24, [x8, x9]
	cbz	x24, LBB0_37
; %bb.35:
	mov	x0, x21
	bl	_vendor_class_index
	ldr	x8, [x24]
	ldr	x0, [x8, x0, lsl #3]
	cbz	x0, LBB0_37
; %bb.36:
	mov	x1, x20
	bl	_is_vendor_method_in_use
	cbnz	x0, LBB0_44
LBB0_37:
	mov	x0, x20
	mov	x1, x25
	bl	_add_oui_reg_req
	b	LBB0_42
LBB0_38:
	add	x8, x8, x9, lsl #4
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_41
; %bb.39:
	ldr	x8, [x8]
	ldr	x8, [x8, x21, lsl #3]
	str	x8, [sp, #24]
	cbz	x8, LBB0_41
; %bb.40:
	add	x0, sp, #24
	mov	x1, x20
	bl	_method_in_use
	cbnz	x0, LBB0_44
LBB0_41:
	mov	x0, x20
	mov	x1, x25
	mov	x2, x21
	bl	_add_nonoui_reg_req
LBB0_42:
	cbz	w0, LBB0_47
; %bb.43:
	bl	_ERR_PTR
	mov	x19, x0
LBB0_44:
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_kfree
LBB0_45:
	ldr	w0, [x22]
	bl	_ib_dereg_mr
LBB0_46:
	mov	x0, x25
	bl	_kfree
	b	LBB0_3
LBB0_47:
	add	x0, x25, #88
	add	x1, x23, #4
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IB_MGMT_RMPP_VERSION,8,3       ; @IB_MGMT_RMPP_VERSION
	.comm	_MAX_MGMT_VERSION,8,3           ; @MAX_MGMT_VERSION
	.comm	_MAX_MGMT_CLASS,8,3             ; @MAX_MGMT_CLASS
	.comm	_IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE,8,3 ; @IB_MGMT_CLASS_SUBN_DIRECTED_ROUTE
	.comm	_IB_QPT_SMI,4,2                 ; @IB_QPT_SMI
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EPROTONOSUPPORT,4,2            ; @EPROTONOSUPPORT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.comm	_timeout_sends,4,2              ; @timeout_sends
	.comm	_local_completions,4,2          ; @local_completions
	.comm	_ib_mad_client_id,8,3           ; @ib_mad_client_id
.subsections_via_symbols
