	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_has_smi_cap
_set_has_smi_cap:                       ## @set_has_smi_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_10
## %bb.1:
	xorl	%ebx, %ebx
	movq	_port_type@GOTPCREL(%rip), %r13
	movq	_MLX5_CAP_PORT_TYPE_IB@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rdi
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_ARRAY_SIZE
	cltq
	incq	%rbx
	cmpq	%rax, %rbx
	jge	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	movq	(%rdi), %rax
	movl	$0, (%rax,%rbx,4)
	movl	(%r13), %esi
	callq	_MLX5_CAP_GEN
	movq	(%r14), %rdi
	cmpq	(%r15), %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ib_virt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MLX5_CAP_GEN
	movq	(%r14), %rdi
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r8
	callq	_mlx5_query_hca_vport_context
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	movl	%eax, (%rdi,%rbx,4)
	jmp	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdi), %rdi
	movl	$1, (%rdi,%rbx,4)
	jmp	LBB0_9
LBB0_10:
	xorl	%r12d, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	incl	%ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_mlx5_ib_err
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_port_type,4,2                  ## @port_type
	.comm	_MLX5_CAP_PORT_TYPE_IB,8,3      ## @MLX5_CAP_PORT_TYPE_IB
	.comm	_ib_virt,4,2                    ## @ib_virt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"query_hca_vport_context for port=%d failed %d\n"

	.no_dead_strip	_set_has_smi_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_has_smi_cap
_set_has_smi_cap:                       ; @set_has_smi_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x0, [x8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x21, #0
Lloh0:
	adrp	x22, _port_type@GOTPAGE
Lloh1:
	ldr	x22, [x22, _port_type@GOTPAGEOFF]
Lloh2:
	adrp	x23, _MLX5_CAP_PORT_TYPE_IB@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MLX5_CAP_PORT_TYPE_IB@GOTPAGEOFF]
	mov	w24, #1
Lloh4:
	adrp	x25, _ib_virt@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ib_virt@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x0]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_ARRAY_SIZE
	add	x21, x21, #1
	cmp	x21, w0, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	ldr	x8, [x0]
	str	wzr, [x8, x21, lsl #2]
	ldr	w1, [x22]
	bl	_MLX5_CAP_GEN
	mov	x8, x0
	ldr	x9, [x23]
	ldr	x0, [x19]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x25]
	bl	_MLX5_CAP_GEN
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w2, w21, #1
	add	x4, sp, #8
	mov	w1, #0
	mov	w3, #0
	bl	_mlx5_query_hca_vport_context
	cbnz	w0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #8]
	ldr	x9, [x19]
	ldr	x0, [x9]
	str	w8, [x0, x21, lsl #2]
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x0]
	str	w24, [x0, x21, lsl #2]
	b	LBB0_3
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_11:
	mov	x20, x0
	add	w2, w21, #1
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	bl	_mlx5_ib_err
	b	LBB0_10
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_port_type,4,2                  ; @port_type
	.comm	_MLX5_CAP_PORT_TYPE_IB,8,3      ; @MLX5_CAP_PORT_TYPE_IB
	.comm	_ib_virt,4,2                    ; @ib_virt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"query_hca_vport_context for port=%d failed %d\n"

	.no_dead_strip	_set_has_smi_cap
.subsections_via_symbols
