	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mp_Output
_mp_Output:                             ## @mp_Output
	.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	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	shll	$15, %r8d
	shll	$14, %r9d
	orl	%r8d, %r9d
	orl	(%rbx), %r9d
	movl	%r9d, -48(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %r13
	movq	%r13, %rsi
	callq	_ua_htons
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$2, %edx
	jmp	LBB0_3
LBB0_2:
	shll	$31, %r8d
	shll	$30, %r9d
	orl	%r8d, %r9d
	orl	(%rbx), %r9d
	movl	%r9d, -44(%rbp)
	leaq	-44(%rbp), %rdi
	leaq	-52(%rbp), %r13
	movq	%r13, %rsi
	callq	_ua_htonl
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$4, %edx
LBB0_3:
	xorl	%ecx, %ecx
	callq	_m_prepend
	movq	%rax, %r12
	movq	_LogDEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_log_IsKept
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r14), %r13d
	movl	(%rbx), %r14d
	movq	%r12, %rdi
	callq	_m_length
	movl	(%r15), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
LBB0_5:
	movq	(%rbx), %rsi
	movq	8(%rbx), %rdi
	callq	_inc_seq
	movq	%rax, (%rbx)
	movq	8(%r15), %rax
	movq	_ST_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	leaq	8(%r15), %rdi
	callq	_ccp_Required
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_LogPHASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdi
	callq	_LINK_QUEUES
	leaq	-1(%rax), %rcx
	movq	_PROTO_MP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_link_PushPacket
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LogDEBUG,4,2                   ## @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MP[frag %d]: Send %zd bytes on link `%s'\n"

	.comm	_ST_OPENED,8,3                  ## @ST_OPENED
	.comm	_LogPHASE,4,2                   ## @LogPHASE
L_.str.1:                               ## @.str.1
	.asciz	"%s: Not transmitting... waiting for CCP\n"

	.comm	_PROTO_MP,4,2                   ## @PROTO_MP
	.no_dead_strip	_mp_Output
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mp_Output
_mp_Output:                             ; @mp_Output
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	lsl	w8, w5, #14
	orr	w8, w8, w4, lsl #15
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #28
	bl	_ua_htons
	add	x1, sp, #28
	mov	x0, x22
	mov	w2, #2
	b	LBB0_3
LBB0_2:
	lsl	w8, w5, #30
	orr	w8, w8, w4, lsl #31
	ldr	w9, [x21]
	orr	w8, w8, w9
	str	w8, [sp, #20]
	add	x0, sp, #20
	add	x1, sp, #28
	bl	_ua_htonl
	add	x1, sp, #28
	mov	x0, x22
	mov	w2, #4
LBB0_3:
	mov	w3, #0
	bl	_m_prepend
	mov	x22, x0
Lloh0:
	adrp	x23, _LogDEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LogDEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_log_IsKept
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w23, [x23]
	ldr	w24, [x21]
	mov	x0, x22
	bl	_m_length
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [x19]
	stp	x0, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	bl	_log_Printf
LBB0_5:
	ldp	x1, x0, [x21]
	bl	_inc_seq
	str	x0, [x21]
	mov	x0, x19
	ldr	x8, [x0, #8]!
Lloh4:
	adrp	x9, _ST_OPENED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ST_OPENED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.6:
	bl	_ccp_Required
	cbz	x0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x8, _LogPHASE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LogPHASE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	ldr	w2, [x19]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_log_Printf
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_LINK_QUEUES
	sub	x3, x0, #1
Lloh12:
	adrp	x8, _PROTO_MP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PROTO_MP@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_link_PushPacket
LBB0_9:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LogDEBUG,4,2                   ; @LogDEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MP[frag %d]: Send %zd bytes on link `%s'\n"

	.comm	_ST_OPENED,8,3                  ; @ST_OPENED
	.comm	_LogPHASE,4,2                   ; @LogPHASE
l_.str.1:                               ; @.str.1
	.asciz	"%s: Not transmitting... waiting for CCP\n"

	.comm	_PROTO_MP,4,2                   ; @PROTO_MP
	.no_dead_strip	_mp_Output
.subsections_via_symbols
