	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_MAD_IFC_wrapper
_mlx4_MAD_IFC_wrapper:                  ## @mlx4_MAD_IFC_wrapper
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	8(%rcx), %r13
	callq	_mlx4_priv
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movl	(%r15), %edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r14d, %esi
	callq	_mlx4_slave_convert_port
                                        ## kill: def $eax killed $eax def $rax
	movl	4(%r15), %r14d
	movl	%r14d, %r12d
	andl	$-9, %r12d
	cmpl	$1, 8(%r13)
	jne	LBB0_32
## %bb.1:
	movq	16(%r13), %rdx
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_32
## %bb.2:
	cmpl	$1, 24(%r13)
	jne	LBB0_32
## %bb.3:
	movl	%r14d, %ecx
	andl	$8, %ecx
	jne	LBB0_32
## %bb.4:
	movq	32(%r13), %rdx
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_32
## %bb.5:
	movq	40(%r13), %rdx
	movq	_IB_SMP_ATTR_PKEY_TABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_17
## %bb.6:
	movq	48(%r13), %rdi
	movq	%rax, %r12
	callq	_be32_to_cpu
	testl	%r12d, %r12d
	jle	LBB0_8
## %bb.7:
	movl	%eax, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r12d
	jle	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_17:
	movq	_IB_SMP_ATTR_PORT_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_21
## %bb.18:
	movl	%eax, %edi
	movq	%rax, %rbx
	callq	_cpu_to_be32
	movq	%rax, 48(%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	8(%r15), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.19:
	movq	%rbx, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_master_func_num
	xorl	%r14d, %r14d
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %eax
	je	LBB0_31
## %bb.20:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	_PORT_STATE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	movl	$240, %r13d
	andl	(%rcx,%r12,4), %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_vf_port_state
	orl	%r13d, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r12,4)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	8(%rax), %rax
	movslq	%ebx, %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%r15d, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -88(%rbp)
	movq	_PORT_CAPABILITY_LOCATION_IN_SMP@GOTPCREL(%rip), %rax
	movslq	(%rax), %rdi
	shlq	$2, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rdi
	leaq	-88(%rbp), %rsi
	movl	$4, %edx
	callq	_memcpy
	jmp	LBB0_31
LBB0_21:
	movq	_IB_SMP_ATTR_GUID_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_28
## %bb.22:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %edx
	callq	_mlx4_get_admin_guid
	movq	%rax, -88(%rbp)
	testl	%ebx, %ebx
	jne	LBB0_26
## %bb.23:
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	movq	$0, 48(%r13)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	8(%r15), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.25:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_mlx4_set_admin_guid
	jmp	LBB0_27
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	%r12d, %ecx
	movl	(%rax,%rcx,4), %eax
	leal	31(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$5, %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%rax, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	callq	_get_full_pkey_table
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	%r12, %rcx
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	jne	LBB0_16
## %bb.13:
	shll	$5, %r13d
	cmpl	$2147483616, %r13d              ## imm = 0x7FFFFFE0
	je	LBB0_16
## %bb.14:
	movslq	-56(%rbp), %rsi                 ## 4-byte Folded Reload
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	decl	%ecx
	movslq	%r13d, %rbx
	addl	$32, %r13d
	movslq	%r13d, %rsi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rax,%rsi,8), %rax
	movq	(%rax,%rcx,8), %rax
	movslq	(%rax,%rbx,4), %rax
	movl	(%r15,%rax,4), %edi
	movq	%r15, %r13
	movq	%rdx, %r15
	callq	_cpu_to_be16
	leal	31(%rbx), %ecx
	testl	%ebx, %ebx
	cmovnsl	%ebx, %ecx
	andl	$-32, %ecx
	movl	%ebx, %edx
	subl	%ecx, %edx
	movslq	%edx, %rcx
	movq	%r15, %rdx
	movq	%r13, %r15
	movl	%eax, (%rdx,%rcx,4)
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	incq	%rbx
	cmpq	-56(%rbp), %rbx                 ## 8-byte Folded Reload
	jl	LBB0_15
LBB0_16:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_31
LBB0_28:
	movq	_IB_SMP_ATTR_NODE_INFO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jne	LBB0_32
## %bb.29:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	8(%r15), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %ecx
	movl	%r12d, %r8d
	pushq	%rbx
	pushq	%r10
	callq	_mlx4_cmd_box
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.30:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_mlx4_get_slave_node_guid
	movq	%rax, -88(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	addq	$48, %rdi
	leaq	-88(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%r14d, %r14d
	jmp	LBB0_31
LBB0_32:
	movq	%rax, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_master_func_num
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	cmpl	%esi, %eax
	je	LBB0_38
## %bb.33:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_mlx4_vf_smi_enabled
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_34
LBB0_38:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	8(%r15), %r9d
	movq	_MLX4_CMD_TIME_CLASS_C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MLX4_CMD_NATIVE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %r8d
	pushq	%rbx
	pushq	%rax
	callq	_mlx4_cmd_box
	addq	$88, %rsp
LBB0_39:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_34:
	movq	16(%r13), %rcx
	movq	32(%r13), %rdx
	movq	_IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_37
## %bb.35:
	movq	_IB_MGMT_METHOD_GET@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_37
## %bb.36:
	movl	%r14d, %eax
	andl	$8, %eax
	je	LBB0_38
LBB0_37:
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r15
	testb	$8, %r14b
	cmovneq	%rax, %r15
	movq	40(%r13), %rdi
	movq	%rcx, %r14
	movq	%rdx, %r12
	callq	_be16_to_cpu
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	%r15, %r9
	pushq	%rax
	callq	_mlx4_err
	addq	$16, %rsp
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_31:
	movl	%r14d, %eax
	addq	$72, %rsp
	jmp	LBB0_39
LBB0_26:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdi
	leaq	-88(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
LBB0_27:
	movq	(%rbx), %rdi
	addq	$32, %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	jmp	LBB0_31
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ## @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_GET,8,3         ## @IB_MGMT_METHOD_GET
	.comm	_IB_SMP_ATTR_PKEY_TABLE,8,3     ## @IB_SMP_ATTR_PKEY_TABLE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_SMP_ATTR_PORT_INFO,8,3      ## @IB_SMP_ATTR_PORT_INFO
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ## @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ## @MLX4_CMD_NATIVE
	.comm	_PORT_STATE_OFFSET,4,2          ## @PORT_STATE_OFFSET
	.comm	_PORT_CAPABILITY_LOCATION_IN_SMP,4,2 ## @PORT_CAPABILITY_LOCATION_IN_SMP
	.comm	_IB_SMP_ATTR_GUID_INFO,8,3      ## @IB_SMP_ATTR_GUID_INFO
	.comm	_IB_SMP_ATTR_NODE_INFO,8,3      ## @IB_SMP_ATTR_NODE_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unprivileged slave %d is trying to execute a Subnet MGMT MAD, class 0x%x, method 0x%x, view=%s for attr 0x%x. Rejecting\n"

L_.str.1:                               ## @.str.1
	.asciz	"Network"

L_.str.2:                               ## @.str.2
	.asciz	"Host"

	.comm	_EPERM,4,2                      ## @EPERM
	.no_dead_strip	_mlx4_MAD_IFC_wrapper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_MAD_IFC_wrapper
_mlx4_MAD_IFC_wrapper:                  ; @mlx4_MAD_IFC_wrapper
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x23, x4
	mov	x24, x3
	mov	x26, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x28, [x3, #8]
	bl	_mlx4_priv
	str	x0, [sp]                        ; 8-byte Folded Spill
	ldr	x27, [x23, #8]
	ldr	x21, [x27]
	ldr	w2, [x26]
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_slave_convert_port
	mov	x3, x0
	ldr	w22, [x26, #4]
	and	w25, w22, #0xfffffff7
	ldr	w8, [x28, #8]
	cmp	w8, #1
	b.ne	LBB0_24
; %bb.1:
	ldr	x8, [x28, #16]
Lloh0:
	adrp	x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.2:
	and	w8, w22, #0x8
	ldr	w9, [x28, #24]
	cmp	w9, #1
	ccmp	w8, #0, #0, eq
	b.ne	LBB0_24
; %bb.3:
	ldr	x8, [x28, #32]
Lloh3:
	adrp	x9, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.4:
	ldr	x8, [x28, #40]
Lloh6:
	adrp	x9, _IB_SMP_ATTR_PKEY_TABLE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IB_SMP_ATTR_PKEY_TABLE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x0, [x28, #48]
	mov	x27, x3
	bl	_be32_to_cpu
	subs	w22, w27, #1
	b.lt	LBB0_7
; %bb.6:
	ldr	w8, [x19]
	cmp	w27, w8
	b.le	LBB0_18
LBB0_7:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_30
LBB0_8:
Lloh11:
	adrp	x9, _IB_SMP_ATTR_PORT_INFO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_SMP_ATTR_PORT_INFO@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.9:
	mov	x0, x3
	mov	x21, x3
	bl	_cpu_to_be32
	str	x0, [x28, #48]
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w5, [x26, #8]
Lloh14:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh16:
	ldr	w6, [x8]
Lloh17:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh19:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x25
	bl	_mlx4_cmd_box
	mov	x23, x0
	cbnz	w0, LBB0_31
; %bb.10:
	mov	x24, x21
	mov	x0, x19
	bl	_mlx4_master_func_num
	cmp	w0, w20
	b.eq	LBB0_12
; %bb.11:
Lloh20:
	adrp	x8, _PORT_STATE_OFFSET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PORT_STATE_OFFSET@GOTPAGEOFF]
	ldr	x21, [x27]
Lloh22:
	ldrsw	x8, [x8]
	lsl	x22, x8, #2
	ldr	w8, [x21, x22]
	and	w23, w8, #0xf0
	mov	x0, x19
	mov	x19, x24
	mov	x1, x24
	mov	x2, x20
	bl	_vf_port_state
	orr	w8, w23, w0
	str	w8, [x21, x22]
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8, w20, sxtw #3]
	ldr	x8, [x8, w24, sxtw #3]
	str	x8, [sp, #8]
	ldr	x8, [x27]
Lloh23:
	adrp	x9, _PORT_CAPABILITY_LOCATION_IN_SMP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _PORT_CAPABILITY_LOCATION_IN_SMP@GOTPAGEOFF]
Lloh25:
	ldrsw	x9, [x9]
	add	x0, x8, x9, lsl #2
	add	x1, sp, #8
	mov	w2, #4
	bl	_memcpy
LBB0_12:
	mov	w23, #0
	b	LBB0_31
LBB0_13:
Lloh26:
	adrp	x9, _IB_SMP_ATTR_GUID_INFO@GOTPAGE
Lloh27:
	ldr	x9, [x9, _IB_SMP_ATTR_GUID_INFO@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	mov	x21, x3
	mov	x2, x3
	bl	_mlx4_get_admin_guid
	str	x0, [sp, #8]
	cbnz	w20, LBB0_32
; %bb.15:
	cbnz	x0, LBB0_32
; %bb.16:
	str	xzr, [x28, #48]
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w3, [x26]
	ldr	w5, [x26, #8]
Lloh29:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh31:
	ldr	w6, [x8]
Lloh32:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh34:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x4, x25
	bl	_mlx4_cmd_box
	mov	x23, x0
	cbnz	w0, LBB0_31
; %bb.17:
	ldr	x8, [x27]
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	bl	_mlx4_set_admin_guid
	b	LBB0_33
LBB0_18:
	mov	x26, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8, w27, uxtw #2]
	add	w9, w8, #31
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #5
	add	w0, w8, #1
Lloh35:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh36:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
	mov	w1, #128
	bl	_kcalloc
	cbz	x0, LBB0_34
; %bb.19:
	mov	x25, x0
	mov	x0, x19
	mov	x1, x27
	mov	x2, x25
	mov	x3, x24
	mov	x4, x23
	bl	_get_full_pkey_table
	mov	x23, x0
	cmp	w0, #0
	lsl	w8, w26, #5
	mov	w9, #2147483616
	ccmp	w8, w9, #4, eq
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	b.ne	LBB0_35
LBB0_20:
	mov	x0, x25
	bl	_kfree
	b	LBB0_31
LBB0_21:
Lloh38:
	adrp	x9, _IB_SMP_ATTR_NODE_INFO@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IB_SMP_ATTR_NODE_INFO@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.22:
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w5, [x26, #8]
Lloh41:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh42:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh43:
	ldr	w6, [x8]
Lloh44:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh46:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x4, x25
	bl	_mlx4_cmd_box
	mov	x23, x0
	cbnz	w0, LBB0_31
; %bb.23:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_get_slave_node_guid
	str	x0, [sp, #8]
	ldr	x8, [x27]
	add	x0, x8, #48
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	b	LBB0_31
LBB0_24:
	mov	x21, x3
	mov	x0, x19
	bl	_mlx4_master_func_num
	cmp	w0, w20
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_mlx4_vf_smi_enabled
	cbz	w0, LBB0_27
LBB0_26:
	ldr	w1, [x24]
	ldr	w2, [x23]
	ldr	w3, [x26]
	ldr	w5, [x26, #8]
Lloh47:
	adrp	x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MLX4_CMD_TIME_CLASS_C@GOTPAGEOFF]
Lloh49:
	ldr	w6, [x8]
Lloh50:
	adrp	x8, _MLX4_CMD_NATIVE@GOTPAGE
Lloh51:
	ldr	x8, [x8, _MLX4_CMD_NATIVE@GOTPAGEOFF]
Lloh52:
	ldr	w7, [x8]
	mov	x0, x19
	mov	x4, x25
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mlx4_cmd_box
LBB0_27:
	ldr	x21, [x28, #16]
Lloh53:
	adrp	x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IB_MGMT_CLASS_SUBN_LID_ROUTED@GOTPAGEOFF]
Lloh55:
	ldr	x8, [x8]
	ldr	x27, [x28, #32]
	cmp	x21, x8
	b.ne	LBB0_29
; %bb.28:
	and	w8, w22, #0x8
Lloh56:
	adrp	x9, _IB_MGMT_METHOD_GET@GOTPAGE
Lloh57:
	ldr	x9, [x9, _IB_MGMT_METHOD_GET@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x27, x9
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_26
LBB0_29:
Lloh59:
	adrp	x8, l_.str.2@PAGE
Lloh60:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh61:
	adrp	x9, l_.str.1@PAGE
Lloh62:
	add	x9, x9, l_.str.1@PAGEOFF
	tst	w22, #0x8
	csel	x23, x9, x8, ne
	ldr	x0, [x28, #40]
	bl	_be16_to_cpu
	mov	x6, x0
Lloh63:
	adrp	x1, l_.str@PAGE
Lloh64:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	mov	x4, x27
	mov	x5, x23
	bl	_mlx4_err
Lloh65:
	adrp	x8, _EPERM@GOTPAGE
Lloh66:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
LBB0_30:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_31:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_32:
	ldr	x0, [x27]
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
LBB0_33:
	ldr	x8, [x27]
	add	x0, x8, #32
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	mov	w23, #0
	b	LBB0_31
LBB0_34:
Lloh67:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_30
LBB0_35:
	sxtw	x19, w20
	add	w9, w8, #32
	sxtw	x20, w8
	sxtw	x24, w9
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	ldr	x8, [x8, x19, lsl #3]
	ldr	x8, [x8, x22, lsl #3]
	ldrsw	x8, [x8, x20, lsl #2]
	ldr	w0, [x25, x8, lsl #2]
	bl	_cpu_to_be16
	negs	w8, w20
	and	w8, w8, #0x1f
	and	w9, w20, #0x1f
	csneg	w8, w9, w8, mi
	str	w0, [x21, w8, sxtw #2]
	add	x20, x20, #1
	cmp	x20, x24
	b.lt	LBB0_36
	b	LBB0_20
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh65, Lloh66
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh67, Lloh68
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MGMT_CLASS_SUBN_LID_ROUTED,8,3 ; @IB_MGMT_CLASS_SUBN_LID_ROUTED
	.comm	_IB_MGMT_METHOD_GET,8,3         ; @IB_MGMT_METHOD_GET
	.comm	_IB_SMP_ATTR_PKEY_TABLE,8,3     ; @IB_SMP_ATTR_PKEY_TABLE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_SMP_ATTR_PORT_INFO,8,3      ; @IB_SMP_ATTR_PORT_INFO
	.comm	_MLX4_CMD_TIME_CLASS_C,4,2      ; @MLX4_CMD_TIME_CLASS_C
	.comm	_MLX4_CMD_NATIVE,4,2            ; @MLX4_CMD_NATIVE
	.comm	_PORT_STATE_OFFSET,4,2          ; @PORT_STATE_OFFSET
	.comm	_PORT_CAPABILITY_LOCATION_IN_SMP,4,2 ; @PORT_CAPABILITY_LOCATION_IN_SMP
	.comm	_IB_SMP_ATTR_GUID_INFO,8,3      ; @IB_SMP_ATTR_GUID_INFO
	.comm	_IB_SMP_ATTR_NODE_INFO,8,3      ; @IB_SMP_ATTR_NODE_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unprivileged slave %d is trying to execute a Subnet MGMT MAD, class 0x%x, method 0x%x, view=%s for attr 0x%x. Rejecting\n"

l_.str.1:                               ; @.str.1
	.asciz	"Network"

l_.str.2:                               ; @.str.2
	.asciz	"Host"

	.comm	_EPERM,4,2                      ; @EPERM
	.no_dead_strip	_mlx4_MAD_IFC_wrapper
.subsections_via_symbols
