	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m_get                          ## -- Begin function m_get
	.p2align	4, 0x90
_m_get:                                 ## @m_get
	.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
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_MB_MAX@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movslq	%r15d, %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_MB_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_M_MAXLEN@GOTPCREL(%rip), %rax
	leaq	-1(%r14), %rcx
	cmpq	(%rax), %rcx
	jb	LBB0_4
## %bb.3:
	movq	_LogERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movslq	%r14d, %r12
	movl	%r15d, %edi
	callq	_mbuftype
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AbortProgram
LBB0_4:
	movq	%r14, %rdi
	callq	_M_BUCKET
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_M_ROUNDUP
	movq	%rax, %r13
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:
	movq	(%rbx), %rax
	decq	%rax
	movq	%rax, (%rbx)
	je	LBB0_6
## %bb.7:
	leaq	(%rbx,%r13), %rcx
	movq	%rax, (%rbx,%r13)
	movq	%rcx, (%r12)
	jmp	LBB0_11
LBB0_8:
	movq	_BUCKET_CHUNK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%r13, %rdi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	_LogALERT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BUCKET_CHUNK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	imulq	%r13, %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_log_Printf
	movq	_EX_OSERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AbortProgram
	movq	(%r12), %rbx
LBB0_10:
	leaq	(%rbx,%r13), %rax
	movq	%rax, (%r12)
	movq	_BUCKET_CHUNK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	decq	%rax
	movq	%rax, (%rbx,%r13)
LBB0_11:
	movq	$0, 8(%rbx,%r13)
	jmp	LBB0_12
LBB0_6:
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
LBB0_12:
	leaq	16(%rbx), %r12
	movq	_mbuf_Mallocs@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	addq	$-24, %r13
	movq	%r13, 16(%rbx)
	movq	%r14, 24(%rbx)
	movl	%r15d, 32(%rbx)
	movq	_MemMap@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	shlq	$4, %rcx
	incl	8(%rax,%rcx)
	addq	%r13, (%rax,%rcx)
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MB_MAX,4,2                     ## @MB_MAX
	.comm	_LogERROR,4,2                   ## @LogERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad mbuf type %d\n"

	.comm	_MB_UNKNOWN,4,2                 ## @MB_UNKNOWN
	.comm	_M_MAXLEN,8,3                   ## @M_MAXLEN
L_.str.1:                               ## @.str.1
	.asciz	"Request for mbuf size %lu (\"%s\") denied !\n"

	.comm	_EX_OSERR,4,2                   ## @EX_OSERR
	.comm	_BUCKET_CHUNK,8,3               ## @BUCKET_CHUNK
	.comm	_LogALERT,4,2                   ## @LogALERT
L_.str.2:                               ## @.str.2
	.asciz	"Failed to allocate memory (%lu)\n"

	.comm	_mbuf_Mallocs,4,2               ## @mbuf_Mallocs
	.comm	_MemMap,8,3                     ## @MemMap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_m_get                          ; -- Begin function m_get
	.p2align	2
_m_get:                                 ; @m_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MB_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MB_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x21, _LogERROR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LogERROR@GOTPAGEOFF]
	cmp	w8, w1
	b.ge	LBB0_2
; %bb.1:
	ldr	w0, [x21]
	sxtw	x2, w20
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_log_Printf
Lloh7:
	adrp	x8, _MB_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MB_UNKNOWN@GOTPAGEOFF]
Lloh9:
	ldr	w20, [x8]
LBB0_2:
Lloh10:
	adrp	x8, _M_MAXLEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _M_MAXLEN@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	sub	x9, x19, #1
	cmp	x9, x8
	b.lo	LBB0_4
; %bb.3:
	ldr	w21, [x21]
	sxtw	x22, w19
	mov	x0, x20
	bl	_mbuftype
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_log_Printf
Lloh15:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_AbortProgram
LBB0_4:
	mov	x0, x19
	bl	_M_BUCKET
	mov	x23, x0
	mov	x0, x19
	bl	_M_ROUNDUP
	mov	x21, x0
	ldr	x22, [x23]
	cbz	x22, LBB0_7
; %bb.5:
	ldr	x8, [x22]
	subs	x8, x8, #1
	str	x8, [x22]
	b.eq	LBB0_10
; %bb.6:
	add	x9, x22, x21
	str	x9, [x23]
	stp	x8, xzr, [x9]
	b	LBB0_11
LBB0_7:
Lloh18:
	adrp	x24, _BUCKET_CHUNK@GOTPAGE
Lloh19:
	ldr	x24, [x24, _BUCKET_CHUNK@GOTPAGEOFF]
	ldr	x8, [x24]
	mul	x0, x8, x21
	bl	_malloc
	mov	x22, x0
	str	x0, [x23]
	cbnz	x0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _LogALERT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LogALERT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	x8, [x24]
	mul	x2, x8, x21
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_log_Printf
Lloh25:
	adrp	x8, _EX_OSERR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EX_OSERR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_AbortProgram
	ldr	x22, [x23]
LBB0_9:
	add	x8, x22, x21
	str	x8, [x23]
	ldr	x9, [x24]
	sub	x9, x9, #1
	stp	x9, xzr, [x8]
	b	LBB0_11
LBB0_10:
	ldr	x8, [x22, #8]
	str	x8, [x23]
LBB0_11:
	add	x23, x22, #16
Lloh28:
	adrp	x8, _mbuf_Mallocs@GOTPAGE
Lloh29:
	ldr	x8, [x8, _mbuf_Mallocs@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	sub	x8, x21, #24
	stp	x8, x19, [x22, #16]
	str	w20, [x22, #32]
Lloh30:
	adrp	x9, _MemMap@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MemMap@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x9, x9, w20, sxtw #4
	ldr	w10, [x9, #8]
	add	w10, w10, #1
	str	w10, [x9, #8]
	ldr	x10, [x9]
	add	x8, x10, x8
	str	x8, [x9]
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MB_MAX,4,2                     ; @MB_MAX
	.comm	_LogERROR,4,2                   ; @LogERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad mbuf type %d\n"

	.comm	_MB_UNKNOWN,4,2                 ; @MB_UNKNOWN
	.comm	_M_MAXLEN,8,3                   ; @M_MAXLEN
l_.str.1:                               ; @.str.1
	.asciz	"Request for mbuf size %lu (\"%s\") denied !\n"

	.comm	_EX_OSERR,4,2                   ; @EX_OSERR
	.comm	_BUCKET_CHUNK,8,3               ; @BUCKET_CHUNK
	.comm	_LogALERT,4,2                   ; @LogALERT
l_.str.2:                               ; @.str.2
	.asciz	"Failed to allocate memory (%lu)\n"

	.comm	_mbuf_Mallocs,4,2               ; @mbuf_Mallocs
	.comm	_MemMap,8,3                     ; @MemMap
.subsections_via_symbols
