	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_congestion_control_setup   ## -- Begin function osm_congestion_control_setup
	.p2align	4, 0x90
_osm_congestion_control_setup:          ## @osm_congestion_control_setup
	.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
	xorl	%r13d, %r13d
	cmpl	$0, 16(%rdi)
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	callq	_OSM_LOG_ENTER
	cmpl	$0, 20(%rbx)
	je	LBB0_11
## %bb.2:
	leaq	8(%rbx), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_cc_setup_mad_data
	leaq	4(%rbx), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_cl_plock_acquire
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_cl_qmap_head
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_cl_qmap_end
	xorl	%r13d, %r13d
	cmpq	%rax, %r15
	jne	LBB0_3
LBB0_10:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_cl_plock_release
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_OSM_LOG_EXIT
LBB0_11:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_cc_send_sw_cong_setting
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$-1, %eax
	cmovnel	%eax, %r13d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_cl_qmap_end
	movq	%r12, %r15
	cmpq	%rax, %r12
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %r14
	movq	%r15, %rdi
	callq	_cl_qmap_next
	movq	%rax, %r12
	cmpq	$0, 8(%r15)
	jne	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_osm_node_get_type
	movq	_IB_NODE_TYPE_SWITCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_osm_node_get_type
	movq	_IB_NODE_TYPE_CA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_cc_send_ca_cong_setting
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%rax, %r13
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rax
	xorq	(%rax), %r13
	movl	(%r15), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_cc_send_cct
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rcx
	xorq	(%rcx), %rax
	orq	%r13, %rax
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ## @IB_NODE_TYPE_SWITCH
	.comm	_IB_SUCCESS,8,3                 ## @IB_SUCCESS
	.comm	_IB_NODE_TYPE_CA,8,3            ## @IB_NODE_TYPE_CA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_osm_congestion_control_setup   ; -- Begin function osm_congestion_control_setup
	.p2align	2
_osm_congestion_control_setup:          ; @osm_congestion_control_setup
	.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
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x0
	bl	_OSM_LOG_ENTER
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_11
; %bb.2:
	add	x21, x19, #8
	mov	x0, x21
	bl	_cc_setup_mad_data
	add	x0, x19, #4
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_cl_plock_acquire
	str	x19, [sp]                       ; 8-byte Folded Spill
	add	x23, x19, #12
	mov	x0, x23
	bl	_cl_qmap_head
	mov	x25, x0
	mov	x0, x23
	bl	_cl_qmap_end
	cmp	x25, x0
	b.eq	LBB0_12
; %bb.3:
	mov	w22, #0
Lloh0:
	adrp	x27, _IB_NODE_TYPE_SWITCH@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IB_NODE_TYPE_SWITCH@GOTPAGEOFF]
Lloh2:
	adrp	x20, _IB_SUCCESS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IB_SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x19, _IB_NODE_TYPE_CA@GOTPAGE
Lloh5:
	ldr	x19, [x19, _IB_NODE_TYPE_CA@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x26
	bl	_cc_send_sw_cong_setting
	ldr	x8, [x20]
	cmp	x0, x8
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	csinv	w22, w22, wzr, eq
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x23
	bl	_cl_qmap_end
	mov	x25, x24
	cmp	x24, x0
	b.eq	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x25, #16]
	mov	x0, x25
	bl	_cl_qmap_next
	mov	x24, x0
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_osm_node_get_type
	ldr	x8, [x27]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x26
	bl	_osm_node_get_type
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x26
	bl	_cc_send_ca_cong_setting
	mov	x19, x27
	mov	x27, x0
	ldr	x28, [x20]
	ldr	w2, [x25]
	mov	x0, x21
	mov	x1, x26
	bl	_cc_send_cct
	cmp	x27, x28
	mov	x27, x19
Lloh6:
	adrp	x19, _IB_NODE_TYPE_CA@GOTPAGE
Lloh7:
	ldr	x19, [x19, _IB_NODE_TYPE_CA@GOTPAGEOFF]
	ldr	x8, [x20]
	ccmp	x0, x8, #0, eq
	b	LBB0_5
LBB0_11:
	mov	w22, #0
	b	LBB0_14
LBB0_12:
	mov	w22, #0
LBB0_13:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_cl_plock_release
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_OSM_LOG_EXIT
LBB0_14:
	mov	x0, x22
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_NODE_TYPE_SWITCH,8,3        ; @IB_NODE_TYPE_SWITCH
	.comm	_IB_SUCCESS,8,3                 ; @IB_SUCCESS
	.comm	_IB_NODE_TYPE_CA,8,3            ; @IB_NODE_TYPE_CA
.subsections_via_symbols
