	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bgmc_lut_getp
_bgmc_lut_getp:                         ## @bgmc_lut_getp
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_LUT_BUFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	decq	%rdx
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_av_clip
                                        ## kill: def $eax killed $eax def $rax
	movq	_LUT_SIZE@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	imull	(%rdx), %eax
	shll	$4, %eax
	leaq	(%rbx,%rax,4), %rbx
	cmpl	%r15d, (%r14,%rcx,4)
	je	LBB0_2
## %bb.1:
	leaq	(%r14,%rcx,4), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_bgmc_lut_fillp
LBB0_2:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_BUFF,8,3                   ## @LUT_BUFF
	.comm	_LUT_SIZE,4,2                   ## @LUT_SIZE
	.no_dead_strip	_bgmc_lut_getp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bgmc_lut_getp
_bgmc_lut_getp:                         ; @bgmc_lut_getp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _LUT_BUFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LUT_BUFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x2, x8, #1
	mov	x0, x19
	mov	w1, #0
	bl	_av_clip
Lloh3:
	adrp	x8, _LUT_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUT_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w0, w8
	lsl	w8, w8, #4
	add	x20, x20, w8, uxtw #2
	add	x1, x21, w0, uxtw #2
	ldr	w8, [x1]
	cmp	w8, w19
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x2, x19
	bl	_bgmc_lut_fillp
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_BUFF,8,3                   ; @LUT_BUFF
	.comm	_LUT_SIZE,4,2                   ; @LUT_SIZE
	.no_dead_strip	_bgmc_lut_getp
.subsections_via_symbols
