	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc_send_sw_cong_setting
_cc_send_sw_cong_setting:               ## @cc_send_sw_cong_setting
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	8(%rax), %r13
	movl	(%rdi), %edi
	callq	_OSM_LOG_ENTER
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_osm_node_get_physp_ptr
	movq	%rax, %r12
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.1:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movl	4(%r13), %esi
	movl	8(%r13), %edi
	movq	_MAD_BLOCK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_osm_mad_pool_get
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_osm_madw_get_cc_mad_ptr
	movq	%rax, %rdi
	callq	_ib_cc_mad_get_mgt_data_ptr
	movq	%rax, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_IB_MAD_ATTR_SW_CONG_SETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_cc_mad_post
	movl	(%r15), %edi
	callq	_OSM_LOG_EXIT
LBB0_6:
	movq	_IB_SUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %edi
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_OSM_LOG
	movq	_IB_INSUFFICIENT_MEMORY@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_SUCCESS,4,2                 ## @IB_SUCCESS
	.comm	_MAD_BLOCK_SIZE,4,2             ## @MAD_BLOCK_SIZE
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR C101: failed to allocate mad\n"

	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ## @IB_INSUFFICIENT_MEMORY
	.comm	_IB_MAD_ATTR_SW_CONG_SETTING,4,2 ## @IB_MAD_ATTR_SW_CONG_SETTING
	.no_dead_strip	_cc_send_sw_cong_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cc_send_sw_cong_setting
_cc_send_sw_cong_setting:               ; @cc_send_sw_cong_setting
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
	ldr	w0, [x0]
	bl	_OSM_LOG_ENTER
	mov	x0, x20
	mov	w1, #0
	bl	_osm_node_get_physp_ptr
	mov	x22, x0
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_5
LBB0_3:
	ldp	w1, w0, [x21, #4]
Lloh0:
	adrp	x8, _MAD_BLOCK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAD_BLOCK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, #0
	bl	_osm_mad_pool_get
	cbz	x0, LBB0_6
; %bb.4:
	mov	x23, x0
	bl	_osm_madw_get_cc_mad_ptr
	bl	_ib_cc_mad_get_mgt_data_ptr
	mov	x1, x21
	mov	w2, #4
	bl	_memcpy
Lloh3:
	adrp	x8, _IB_MAD_ATTR_SW_CONG_SETTING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_MAD_ATTR_SW_CONG_SETTING@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	mov	x3, x22
	mov	w5, #0
	bl	_cc_mad_post
	ldr	w0, [x19]
	bl	_OSM_LOG_EXIT
LBB0_5:
Lloh6:
	adrp	x8, _IB_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_SUCCESS@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh8:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	bl	_OSM_LOG
Lloh13:
	adrp	x8, _IB_INSUFFICIENT_MEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_INSUFFICIENT_MEMORY@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_SUCCESS,4,2                 ; @IB_SUCCESS
	.comm	_MAD_BLOCK_SIZE,4,2             ; @MAD_BLOCK_SIZE
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR C101: failed to allocate mad\n"

	.comm	_IB_INSUFFICIENT_MEMORY,4,2     ; @IB_INSUFFICIENT_MEMORY
	.comm	_IB_MAD_ATTR_SW_CONG_SETTING,4,2 ; @IB_MAD_ATTR_SW_CONG_SETTING
	.no_dead_strip	_cc_send_sw_cong_setting
.subsections_via_symbols
