	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc_setup_mad_data
_cc_setup_mad_data:                     ## @cc_setup_mad_data
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	72(%r14), %r15
	movl	64(%r14), %eax
	movl	%eax, 68(%r15)
	movl	64(%r15), %edi
	movl	60(%r14), %esi
	movq	_IB_CC_PORT_MASK_DATA_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_memcpy
	movl	60(%r15), %edi
	movl	56(%r14), %esi
	movl	(%rbx), %edx
	callq	_memcpy
	movl	(%r14), %eax
	shll	$4, %eax
	movl	%eax, 32(%r15)
	movl	52(%r14), %eax
	movl	%eax, 56(%r15)
	movl	4(%r14), %edi
	shll	$12, %edi
	callq	_cl_hton16
	movq	%rax, 48(%r15)
	movl	44(%r14), %edi
	shll	$14, %edi
	orl	48(%r14), %edi
	callq	_cl_hton16
	movq	%rax, 40(%r15)
	movl	40(%r14), %eax
	movl	%eax, 36(%r15)
	movl	36(%r14), %eax
	movl	%eax, 28(%r15)
	movl	32(%r14), %eax
	movl	%eax, 24(%r15)
	movq	_IB_CA_CONG_ENTRY_DATA_SIZE@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_3
## %bb.1:
	movq	16(%r15), %rcx
	movq	24(%r14), %rdx
	addq	$16, %rcx
	xorl	%esi, %esi
	xorps	%xmm0, %xmm0
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdx,%rsi), %xmm1
	movups	%xmm1, (%rcx,%rsi,2)
	incq	%rdi
	movups	%xmm0, -16(%rcx,%rsi,2)
	movslq	(%rax), %rbx
	addq	$16, %rsi
	cmpq	%rbx, %rdi
	jl	LBB0_2
LBB0_3:
	movl	8(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	decl	%eax
	movl	%eax, (%r15)
	movq	_IB_CC_TBL_ENTRY_LIST_MAX@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	incl	%eax
	movl	%eax, (%r15)
	jmp	LBB0_6
LBB0_4:
	movl	$1, (%r15)
	movl	$1, %eax
LBB0_6:
	movq	_OSM_CCT_ENTRY_MAD_BLOCKS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_CL_ASSERT
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r14), %ecx
	xorl	%eax, %eax
	subl	$1, %ecx
	cmovbl	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, (%r15)
	jle	LBB0_13
## %bb.7:
	xorl	%r14d, %r14d
	movq	_IB_CC_TBL_ENTRY_LIST_MAX@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rbx
	movslq	(%rsi), %rax
	cmpq	%rax, %rbx
	movq	%rsi, %r15
	movq	%rbx, %r14
	jge	LBB0_13
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edi
	callq	_cl_hton16
	movq	8(%r15), %rcx
	leaq	(%r14,%r14,2), %rbx
	movq	%rax, 16(%rcx,%rbx,8)
	movq	$0, 8(%rcx,%rbx,8)
	movq	(%rcx,%rbx,8), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	testl	%r12d, %r12d
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %eax
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rbx
	movq	%r15, %rsi
	jle	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r12), %rcx
	imull	%ebx, %eax
	cltq
	addq	%r15, %rax
	movl	(%rcx,%rax,8), %edi
	shll	$14, %edi
	orl	4(%rcx,%rax,8), %edi
	movq	%rdx, %r14
	movq	%rsi, %r13
	callq	_cl_hton16
	movq	%r13, %rsi
	movq	%r14, %rdx
	movq	8(%r13), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_IB_CC_TBL_ENTRY_LIST_MAX@GOTPCREL(%rip), %r13
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_11
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CC_PORT_MASK_DATA_SIZE,4,2  ## @IB_CC_PORT_MASK_DATA_SIZE
	.comm	_IB_CA_CONG_ENTRY_DATA_SIZE,4,2 ## @IB_CA_CONG_ENTRY_DATA_SIZE
	.comm	_IB_CC_TBL_ENTRY_LIST_MAX,4,2   ## @IB_CC_TBL_ENTRY_LIST_MAX
	.comm	_OSM_CCT_ENTRY_MAD_BLOCKS,4,2   ## @OSM_CCT_ENTRY_MAD_BLOCKS
	.no_dead_strip	_cc_setup_mad_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc_setup_mad_data
_cc_setup_mad_data:                     ; @cc_setup_mad_data
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
	ldr	x21, [x20, #72]
	ldp	w1, w8, [x20, #60]
	str	w8, [x21, #68]
	ldr	w0, [x21, #64]
Lloh0:
	adrp	x19, _IB_CC_PORT_MASK_DATA_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _IB_CC_PORT_MASK_DATA_SIZE@GOTPAGEOFF]
	ldr	w2, [x19]
	bl	_memcpy
	ldr	w0, [x21, #60]
	ldr	w1, [x20, #56]
	ldr	w2, [x19]
	bl	_memcpy
	ldp	w8, w9, [x20]
	lsl	w8, w8, #4
	str	w8, [x21, #32]
	ldr	w8, [x20, #52]
	str	w8, [x21, #56]
	lsl	w0, w9, #12
	bl	_cl_hton16
	str	x0, [x21, #48]
	ldp	w8, w9, [x20, #44]
	orr	w0, w9, w8, lsl #14
	bl	_cl_hton16
	str	x0, [x21, #40]
	ldr	w8, [x20, #40]
	str	w8, [x21, #36]
	ldr	d0, [x20, #32]
	str	d0, [x21, #24]
Lloh2:
	adrp	x8, _IB_CA_CONG_ENTRY_DATA_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_CA_CONG_ENTRY_DATA_SIZE@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x11, [x21, #16]
	ldr	x10, [x20, #24]
	add	x11, x11, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	q0, [x10, x9, lsl #4]
	str	q0, [x11]
	add	x9, x9, #1
	stp	xzr, xzr, [x11, #-16]
	ldrsw	x12, [x8]
	add	x11, x11, #32
	cmp	x9, x12
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20, #8]
Lloh4:
	adrp	x22, _IB_CC_TBL_ENTRY_LIST_MAX@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IB_CC_TBL_ENTRY_LIST_MAX@GOTPAGEOFF]
	cbz	w8, LBB0_5
; %bb.4:
	sub	w8, w8, #1
	str	w8, [x21]
	ldr	w9, [x22]
	sdiv	w8, w8, w9
	add	w8, w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	str	w8, [x21]
Lloh6:
	adrp	x9, _OSM_CCT_ENTRY_MAD_BLOCKS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OSM_CCT_ENTRY_MAD_BLOCKS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_CL_ASSERT
	ldr	w8, [x20, #8]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w19, wzr, w9, eq
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.7:
	mov	x23, #0
	mov	w24, #24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.ge	LBB0_13
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x19
	bl	_cl_hton16
	ldr	x8, [x21, #8]
	madd	x8, x23, x24, x8
	stp	xzr, x0, [x8, #8]
	ldr	x0, [x8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	cbz	w19, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, #0
LBB0_12:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x20, #16]
	mul	w8, w23, w8
	add	x8, x25, w8, sxtw
	add	x8, x9, x8, lsl #3
	ldp	w9, w8, [x8]
	orr	w0, w8, w9, lsl #14
	bl	_cl_hton16
	ldr	x8, [x21, #8]
	mul	x9, x23, x24
	ldr	x8, [x8, x9]
	str	x0, [x8, x25, lsl #3]
	add	x25, x25, #1
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_12
	b	LBB0_8
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CC_PORT_MASK_DATA_SIZE,4,2  ; @IB_CC_PORT_MASK_DATA_SIZE
	.comm	_IB_CA_CONG_ENTRY_DATA_SIZE,4,2 ; @IB_CA_CONG_ENTRY_DATA_SIZE
	.comm	_IB_CC_TBL_ENTRY_LIST_MAX,4,2   ; @IB_CC_TBL_ENTRY_LIST_MAX
	.comm	_OSM_CCT_ENTRY_MAD_BLOCKS,4,2   ; @OSM_CCT_ENTRY_MAD_BLOCKS
	.no_dead_strip	_cc_setup_mad_data
.subsections_via_symbols
