	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cc_mad_post
_cc_mad_post:                           ## @cc_mad_post
	.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
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	callq	_OSM_LOG_ENTER
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_osm_physp_get_port_num
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_osm_madw_get_cc_mad_ptr
	movq	%rax, %r12
	movl	$1, 8(%rax)
	movq	_IB_MCLASS_CC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r12)
	movl	$2, 12(%r12)
	movq	_IB_MAD_METHOD_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r12)
	leaq	20(%r14), %r13
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%r12)
	movq	%r13, %rdi
	callq	_cl_atomic_inc
	movl	%eax, %edi
	callq	_cl_hton64
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_cl_atomic_inc
	movl	%eax, %edi
	callq	_cl_hton64
	movq	%rax, 16(%r12)
LBB0_2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 40(%r12)
	movq	$0, 32(%r12)
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movq	_IB_CC_LOG_DATA_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_osm_node_get_base_lid
	movl	%eax, 56(%rbx)
	movq	_IB_QP1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
	movq	_IB_QP1_WELL_KNOWN_Q_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cl_hton32
	movl	%eax, 48(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	movq	_CL_DISP_MSGID_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	%r12, %rdi
	callq	_osm_node_get_node_guid
	movl	%eax, 32(%rbx)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_osm_physp_get_port_guid
	movl	%eax, 28(%rbx)
	movl	%r15d, 24(%rbx)
	movq	_IB_MAD_METHOD_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r13, 8(%rbx)
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_cl_spinlock_acquire
	leaq	16(%r14), %rdi
	callq	_cl_atomic_inc
	leaq	12(%r14), %rdi
	movq	%rbx, %rsi
	callq	_cl_qlist_insert_tail
	movq	%r15, %rdi
	callq	_cl_spinlock_release
	leaq	4(%r14), %rdi
	callq	_cl_event_signal
	movl	(%r14), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_OSM_LOG_EXIT                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_MCLASS_CC,4,2               ## @IB_MCLASS_CC
	.comm	_IB_MAD_METHOD_SET,8,3          ## @IB_MAD_METHOD_SET
	.comm	_IB_CC_LOG_DATA_SIZE,4,2        ## @IB_CC_LOG_DATA_SIZE
	.comm	_IB_QP1,4,2                     ## @IB_QP1
	.comm	_IB_QP1_WELL_KNOWN_Q_KEY,4,2    ## @IB_QP1_WELL_KNOWN_Q_KEY
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_CL_DISP_MSGID_NONE,4,2         ## @CL_DISP_MSGID_NONE
	.no_dead_strip	_cc_mad_post
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cc_mad_post
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cc_mad_post:                           ; @cc_mad_post
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x28, [x0, #24]
	ldr	w0, [x0]
	bl	_OSM_LOG_ENTER
	mov	x0, x22
	bl	_osm_physp_get_port_num
	mov	x24, x0
	mov	x0, x20
	bl	_osm_madw_get_cc_mad_ptr
	mov	x26, x0
Lloh0:
	adrp	x8, _IB_MCLASS_CC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_MCLASS_CC@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #72]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x8, _IB_MAD_METHOD_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IB_MAD_METHOD_SET@GOTPAGEOFF]
	str	d0, [x0, #8]
Lloh7:
	ldr	x8, [x8]
	stp	xzr, x8, [x0, #56]
	add	x27, x19, #20
	str	xzr, [x0, #48]
	mov	x0, x27
	bl	_cl_atomic_inc
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cl_hton64
	str	x0, [x26, #16]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x27
	bl	_cl_atomic_inc
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_cl_hton64
	str	x0, [x26, #16]
LBB0_2:
	str	w25, [x26, #40]
	stp	x21, xzr, [x26, #24]
	ldr	w8, [x28]
	str	w8, [x26, #4]
	ldr	w0, [x26]
Lloh8:
	adrp	x8, _IB_CC_LOG_DATA_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_CC_LOG_DATA_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	mov	x0, x23
	mov	x1, x24
	bl	_osm_node_get_base_lid
Lloh11:
	adrp	x8, _IB_QP1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_QP1@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [x20, #52]
Lloh14:
	adrp	x8, _IB_QP1_WELL_KNOWN_Q_KEY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_QP1_WELL_KNOWN_Q_KEY@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_cl_hton32
	str	w0, [x20, #48]
Lloh17:
	adrp	x8, _TRUE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _CL_DISP_MSGID_NONE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _CL_DISP_MSGID_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #40]
	mov	x0, x23
	bl	_osm_node_get_node_guid
	str	w0, [x20, #32]
	mov	x0, x22
	bl	_osm_physp_get_port_guid
	stp	w24, w0, [x20, #24]
Lloh23:
	adrp	x8, _IB_MAD_METHOD_SET@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IB_MAD_METHOD_SET@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	stp	x21, x8, [x20, #8]
	add	x21, x19, #8
	mov	x0, x21
	bl	_cl_spinlock_acquire
	add	x0, x19, #16
	bl	_cl_atomic_inc
	add	x0, x19, #12
	mov	x1, x20
	bl	_cl_qlist_insert_tail
	mov	x0, x21
	bl	_cl_spinlock_release
	add	x0, x19, #4
	bl	_cl_event_signal
	ldr	w0, [x19]
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_OSM_LOG_EXIT
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_MCLASS_CC,4,2               ; @IB_MCLASS_CC
	.comm	_IB_MAD_METHOD_SET,8,3          ; @IB_MAD_METHOD_SET
	.comm	_IB_CC_LOG_DATA_SIZE,4,2        ; @IB_CC_LOG_DATA_SIZE
	.comm	_IB_QP1,4,2                     ; @IB_QP1
	.comm	_IB_QP1_WELL_KNOWN_Q_KEY,4,2    ; @IB_QP1_WELL_KNOWN_Q_KEY
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_CL_DISP_MSGID_NONE,4,2         ; @CL_DISP_MSGID_NONE
	.no_dead_strip	_cc_mad_post
.subsections_via_symbols
