	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cm_format_lap
_cm_format_lap:                         ## @cm_format_lap
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %rbx
	leaq	32(%rdi), %r14
	movq	_CM_LAP_ATTR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CM_MSG_SEQUENCE_LAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_cm_form_tid
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_cm_format_mad_hdr
	movl	16(%r13), %eax
	movl	%eax, 28(%rbx)
	movl	12(%r13), %eax
	movl	%eax, 24(%rbx)
	movl	8(%r13), %esi
	movq	%rbx, %rdi
	callq	_cm_lap_set_remote_qpn
	movq	%rbx, %rdi
	movl	$31, %esi
	callq	_cm_lap_set_remote_resp_timeout
	movups	24(%r12), %xmm0
	movups	%xmm0, 8(%rbx)
	movl	20(%r12), %esi
	movq	%rbx, %rdi
	callq	_cm_lap_set_flow_label
	movl	16(%r12), %esi
	movq	%rbx, %rdi
	callq	_cm_lap_set_traffic_class
	movl	12(%r12), %eax
	movl	%eax, 4(%rbx)
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	callq	_cm_lap_set_packet_rate
	movl	4(%r12), %esi
	movq	%rbx, %rdi
	callq	_cm_lap_set_sl
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cm_lap_set_subnet_local
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_cm_ack_timeout
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cm_lap_set_local_ack_timeout
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.3:
	movl	(%rbx), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_LAP_ATTR_ID,4,2             ## @CM_LAP_ATTR_ID
	.comm	_CM_MSG_SEQUENCE_LAP,4,2        ## @CM_MSG_SEQUENCE_LAP
	.no_dead_strip	_cm_format_lap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cm_format_lap
_cm_format_lap:                         ; @cm_format_lap
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	add	x24, x0, #32
Lloh0:
	adrp	x8, _CM_LAP_ATTR_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CM_LAP_ATTR_ID@GOTPAGEOFF]
Lloh2:
	ldr	w25, [x8]
Lloh3:
	adrp	x8, _CM_MSG_SEQUENCE_LAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CM_MSG_SEQUENCE_LAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_cm_form_tid
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	bl	_cm_format_mad_hdr
	ldur	d0, [x23, #12]
	str	d0, [x21, #24]
	ldr	w1, [x23, #8]
	mov	x0, x21
	bl	_cm_lap_set_remote_qpn
	mov	x0, x21
	mov	w1, #31
	bl	_cm_lap_set_remote_resp_timeout
	ldur	q0, [x22, #24]
	stur	q0, [x21, #8]
	ldr	w1, [x22, #20]
	mov	x0, x21
	bl	_cm_lap_set_flow_label
	ldr	w1, [x22, #16]
	mov	x0, x21
	bl	_cm_lap_set_traffic_class
	ldp	w1, w8, [x22, #8]
	str	w8, [x21, #4]
	mov	x0, x21
	bl	_cm_lap_set_packet_rate
	ldr	w1, [x22, #4]
	mov	x0, x21
	bl	_cm_lap_set_sl
	mov	x0, x21
	mov	w1, #1
	bl	_cm_lap_set_subnet_local
	ldr	x8, [x23]
	ldr	x8, [x8]
	ldr	w0, [x8]
	ldr	w1, [x22]
	bl	_cm_ack_timeout
	mov	x1, x0
	mov	x0, x21
	bl	_cm_lap_set_local_ack_timeout
	cbz	x20, LBB0_3
; %bb.1:
	cbz	x19, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	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
	b	_memcpy
LBB0_3:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_LAP_ATTR_ID,4,2             ; @CM_LAP_ATTR_ID
	.comm	_CM_MSG_SEQUENCE_LAP,4,2        ; @CM_MSG_SEQUENCE_LAP
	.no_dead_strip	_cm_format_lap
.subsections_via_symbols
