	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_build_proto_msg
_port_build_proto_msg:                  ## @port_build_proto_msg
	.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
	movl	%r9d, %r14d
	movl	%r8d, %r12d
	movl	%ecx, %ebx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movq	_LONG_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_buf_acquire
	movq	%rax, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r13, %rdi
	callq	_buf_msg
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	%rax, %rbx
	movq	_LONG_H_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %r8d
	callq	_msg_init
	movq	%rbx, %rdi
	movl	16(%rbp), %esi
	callq	_msg_set_errcode
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_msg_set_destport
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_msg_set_origport
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_msg_set_orignode
	movq	%rbx, %rdi
	movl	24(%rbp), %esi
	callq	_msg_set_transp_seqno
	movq	%rbx, %rdi
	movl	32(%rbp), %esi
	callq	_msg_set_msgcnt
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_msg_dbg
LBB0_2:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LONG_H_SIZE,4,2                ## @LONG_H_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PORT>SEND>:"

	.no_dead_strip	_port_build_proto_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_build_proto_msg
_port_build_proto_msg:                  ; @port_build_proto_msg
	.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
	mov	x28, x7
	mov	x23, x6
	mov	x25, x5
	mov	x27, x4
	mov	x21, x3
	mov	x22, x2
	mov	x26, x1
	mov	x24, x0
Lloh0:
	adrp	x20, _LONG_H_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LONG_H_SIZE@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_buf_acquire
	mov	x19, x0
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x29, #16]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x19
	bl	_buf_msg
	str	w28, [sp, #8]                   ; 4-byte Folded Spill
	mov	x28, x0
	ldr	w3, [x20]
	mov	x1, x27
	mov	x2, x25
	mov	x4, x26
	bl	_msg_init
	mov	x0, x28
	mov	x1, x23
	bl	_msg_set_errcode
	mov	x0, x28
	mov	x1, x24
	bl	_msg_set_destport
	mov	x0, x28
	mov	x1, x22
	bl	_msg_set_origport
	mov	x0, x28
	mov	x1, x21
	bl	_msg_set_orignode
	mov	x0, x28
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	bl	_msg_set_transp_seqno
	mov	x0, x28
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_msg_set_msgcnt
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x28
	bl	_msg_dbg
LBB0_2:
	mov	x0, x19
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_LONG_H_SIZE,4,2                ; @LONG_H_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PORT>SEND>:"

	.no_dead_strip	_port_build_proto_msg
.subsections_via_symbols
