	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_slave_cap
_mlx4_slave_cap:                        ## @mlx4_slave_cap
	.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	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	-200(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx4_QUERY_HCA
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_19
LBB0_3:
	movq	_HCA_GLOBAL_CAP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, -200(%rbp)
	jne	LBB0_6
## %bb.4:
	movl	-132(%rbp), %eax
	movl	-128(%rbp), %ecx
	movq	_mlx4_log_num_mgm_entry_size@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movl	%eax, 160(%r14)
	leaq	-280(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_memset
	movb	-196(%rbp), %cl
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mlx4_dev_cap
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movq	%r14, %rdi
	callq	_mlx4_QUERY_FW
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
LBB0_10:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	subl	4(%r14), %eax
	movslq	%eax, %r15
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_mlx4_warn
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	jae	LBB0_12
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_17
LBB0_12:
	movb	-192(%rbp), %cl
	addb	$12, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	%edx, 8(%r14)
	movslq	%edx, %rcx
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.13:
	leaq	-120(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$76, %edx
	callq	_memset
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_mlx4_QUERY_FUNC_CAP
	testl	%eax, %eax
	je	LBB0_20
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_19
LBB0_15:
	leaq	L_.str.6(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%rax, %rcx
LBB0_16:
	xorl	%eax, %eax
	callq	_mlx4_err
LBB0_17:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_PF_CONTEXT_BEHAVIOUR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%eax, -108(%rbp)
	jne	LBB0_23
## %bb.21:
	movslq	-104(%rbp), %rax
	movl	%eax, 12(%r14)
	movl	-56(%rbp), %ecx
	movl	%ecx, 156(%r14)
	movl	-60(%rbp), %ecx
	movl	%ecx, 152(%r14)
	movl	-64(%rbp), %ecx
	movl	%ecx, 148(%r14)
	movups	-80(%rbp), %xmm0
	movups	%xmm0, 132(%r14)
	movq	_MLX4_NUM_PDS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 128(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 112(%r14)
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_24
## %bb.22:
	leaq	L_.str.9(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_16
LBB0_23:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_7
LBB0_24:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%eax, %edi
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 64(%r14)
	movl	12(%r14), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 56(%r14)
	movl	12(%r14), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 48(%r14)
	movl	12(%r14), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, 40(%r14)
	cmpq	$0, 64(%r14)
	je	LBB0_35
## %bb.25:
	cmpq	$0, 56(%r14)
	je	LBB0_35
## %bb.26:
	cmpq	$0, 48(%r14)
	je	LBB0_35
## %bb.27:
	testq	%rax, %rax
	je	LBB0_35
## %bb.28:
	cmpl	$0, 12(%r14)
	jle	LBB0_33
## %bb.29:
	movl	$4, %r15d
	xorl	%r12d, %r12d
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	leaq	1(%r12), %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	leaq	-120(%rbp), %rdx
	callq	_mlx4_QUERY_FUNC_CAP
	testl	%eax, %eax
	jne	LBB0_39
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	-84(%rbp), %eax
	movq	64(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	-88(%rbp), %eax
	movq	56(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	-92(%rbp), %eax
	movq	48(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movl	-96(%rbp), %eax
	movq	40(%r14), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	96(%r14), %rax
	movq	104(%r14), %rcx
	movl	4(%rax,%r12,4), %eax
	movl	%eax, 4(%rcx,%r12,4)
	movq	88(%r14), %rdx
	addq	%r15, %rdx
	movq	80(%r14), %rcx
	addq	%r15, %rcx
	incl	%r12d
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlx4_get_slave_pkey_gid_tbl_len
	testq	%rax, %rax
	jne	LBB0_40
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movslq	12(%r14), %rax
	addq	$4, %r15
	movq	%r13, %r12
	cmpq	%rax, %r13
	jl	LBB0_30
LBB0_33:
	movl	16(%r14), %ebx
	movl	168(%r14), %edi
	subl	20(%r14), %ebx
	imull	8(%r14), %ebx
	movl	$2, %esi
	callq	_pci_resource_len
	cmpl	%eax, %ebx
	jle	LBB0_37
## %bb.34:
	movl	16(%r14), %r15d
	movl	168(%r14), %edi
	imull	8(%r14), %r15d
	movl	$2, %esi
	callq	_pci_resource_len
	movslq	%eax, %rcx
	leaq	L_.str.11(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_36
LBB0_35:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_36:
	leaq	40(%r14), %r15
	movq	64(%r14), %rdi
	callq	_kfree
	movq	56(%r14), %rdi
	callq	_kfree
	movq	48(%r14), %rdi
	callq	_kfree
	movq	40(%r14), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	movups	%xmm0, 16(%r15)
	jmp	LBB0_19
LBB0_37:
	movl	-180(%rbp), %eax
	movq	_MLX4_DEV_CAP_64B_EQE_ENABLED@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, %ecx
	shll	$5, %ecx
	addl	$32, %ecx
	movl	%ecx, 24(%r14)
	movl	%edx, 28(%r14)
	movq	_MLX4_DEV_CAP_64B_CQE_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_41
## %bb.38:
	movq	_MLX4_USER_DEV_CAP_64B_CQE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 76(%r14)
	movl	$64, %eax
	jmp	LBB0_42
LBB0_39:
	movl	%eax, %ebx
	incl	%r12d
	leaq	L_.str.10(%rip), %rsi
	movq	%r14, %rdi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_36
LBB0_40:
	xorl	%ebx, %ebx
	jmp	LBB0_36
LBB0_41:
	movl	$32, %eax
LBB0_42:
	movl	%eax, 32(%r14)
	movq	_MLX4_DEV_CAP_FLAG2_TS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 72(%r14)
	leaq	L_.str.12(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	leaq	-280(%rbp), %rsi
	leaq	-200(%rbp), %rdx
	movq	%r14, %rdi
	callq	_slave_adjust_steering_mode
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_HCA command failed, aborting.\n"

	.comm	_HCA_GLOBAL_CAP_MASK,4,2        ## @HCA_GLOBAL_CAP_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Unknown hca global capabilities\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_mlx4_log_num_mgm_entry_size,4,2 ## @mlx4_log_num_mgm_entry_size
L_.str.2:                               ## @.str.2
	.asciz	"QUERY_DEV_CAP command failed, aborting.\n"

L_.str.3:                               ## @.str.3
	.asciz	"QUERY_FW command failed: could not get FW version.\n"

L_.str.4:                               ## @.str.4
	.asciz	"HCA minimum page size:%d\n"

	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"HCA minimum page size of %d bigger than kernel PAGE_SIZE of %ld, aborting.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.6:                               ## @.str.6
	.asciz	"UAR size:%d != kernel PAGE_SIZE of %ld\n"

L_.str.7:                               ## @.str.7
	.asciz	"QUERY_FUNC_CAP general command failed, aborting (%d).\n"

	.comm	_PF_CONTEXT_BEHAVIOUR_MASK,4,2  ## @PF_CONTEXT_BEHAVIOUR_MASK
L_.str.8:                               ## @.str.8
	.asciz	"Unknown pf context behaviour\n"

	.comm	_MLX4_NUM_PDS,4,2               ## @MLX4_NUM_PDS
	.comm	_MLX4_MAX_PORTS,8,3             ## @MLX4_MAX_PORTS
L_.str.9:                               ## @.str.9
	.asciz	"HCA has %d ports, but we only support %d, aborting.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.10:                              ## @.str.10
	.asciz	"QUERY_FUNC_CAP port command failed for port %d, aborting (%d).\n"

L_.str.11:                              ## @.str.11
	.asciz	"HCA reported UAR region size of 0x%x bigger than PCI resource 2 size of 0x%llx, aborting.\n"

	.comm	_MLX4_DEV_CAP_64B_EQE_ENABLED,4,2 ## @MLX4_DEV_CAP_64B_EQE_ENABLED
	.comm	_MLX4_DEV_CAP_64B_CQE_ENABLED,4,2 ## @MLX4_DEV_CAP_64B_CQE_ENABLED
	.comm	_MLX4_USER_DEV_CAP_64B_CQE,4,2  ## @MLX4_USER_DEV_CAP_64B_CQE
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ## @MLX4_DEV_CAP_FLAG2_TS
L_.str.12:                              ## @.str.12
	.asciz	"Timestamping is not supported in slave mode.\n"

	.no_dead_strip	_mlx4_slave_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_slave_cap
_mlx4_slave_cap:                        ; @mlx4_slave_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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	x0, sp, #16
	mov	w1, #0
	mov	w2, #76
	bl	_memset
	add	x1, sp, #16
	mov	x0, x19
	bl	_mlx4_QUERY_HCA
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_18
LBB0_3:
	ldr	w8, [sp, #16]
Lloh2:
	adrp	x9, _HCA_GLOBAL_CAP_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HCA_GLOBAL_CAP_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
Lloh5:
	adrp	x8, _mlx4_log_num_mgm_entry_size@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mlx4_log_num_mgm_entry_size@GOTPAGEOFF]
	ldp	w10, w9, [sp, #84]
Lloh7:
	str	w9, [x8]
	str	w10, [x19, #160]
	sub	x0, x29, #112
	mov	w1, #0
	mov	w2, #76
	bl	_memset
	ldr	w8, [sp, #20]
	mov	w9, #1
	lsl	w8, w9, w8
	str	w8, [x19]
	sub	x1, x29, #112
	mov	x0, x19
	bl	_mlx4_dev_cap
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	mov	x0, x19
	bl	_mlx4_err
Lloh12:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
	mov	x0, x19
	bl	_mlx4_QUERY_FW
	cbz	w0, LBB0_10
; %bb.9:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
LBB0_10:
	ldr	w8, [x19, #4]
	neg	w8, w8
	sxtw	x20, w8
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
Lloh18:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x8, x20
	b.hs	LBB0_12
; %bb.11:
	stp	x20, x8, [sp]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_12:
	ldr	w9, [sp, #24]
	add	w9, w9, #12
	mov	w10, #1
	lsl	w9, w10, w9
	str	w9, [x19, #8]
	cmp	x8, w9, sxtw
	b.ne	LBB0_15
; %bb.13:
	add	x0, sp, #96
	mov	w1, #0
	mov	w2, #76
	bl	_memset
	add	x2, sp, #96
	mov	x0, x19
	mov	x1, #0
	bl	_mlx4_QUERY_FUNC_CAP
	cbz	w0, LBB0_19
; %bb.14:
	mov	x20, x0
	str	x20, [sp]
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_2
LBB0_15:
	stp	x9, x8, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_mlx4_err
Lloh27:
	adrp	x8, _ENODEV@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_19:
	ldr	w8, [sp, #108]
Lloh29:
	adrp	x9, _PF_CONTEXT_BEHAVIOUR_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PF_CONTEXT_BEHAVIOUR_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w8, w9, w8
	cmp	w8, w9
	b.ne	LBB0_22
; %bb.20:
	ldrsw	x0, [sp, #112]
	str	w0, [x19, #12]
	ldr	w8, [sp, #160]
	str	w8, [x19, #156]
	ldr	d0, [sp, #152]
	stur	d0, [x19, #148]
	ldur	q0, [sp, #136]
	stur	q0, [x19, #132]
Lloh32:
	adrp	x8, _MLX4_NUM_PDS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MLX4_NUM_PDS@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #128]
	stp	xzr, xzr, [x19, #112]
Lloh35:
	adrp	x8, _MLX4_MAX_PORTS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	cmp	x8, x0
	b.hs	LBB0_23
; %bb.21:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x0, x8, [sp]
Lloh38:
	adrp	x1, l_.str.9@PAGE
Lloh39:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_16
LBB0_22:
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_7
LBB0_23:
Lloh42:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh43:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x20]
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #64]
	ldr	w0, [x19, #12]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #56]
	ldr	w0, [x19, #12]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x19, #48]
	ldr	w0, [x19, #12]
	ldr	w2, [x20]
	mov	w1, #8
	bl	_kcalloc
	mov	x21, x19
	str	x0, [x21, #40]!
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_34
; %bb.24:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_34
; %bb.25:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_34
; %bb.26:
	cbz	x0, LBB0_34
; %bb.27:
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.28:
	mov	w20, #1
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #96
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_QUERY_FUNC_CAP
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_39
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=1
	ldr	w8, [sp, #132]
	ldr	x9, [x19, #64]
	lsl	x10, x20, #2
	sub	x11, x10, #4
	str	w8, [x9, x11]
	ldr	w8, [sp, #128]
	ldr	x9, [x19, #56]
	str	w8, [x9, x11]
	ldr	w8, [sp, #124]
	ldr	x9, [x19, #48]
	str	w8, [x9, x11]
	ldr	w8, [sp, #120]
	ldr	x9, [x19, #40]
	str	w8, [x9, x11]
	ldp	x8, x9, [x19, #96]
	ldr	w8, [x8, x10]
	str	w8, [x9, x10]
	ldp	x9, x8, [x19, #80]
	add	x2, x8, x10
	add	x3, x9, x10
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_get_slave_pkey_gid_tbl_len
	cbnz	x0, LBB0_40
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=1
	add	x8, x20, #1
	ldrsw	x9, [x19, #12]
	cmp	x20, x9
	mov	x20, x8
	b.lt	LBB0_29
LBB0_32:
	ldr	w8, [x19, #8]
	ldp	w9, w10, [x19, #16]
	sub	w9, w9, w10
	mul	w20, w9, w8
	ldr	w0, [x19, #168]
	mov	w1, #2
	bl	_pci_resource_len
	cmp	w20, w0
	b.le	LBB0_36
; %bb.33:
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	mul	w20, w9, w8
	ldr	w0, [x19, #168]
	mov	w1, #2
	bl	_pci_resource_len
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	stp	x20, x8, [sp]
Lloh44:
	adrp	x1, l_.str.11@PAGE
Lloh45:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	w20, #0
	b	LBB0_35
LBB0_34:
Lloh46:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_35:
	ldr	x0, [x19, #64]
	bl	_kfree
	ldr	x0, [x19, #56]
	bl	_kfree
	ldr	x0, [x19, #48]
	bl	_kfree
	ldr	x0, [x19, #40]
	bl	_kfree
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x21]
	b	LBB0_18
LBB0_36:
	ldr	w9, [sp, #36]
Lloh49:
	adrp	x8, _MLX4_DEV_CAP_64B_EQE_ENABLED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _MLX4_DEV_CAP_64B_EQE_ENABLED@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	tst	w8, w9
	cset	w10, ne
	mov	w11, #64
	mov	w8, #32
	csel	w11, w8, w11, eq
	stp	w11, w10, [x19, #24]
Lloh52:
	adrp	x10, _MLX4_DEV_CAP_64B_CQE_ENABLED@GOTPAGE
Lloh53:
	ldr	x10, [x10, _MLX4_DEV_CAP_64B_CQE_ENABLED@GOTPAGEOFF]
Lloh54:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_38
; %bb.37:
Lloh55:
	adrp	x8, _MLX4_USER_DEV_CAP_64B_CQE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MLX4_USER_DEV_CAP_64B_CQE@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
	ldr	w9, [x19, #76]
	orr	w8, w9, w8
	str	w8, [x19, #76]
	mov	w8, #64
LBB0_38:
	str	w8, [x19, #32]
Lloh58:
	adrp	x8, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	ldr	w9, [x19, #72]
	bic	w8, w9, w8
	str	w8, [x19, #72]
Lloh61:
	adrp	x1, l_.str.12@PAGE
Lloh62:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
	sub	x1, x29, #112
	add	x2, sp, #16
	mov	x0, x19
	bl	_slave_adjust_steering_mode
	mov	w20, #0
	b	LBB0_18
LBB0_39:
	stp	x20, x0, [sp]
Lloh63:
	adrp	x1, l_.str.10@PAGE
Lloh64:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x20, x0
	mov	x0, x19
	bl	_mlx4_err
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_35
LBB0_40:
	mov	w20, #0
	b	LBB0_35
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpAdd	Lloh63, Lloh64
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_HCA command failed, aborting.\n"

	.comm	_HCA_GLOBAL_CAP_MASK,4,2        ; @HCA_GLOBAL_CAP_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Unknown hca global capabilities\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_mlx4_log_num_mgm_entry_size,4,2 ; @mlx4_log_num_mgm_entry_size
l_.str.2:                               ; @.str.2
	.asciz	"QUERY_DEV_CAP command failed, aborting.\n"

l_.str.3:                               ; @.str.3
	.asciz	"QUERY_FW command failed: could not get FW version.\n"

l_.str.4:                               ; @.str.4
	.asciz	"HCA minimum page size:%d\n"

	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"HCA minimum page size of %d bigger than kernel PAGE_SIZE of %ld, aborting.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.6:                               ; @.str.6
	.asciz	"UAR size:%d != kernel PAGE_SIZE of %ld\n"

l_.str.7:                               ; @.str.7
	.asciz	"QUERY_FUNC_CAP general command failed, aborting (%d).\n"

	.comm	_PF_CONTEXT_BEHAVIOUR_MASK,4,2  ; @PF_CONTEXT_BEHAVIOUR_MASK
l_.str.8:                               ; @.str.8
	.asciz	"Unknown pf context behaviour\n"

	.comm	_MLX4_NUM_PDS,4,2               ; @MLX4_NUM_PDS
	.comm	_MLX4_MAX_PORTS,8,3             ; @MLX4_MAX_PORTS
l_.str.9:                               ; @.str.9
	.asciz	"HCA has %d ports, but we only support %d, aborting.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.10:                              ; @.str.10
	.asciz	"QUERY_FUNC_CAP port command failed for port %d, aborting (%d).\n"

l_.str.11:                              ; @.str.11
	.asciz	"HCA reported UAR region size of 0x%x bigger than PCI resource 2 size of 0x%llx, aborting.\n"

	.comm	_MLX4_DEV_CAP_64B_EQE_ENABLED,4,2 ; @MLX4_DEV_CAP_64B_EQE_ENABLED
	.comm	_MLX4_DEV_CAP_64B_CQE_ENABLED,4,2 ; @MLX4_DEV_CAP_64B_CQE_ENABLED
	.comm	_MLX4_USER_DEV_CAP_64B_CQE,4,2  ; @MLX4_USER_DEV_CAP_64B_CQE
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ; @MLX4_DEV_CAP_FLAG2_TS
l_.str.12:                              ; @.str.12
	.asciz	"Timestamping is not supported in slave mode.\n"

	.no_dead_strip	_mlx4_slave_cap
.subsections_via_symbols
