	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmc_lut_fillp
_bgmc_lut_fillp:                        ## @bgmc_lut_fillp
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	$1, %r13d
	movl	%r15d, %ecx
	shll	%cl, %r13d
	movq	_cf_table@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_LUT_SIZE@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	xorl	%r10d, %r10d
	movq	_FREQ_BITS@GOTPCREL(%rip), %r11
	movq	_LUT_BITS@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%r10
	cmpq	$16, %r10
	je	LBB0_8
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
                                        ##       Child Loop BB0_5 Depth 3
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r8,%r10,8), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_5 Depth 3
	incl	%r12d
	movl	(%r11), %ecx
	subl	(%r14), %ecx
	movl	%r12d, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_4 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	addl	%r13d, %edx
	cmpl	%eax, (%rbx,%rdx,4)
	ja	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %ecx
	shrl	%cl, %edx
	movl	%edx, (%rdi)
	addq	$4, %rdi
	movl	(%r9), %ecx
	cmpl	%ecx, %r12d
	jb	LBB0_4
	jmp	LBB0_7
LBB0_8:
	movl	%r15d, (%rsi)
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.comm	_FREQ_BITS,4,2                  ## @FREQ_BITS
	.comm	_LUT_BITS,4,2                   ## @LUT_BITS
	.comm	_cf_table,8,3                   ## @cf_table
	.no_dead_strip	_bgmc_lut_fillp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmc_lut_fillp
_bgmc_lut_fillp:                        ; @bgmc_lut_fillp
	.cfi_startproc
; %bb.0:
	mov	x8, #0
	mov	w9, #1
	lsl	w9, w9, w2
Lloh0:
	adrp	x11, _cf_table@GOTPAGE
Lloh1:
	ldr	x11, [x11, _cf_table@GOTPAGEOFF]
Lloh2:
	adrp	x10, _LUT_SIZE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LUT_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	ldr	w16, [x10]
Lloh5:
	adrp	x12, _FREQ_BITS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _FREQ_BITS@GOTPAGEOFF]
Lloh7:
	adrp	x13, _LUT_BITS@GOTPAGE
Lloh8:
	ldr	x13, [x13, _LUT_BITS@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x8, #16
	b.eq	LBB0_7
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
	cbz	w16, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w14, #0
	ldr	x15, [x11, x8, lsl #3]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
	mov	w16, #0
	add	w14, w14, #1
	ldr	w17, [x12]
	ldr	w3, [x13]
	sub	w17, w17, w3
	lsl	w17, w14, w17
LBB0_5:                                 ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w16, w9, w16
	ldr	w3, [x15, w16, uxtw #2]
	cmp	w3, w17
	b.hi	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	lsr	w16, w16, w2
	str	w16, [x0], #4
	ldr	w16, [x10]
	cmp	w14, w16
	b.lo	LBB0_4
	b	LBB0_1
LBB0_7:
	str	w2, [x1]
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.comm	_FREQ_BITS,4,2                  ; @FREQ_BITS
	.comm	_LUT_BITS,4,2                   ; @LUT_BITS
	.comm	_cf_table,8,3                   ; @cf_table
	.no_dead_strip	_bgmc_lut_fillp
.subsections_via_symbols
