	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jni_get_env                 ## -- Begin function ff_jni_get_env
	.p2align	4, 0x90
_ff_jni_get_env:                        ## @ff_jni_get_env
	.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
	movq	%rdi, %r14
	movq	$0, -32(%rbp)
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_java_vm@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	jne	LBB0_3
## %bb.1:
	movq	%r14, %rdi
	callq	_av_jni_get_java_vm
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	_jni_create_pthread_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_once@GOTPCREL(%rip), %rdi
	callq	_pthread_once
	movq	_current_env@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_pthread_getspecific
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_JNI_VERSION_1_6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-32(%rbp), %rsi
	callq	*(%rax)
	cmpl	$128, %eax
	je	LBB0_13
## %bb.5:
	cmpl	$129, %eax
	je	LBB0_10
## %bb.6:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.7:
	movq	(%rbx), %rdi
	movq	(%rdi), %rax
	leaq	-32(%rbp), %rsi
	xorl	%edx, %edx
	callq	*8(%rax)
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_av_log
	movq	$0, -32(%rbp)
	jmp	LBB0_13
LBB0_2:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_12
LBB0_10:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_12
LBB0_11:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	callq	_av_log
LBB0_13:
	movq	_lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	-32(%rbp), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%r15), %edi
	movq	-32(%rbp), %rsi
	callq	_pthread_setspecific
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_lock,4,2                       ## @lock
	.comm	_java_vm,8,3                    ## @java_vm
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Java virtual machine has been registered\n"

	.comm	_once,4,2                       ## @once
	.comm	_jni_create_pthread_key,4,2     ## @jni_create_pthread_key
	.comm	_current_env,4,2                ## @current_env
	.comm	_JNI_VERSION_1_6,4,2            ## @JNI_VERSION_1_6
L_.str.1:                               ## @.str.1
	.asciz	"Failed to attach the JNI environment to the current thread\n"

L_.str.2:                               ## @.str.2
	.asciz	"The specified JNI version is not supported\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get the JNI environment attached to this thread\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_jni_get_env                 ; -- Begin function ff_jni_get_env
	.p2align	2
_ff_jni_get_env:                        ; @ff_jni_get_env
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x0, _lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_pthread_mutex_lock
Lloh2:
	adrp	x20, _java_vm@GOTPAGE
Lloh3:
	ldr	x20, [x20, _java_vm@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_av_jni_get_java_vm
	str	x0, [x20]
	cbz	x0, LBB0_8
LBB0_2:
Lloh4:
	adrp	x8, _jni_create_pthread_key@GOTPAGE
Lloh5:
	ldr	x8, [x8, _jni_create_pthread_key@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, _once@GOTPAGE
Lloh8:
	ldr	x0, [x0, _once@GOTPAGEOFF]
	bl	_pthread_once
Lloh9:
	adrp	x21, _current_env@GOTPAGE
Lloh10:
	ldr	x21, [x21, _current_env@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_pthread_getspecific
	str	x0, [sp, #8]
	cbnz	x0, LBB0_12
; %bb.3:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _JNI_VERSION_1_6@GOTPAGE
Lloh12:
	ldr	x9, [x9, _JNI_VERSION_1_6@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x9]
	add	x1, sp, #8
	blr	x8
	cmp	w0, #128
	b.eq	LBB0_12
; %bb.4:
	cmp	w0, #129
	b.eq	LBB0_9
; %bb.5:
	cmp	w0, #130
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x20]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x2, #0
	blr	x8
	cbz	w0, LBB0_13
; %bb.7:
Lloh14:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	xzr, [sp, #8]
	b	LBB0_12
LBB0_8:
Lloh19:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh24:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.2@PAGE
Lloh28:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh29:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x2, l_.str.3@PAGE
Lloh33:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_av_log
LBB0_12:
Lloh34:
	adrp	x0, _lock@GOTPAGE
Lloh35:
	ldr	x0, [x0, _lock@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #64
	ret
LBB0_13:
	ldr	w0, [x21]
	ldr	x1, [sp, #8]
	bl	_pthread_setspecific
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_lock,4,2                       ; @lock
	.comm	_java_vm,8,3                    ; @java_vm
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Java virtual machine has been registered\n"

	.comm	_once,4,2                       ; @once
	.comm	_jni_create_pthread_key,4,2     ; @jni_create_pthread_key
	.comm	_current_env,4,2                ; @current_env
	.comm	_JNI_VERSION_1_6,4,2            ; @JNI_VERSION_1_6
l_.str.1:                               ; @.str.1
	.asciz	"Failed to attach the JNI environment to the current thread\n"

l_.str.2:                               ; @.str.2
	.asciz	"The specified JNI version is not supported\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get the JNI environment attached to this thread\n"

.subsections_via_symbols
