	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_bundle_buf
_link_bundle_buf:                       ## @link_bundle_buf
	.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	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_buf_msg
	movq	%rax, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_buf_msg
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_msg_size
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_msg_size
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_align
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_msg_user
	movq	_MSG_BUNDLER@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_msg_type
	movq	_OPEN_MSG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	movq	%rbx, %r15
	subq	%r12, %r15
	movq	%r14, %rbx
	movq	%r14, %rdi
	callq	_skb_tailroom
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addq	%r14, %r15
	cmpq	%r15, %rax
	jge	LBB0_5
LBB0_4:
	xorl	%edx, %edx
LBB0_7:
	movl	%edx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_link_max_pkt
	leaq	(%r14,%r13), %r12
	cmpq	%r12, %rax
	movl	$0, %edx
	jl	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_skb_put
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	%r14, %rcx
	callq	_skb_copy_to_linear_data_offset
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_msg_set_size
	movq	%r15, %rdi
	callq	_msg_msgcnt
	leaq	1(%rax), %rsi
	movq	%r15, %rdi
	callq	_msg_set_msgcnt
	movq	%r15, %rdi
	callq	_msg_msgcnt
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_msg_seqno
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r13, %rcx
	movl	%eax, %r8d
	callq	_dbg
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_msg_dbg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_buf_discard
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
	movl	$1, %edx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_BUNDLER,8,3                ## @MSG_BUNDLER
	.comm	_OPEN_MSG,8,3                   ## @OPEN_MSG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Packed msg # %u(%u octets) into pos %u in buf(#%u)\n"

L_.str.1:                               ## @.str.1
	.asciz	"PACKD:"

	.no_dead_strip	_link_bundle_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_bundle_buf
_link_bundle_buf:                       ; @link_bundle_buf
	.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	x20, x2
	mov	x25, x1
	mov	x19, x0
	mov	x0, x1
	bl	_buf_msg
	mov	x22, x0
	mov	x0, x20
	bl	_buf_msg
	mov	x21, x0
	bl	_msg_size
	mov	x23, x0
	mov	x0, x22
	bl	_msg_size
	mov	x26, x0
	bl	_align
	mov	x24, x0
	mov	x0, x22
	bl	_msg_user
Lloh0:
	adrp	x8, _MSG_BUNDLER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_BUNDLER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x22
	bl	_msg_type
Lloh3:
	adrp	x8, _OPEN_MSG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPEN_MSG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
	sub	x26, x24, x26
	mov	x0, x25
	bl	_skb_tailroom
	add	x27, x26, x23
	cmp	x0, x27
	b.lt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_link_max_pkt
	add	x26, x24, x23
	cmp	x0, x26
	b.ge	LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	ret
LBB0_6:
	mov	x0, x25
	mov	x1, x27
	bl	_skb_put
	ldr	w2, [x20]
	mov	x0, x25
	mov	x1, x24
	mov	x3, x23
	bl	_skb_copy_to_linear_data_offset
	mov	x0, x22
	mov	x1, x26
	bl	_msg_set_size
	mov	x0, x22
	bl	_msg_msgcnt
	add	x1, x0, #1
	mov	x0, x22
	bl	_msg_set_msgcnt
	mov	x0, x22
	bl	_msg_msgcnt
	mov	x25, x0
	mov	x0, x22
	bl	_msg_seqno
	mov	x4, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x25
	mov	x2, x23
	mov	x3, x24
	bl	_dbg
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_msg_dbg
	mov	x0, x20
	bl	_buf_discard
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_BUNDLER,8,3                ; @MSG_BUNDLER
	.comm	_OPEN_MSG,8,3                   ; @OPEN_MSG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Packed msg # %u(%u octets) into pos %u in buf(#%u)\n"

l_.str.1:                               ; @.str.1
	.asciz	"PACKD:"

	.no_dead_strip	_link_bundle_buf
.subsections_via_symbols
