	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function randomise_mbuf_chain
_randomise_mbuf_chain:                  ## @randomise_mbuf_chain
	.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	%rdi, %r12
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	leaq	-44(%rbp), %r14
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_rand
	movl	%eax, -44(%rbp)
	movslq	%ebx, %rbx
	leaq	4(%rbx), %r15
	movslq	(%r12), %rax
	leal	(%rax,%r13), %edx
	cmpq	%rax, %r15
	movl	$4, %eax
	cmovbl	%eax, %edx
	movq	16(%r12), %rdi
	addq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_memcpy
	addl	$-4, %r13d
	addl	$4, %ebx
	cmpl	%r15d, (%r12)
	jg	LBB0_2
LBB0_3:
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_randomise_mbuf_chain
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_randomise_mbuf_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function randomise_mbuf_chain
_randomise_mbuf_chain:                  ; @randomise_mbuf_chain
	.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	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w20, #0
	mov	w21, #0
	mov	w22, #4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_rand
	str	w0, [sp, #12]
	sxtw	x8, w20
	add	x23, x8, #4
	ldrsw	x9, [x19]
	add	w10, w21, w9
	cmp	x23, x9
	csel	w2, w22, w10, lo
	ldr	x9, [x19, #16]
	add	x0, x9, x8
	add	x1, sp, #12
	bl	_memcpy
	ldr	w8, [x19]
	sub	w21, w21, #4
	add	w20, w20, #4
	cmp	w8, w23
	b.gt	LBB0_2
LBB0_3:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_randomise_mbuf_chain
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_randomise_mbuf_chain
.subsections_via_symbols
