	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function const_ber_parse
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4170000000000000              ## double 16777216
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_const_ber_parse:                       ## @const_ber_parse
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	(%rcx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcmp
	movl	$2, %r15d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.1:
	movl	$1, %r15d
	cmpl	$2, %r12d
	jne	LBB0_14
## %bb.2:
	movq	8(%rbx), %rdi
	leaq	-36(%rbp), %rdx
	xorl	%esi, %esi
	callq	_parse_gen
	cmpl	$0, -36(%rbp)
	jne	LBB0_14
## %bb.3:
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	ja	LBB0_14
## %bb.4:
	ucomisd	LCPI0_0(%rip), %xmm0
	ja	LBB0_14
## %bb.5:
	movq	_MAX_PKT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	shll	$2, %esi
	movl	%esi, (%r14)
	movl	$1, %r15d
	movl	$1, %edi
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_calloc
	movsd	-48(%rbp), %xmm5                ## 8-byte Reload
                                        ## xmm5 = mem[0],zero
	testq	%rax, %rax
	je	LBB0_14
## %bb.6:
	movq	%rax, 8(%r14)
	movl	(%rbx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_13
## %bb.7:
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpl	$1, %r8d
	jne	LBB0_9
## %bb.8:
	xorl	%edx, %edx
	jmp	LBB0_11
LBB0_9:
	subsd	%xmm5, %xmm0
	mulsd	%xmm0, %xmm0
	mulsd	%xmm0, %xmm0
	movapd	%xmm0, %xmm1
	mulsd	%xmm0, %xmm1
	movl	%r8d, %esi
	andl	$-2, %esi
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	xorl	%edx, %edx
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	movl	$16777215, %edi                 ## imm = 0xFFFFFF
	movapd	%xmm2, %xmm0
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movapd	%xmm2, %xmm4
	subsd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	cvttsd2si	%xmm4, %ebx
	cmpl	$16777215, %ebx                 ## imm = 0xFFFFFF
	cmovgel	%edi, %ebx
	mulsd	%xmm1, %xmm0
	movapd	%xmm2, %xmm4
	subsd	%xmm0, %xmm4
	mulsd	%xmm3, %xmm4
	cvttsd2si	%xmm4, %ecx
	movl	%ebx, (%rax,%rdx,4)
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	cmovgel	%edi, %ecx
	movl	%ecx, 4(%rax,%rdx,4)
	addq	$2, %rdx
	mulsd	%xmm1, %xmm0
	cmpq	%rdx, %rsi
	jne	LBB0_10
LBB0_11:
	testb	$1, %r8b
	je	LBB0_13
## %bb.12:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_1(%rip), %xmm1
	cvttsd2si	%xmm1, %ecx
	cmpl	$16777215, %ecx                 ## imm = 0xFFFFFF
	movl	$16777215, %esi                 ## imm = 0xFFFFFF
	cmovll	%ecx, %esi
	movl	%esi, (%rax,%rdx,4)
LBB0_13:
	mulsd	LCPI0_1(%rip), %xmm5
	movq	16(%r14), %rax
	movsd	%xmm5, (%rax)
	xorl	%r15d, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ber"

	.comm	_MAX_PKT,4,2                    ## @MAX_PKT
	.no_dead_strip	_const_ber_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function const_ber_parse
_const_ber_parse:                       ; @const_ber_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	d9, d8, [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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x3
	mov	x21, x2
	mov	x19, x1
	ldr	x0, [x3]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #2
	b	LBB0_11
LBB0_2:
	cmp	w21, #2
	b.ne	LBB0_10
; %bb.3:
	ldr	x0, [x20, #8]
	add	x2, sp, #12
	mov	x1, #0
	bl	_parse_gen
	ldr	w8, [sp, #12]
	mov	w20, #1
	cbnz	w8, LBB0_11
; %bb.4:
	fmov	d8, d0
	fcmp	d0, #0.0
	fmov	d0, #1.00000000
	fccmp	d8, d0, #0, pl
	b.gt	LBB0_11
; %bb.5:
Lloh2:
	adrp	x21, _MAX_PKT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAX_PKT@GOTPAGEOFF]
	ldr	w8, [x21]
	lsl	w1, w8, #2
	str	w1, [x19]
	mov	w20, #1
	mov	w0, #1
	bl	_calloc
	cbz	x0, LBB0_11
; %bb.6:
	str	x0, [x19, #8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	fmov	d0, #1.00000000
	fsub	d1, d0, d8
	fmul	d1, d1, d1
	fmul	d1, d1, d1
	fmul	d1, d1, d1
	mov	w9, #16777215
	fmov	d2, #1.00000000
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	fsub	d3, d0, d2
	fcvtzs	w10, d3, #24
	cmp	w10, w9
	csel	w10, w10, w9, lt
	str	w10, [x0], #4
	fmul	d2, d1, d2
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	w20, #0
	mov	x8, #4715268809856909312
	fmov	d0, x8
	fmul	d0, d8, d0
	ldr	x8, [x19, #16]
	str	d0, [x8]
	b	LBB0_11
LBB0_10:
	mov	w20, #1
LBB0_11:
	mov	x0, x20
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ber"

	.comm	_MAX_PKT,4,2                    ; @MAX_PKT
	.no_dead_strip	_const_ber_parse
.subsections_via_symbols
