	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_format_rep
_cm_format_rep:                         ## @cm_format_rep
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	addq	$24, %rdi
	movq	_CM_REP_ATTR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	32(%r15), %edx
	callq	_cm_format_mad_hdr
	movl	20(%r15), %eax
	movl	%eax, 20(%rbx)
	movl	16(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	48(%r14), %edi
	callq	_cpu_to_be32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cm_rep_set_starting_psn
	movl	44(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	24(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_cm_rep_set_target_ack_delay
	movl	40(%r14), %esi
	movq	%rbx, %rdi
	callq	_cm_rep_set_failover
	movl	36(%r14), %esi
	movq	%rbx, %rdi
	callq	_cm_rep_set_rnr_retry_count
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%r15), %rax
	movq	_IB_QPT_XRC_TGT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cm_rep_set_srq
	movl	24(%r14), %edi
	callq	_cpu_to_be32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cm_rep_set_local_eecn
	jmp	LBB0_3
LBB0_1:
	movl	32(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	28(%r14), %esi
	movq	%rbx, %rdi
	callq	_cm_rep_set_flow_ctrl
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_cm_rep_set_srq
	movl	24(%r14), %edi
	callq	_cpu_to_be32
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cm_rep_set_local_qpn
LBB0_3:
	movq	16(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movl	(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_REP_ATTR_ID,4,2             ## @CM_REP_ATTR_ID
	.comm	_IB_QPT_XRC_TGT,8,3             ## @IB_QPT_XRC_TGT
	.no_dead_strip	_cm_format_rep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_format_rep
_cm_format_rep:                         ; @cm_format_rep
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, x0, #24
Lloh0:
	adrp	x8, _CM_REP_ATTR_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_REP_ATTR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x21, #32]
	bl	_cm_format_mad_hdr
	ldr	d0, [x21, #16]
	str	d0, [x19, #16]
	ldr	w0, [x20, #48]
	bl	_cpu_to_be32
	mov	x1, x0
	mov	x0, x19
	bl	_cm_rep_set_starting_psn
	ldr	w8, [x20, #44]
	str	w8, [x19, #12]
	ldr	x8, [x21, #24]
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_cm_rep_set_target_ack_delay
	ldr	w1, [x20, #40]
	mov	x0, x19
	bl	_cm_rep_set_failover
	ldr	w1, [x20, #36]
	mov	x0, x19
	bl	_cm_rep_set_rnr_retry_count
	ldp	x9, x8, [x21]
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh3:
	adrp	x8, _IB_QPT_XRC_TGT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPT_XRC_TGT@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #1
	bl	_cm_rep_set_srq
	ldr	w0, [x20, #24]
	bl	_cpu_to_be32
	mov	x1, x0
	mov	x0, x19
	bl	_cm_rep_set_local_eecn
	ldr	x1, [x20, #16]
	cbnz	x1, LBB0_3
	b	LBB0_5
LBB0_2:
	ldp	w1, w8, [x20, #28]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_cm_rep_set_flow_ctrl
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cm_rep_set_srq
	ldr	w0, [x20, #24]
	bl	_cpu_to_be32
	mov	x1, x0
	mov	x0, x19
	bl	_cm_rep_set_local_qpn
	ldr	x1, [x20, #16]
	cbz	x1, LBB0_5
LBB0_3:
	ldr	x2, [x20, #8]
	cbz	x2, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_memcpy
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_REP_ATTR_ID,4,2             ; @CM_REP_ATTR_ID
	.comm	_IB_QPT_XRC_TGT,8,3             ; @IB_QPT_XRC_TGT
	.no_dead_strip	_cm_format_rep
.subsections_via_symbols
