	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function const_ber_run
_const_ber_run:                         ## @const_ber_run
	.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	%rsi, %r14
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	xorl	%eax, %eax
	callq	_my_random24
	movq	%rax, %r12
	movq	8(%r14), %r13
	movq	_MAX_PKT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_2
## %bb.1:
	decl	%ecx
	leaq	L_.str(%rip), %rsi
	movl	$5, %edi
	movl	%ebx, %edx
	movq	%rax, %rbx
	callq	_RD
	movl	(%rbx), %ebx
	decl	%ebx
LBB0_2:
	movslq	%ebx, %rax
	xorl	%ecx, %ecx
	cmpq	(%r13,%rax,8), %r12
	setl	%cl
	movl	%ecx, 4(%r15)
	shll	$3, %eax
	movq	(%r14), %rcx
	addl	%eax, 4(%rcx)
	movl	4(%r15), %eax
	addl	%eax, 8(%rcx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PKT,4,2                    ## @MAX_PKT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pkt len %d too large, trim to %d"

	.no_dead_strip	_const_ber_run
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function const_ber_run
_const_ber_run:                         ; @const_ber_run
	.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, x1
	mov	x19, x0
	ldr	w21, [x0]
	bl	_my_random24
	mov	x22, x0
	ldr	x23, [x20, #8]
Lloh0:
	adrp	x24, _MAX_PKT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MAX_PKT@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w21, w8
	b.lt	LBB0_2
; %bb.1:
	sub	w3, w8, #1
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #5
	mov	x2, x21
	bl	_RD
	ldr	w8, [x24]
	sub	w21, w8, #1
LBB0_2:
	ldr	x8, [x23, w21, sxtw #3]
	cmp	x22, x8
	cset	w8, lt
	str	w8, [x19, #4]
	ldr	x8, [x20]
	ldp	w9, w10, [x8, #4]
	add	w9, w9, w21, lsl #3
	str	w9, [x8, #4]
	ldr	w9, [x19, #4]
	add	w9, w10, w9
	str	w9, [x8, #8]
	mov	w0, #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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PKT,4,2                    ; @MAX_PKT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pkt len %d too large, trim to %d"

	.no_dead_strip	_const_ber_run
.subsections_via_symbols
