	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_pack_mbuf              ## -- Begin function uni_msg_pack_mbuf
	.p2align	4, 0x90
_uni_msg_pack_mbuf:                     ## @uni_msg_pack_mbuf
	.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
	pushq	%rax
	.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, %r15
	movq	%rdi, %r14
	movq	_M_NOWAIT@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_MT_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_MGETHDR
	movq	_MHLEN@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	%rbx, (%r13)
	setae	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_uni_msg_len
	movq	%rax, %rbx
	cmpq	(%r13), %rax
	jbe	LBB0_6
## %bb.4:
	movl	(%r12), %esi
	callq	_MCLGET
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	callq	_m_freem
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%r15, %rdi
	jmp	LBB0_2
LBB0_5:
	movq	_MCLBYTES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rbx
	cmovaeq	%rax, %rbx
LBB0_6:
	movq	(%r14), %rdi
LBB0_2:
	movq	%rbx, %rdx
	callq	_bcopy
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_MT_DATA,4,2                    ## @MT_DATA
	.comm	_MHLEN,8,3                      ## @MHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uni_msg_pack_mbuf: hdrlen > MHLEN"

	.comm	_MCLBYTES,8,3                   ## @MCLBYTES
	.comm	_MLEN,8,3                       ## @MLEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uni_msg_pack_mbuf              ; -- Begin function uni_msg_pack_mbuf
	.p2align	2
_uni_msg_pack_mbuf:                     ; @uni_msg_pack_mbuf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _M_NOWAIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _MT_DATA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MT_DATA@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_MGETHDR
Lloh5:
	adrp	x23, _MHLEN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MHLEN@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x8, x20
	cset	w0, hs
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	cbnz	x20, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_uni_msg_len
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x0, x8
	b.ls	LBB0_6
; %bb.2:
	ldr	w1, [x22]
	bl	_MCLGET
	cbnz	w0, LBB0_5
; %bb.3:
	bl	_m_freem
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x21
	b	LBB0_7
LBB0_5:
Lloh9:
	adrp	x8, _MCLBYTES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MCLBYTES@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x20, x8
	csel	x20, x20, x8, lo
LBB0_6:
	ldr	x0, [x19]
LBB0_7:
	mov	x2, x20
	bl	_bcopy
	brk	#0x1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_MT_DATA,4,2                    ; @MT_DATA
	.comm	_MHLEN,8,3                      ; @MHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uni_msg_pack_mbuf: hdrlen > MHLEN"

	.comm	_MCLBYTES,8,3                   ; @MCLBYTES
	.comm	_MLEN,8,3                       ; @MLEN
.subsections_via_symbols
