	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vlarb_update_table_block
_vlarb_update_table_block:              ## @vlarb_update_table_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r12d
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r15
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rsi), %rdi
	callq	_ib_port_info_get_op_vls
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %ecx
	movl	$-1, %r13d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leal	(,%r12,4), %edx
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_memcpy
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	leaq	-56(%rbp), %rcx
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r12d, %r8d
	movl	16(%rbp), %r9d
	callq	*%rax
LBB0_3:
	testl	%r12d, %r12d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_14
## %bb.4:
	notl	%r13d
	movq	-56(%rbp), %rax
	movl	%r12d, %ecx
	cmpl	$8, %r12d
	jae	LBB0_6
## %bb.5:
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_6:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	leaq	-8(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$3, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rax,%rsi,4), %xmm1
	movdqu	16(%rax,%rsi,4), %xmm2
	movdqu	32(%rax,%rsi,4), %xmm3
	movdqu	48(%rax,%rsi,4), %xmm4
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rsi,4)
	movdqu	%xmm2, 16(%rax,%rsi,4)
	pand	%xmm0, %xmm3
	pand	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rax,%rsi,4)
	movdqu	%xmm4, 48(%rax,%rsi,4)
	addq	$16, %rsi
	addq	$-2, %rdi
	jne	LBB0_9
## %bb.10:
	testb	$1, %bl
	je	LBB0_12
LBB0_11:
	movdqu	(%rax,%rsi,4), %xmm1
	movdqu	16(%rax,%rsi,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	%xmm1, (%rax,%rsi,4)
	movdqu	%xmm2, 16(%rax,%rsi,4)
LBB0_12:
	cmpq	%rcx, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	andl	%r13d, (%rax,%rdx,4)
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_13
LBB0_14:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	movl	16(%rbp), %r12d
	jne	LBB0_16
## %bb.15:
	movl	%r12d, %edi
	shlq	$3, %rdi
	addq	(%r15), %rdi
	leaq	-56(%rbp), %rsi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_19
LBB0_16:
	movl	%r12d, %r9d
	shll	$16, %r9d
	addl	$65536, %r9d                    ## imm = 0x10000
	orl	%r14d, %r9d
	movq	_IB_MAD_ATTR_VL_ARBITRATION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-56(%rbp), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_osm_qos_mad_create
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	movq	24(%rbp), %r14
	movl	%r12d, %edi
	shlq	$3, %rdi
	addq	(%r15), %rdi
	xorl	%esi, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_cl_qlist_insert_tail
LBB0_19:
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_17:
	movq	_IB_INSUFFICIENT_MEMORY@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%esi, %esi
	testb	$1, %bl
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SUCCESS,4,2                 ## @IB_SUCCESS
	.comm	_IB_MAD_ATTR_VL_ARBITRATION,4,2 ## @IB_MAD_ATTR_VL_ARBITRATION
	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ## @IB_INSUFFICIENT_MEMORY
	.no_dead_strip	_vlarb_update_table_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vlarb_update_table_block
_vlarb_update_table_block:              ; @vlarb_update_table_block
	.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
	str	x7, [sp]                        ; 8-byte Folded Spill
	mov	x20, x6
	mov	x26, x5
	mov	x28, x4
	mov	x25, x3
	mov	x24, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	add	x0, x1, #8
	bl	_ib_port_info_get_op_vls
	mov	x27, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	lsl	w23, w26, #2
	add	x0, sp, #8
	mov	x1, x28
	mov	x2, x23
	bl	_memcpy
	cbz	x19, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	add	x3, sp, #8
	mov	x1, x21
	mov	x2, x24
	mov	x4, x26
	mov	x5, x20
	blr	x8
LBB0_3:
	cbz	w26, LBB0_11
; %bb.4:
	sub	w8, w27, #1
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	ldr	x10, [sp, #8]
	mov	w9, w26
	cmp	w26, #16
	b.hs	LBB0_6
; %bb.5:
	mov	x11, #0
	b	LBB0_9
LBB0_6:
	and	x11, x9, #0xfffffff0
	dup.4s	v0, w8
	add	x12, x10, #32
	mov	x13, x11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12]
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x13, x13, #16
	b.ne	LBB0_7
; %bb.8:
	cmp	x11, x9
	b.eq	LBB0_11
LBB0_9:
	add	x10, x10, x11, lsl #2
	sub	x9, x9, x11
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	and	w11, w11, w8
	str	w11, [x10], #4
	subs	x9, x9, #1
	b.ne	LBB0_10
LBB0_11:
	cbnz	w25, LBB0_13
; %bb.12:
	ldr	x8, [x21]
	add	x0, x8, w20, uxtw #3
	add	x1, sp, #8
	mov	x2, x23
	bl	_memcmp
	cbz	w0, LBB0_15
LBB0_13:
	lsl	w8, w20, #16
	add	w8, w8, #16, lsl #12            ; =65536
	orr	w5, w8, w24
Lloh0:
	adrp	x8, _IB_MAD_ATTR_VL_ARBITRATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MAD_ATTR_VL_ARBITRATION@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x3, sp, #8
	mov	x0, x22
	mov	x1, x21
	mov	w2, #8
	bl	_osm_qos_mad_create
	cbz	x0, LBB0_16
; %bb.14:
	mov	x22, x0
	ldr	x8, [x21]
	add	x0, x8, w20, uxtw #3
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x22
	bl	_cl_qlist_insert_tail
LBB0_15:
Lloh3:
	adrp	x8, _IB_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_SUCCESS@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _IB_INSUFFICIENT_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_INSUFFICIENT_MEMORY@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SUCCESS,4,2                 ; @IB_SUCCESS
	.comm	_IB_MAD_ATTR_VL_ARBITRATION,4,2 ; @IB_MAD_ATTR_VL_ARBITRATION
	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ; @IB_INSUFFICIENT_MEMORY
	.no_dead_strip	_vlarb_update_table_block
.subsections_via_symbols
