	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jni_set_media_data_source
_jni_set_media_data_source:             ## @jni_set_media_data_source
	.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	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_g_clazz@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__get__catchAll
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_J4AC_IMediaDataSource__close__catchAll
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_J4A_DeleteGlobalRef__p
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__set__catchAll
LBB0_2:
	testq	%r15, %r15
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*(%rax)
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_J4A_ExceptionCheck__catchAll
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	testq	%r15, %r15
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__set__catchAll
	movq	%r15, %r12
	jmp	LBB0_7
LBB0_3:
	xorl	%r12d, %r12d
LBB0_7:
	movq	_g_clazz@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_unlock
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_clazz,4,2                    ## @g_clazz
	.no_dead_strip	_jni_set_media_data_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jni_set_media_data_source
_jni_set_media_data_source:             ; @jni_set_media_data_source
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _g_clazz@GOTPAGE
Lloh1:
	ldr	x0, [x0, _g_clazz@GOTPAGEOFF]
	bl	_pthread_mutex_lock
	mov	x0, x20
	mov	x1, x19
	bl	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__get__catchAll
	str	x0, [sp, #8]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x1, x0
	mov	x0, x20
	bl	_J4AC_IMediaDataSource__close__catchAll
	add	x1, sp, #8
	mov	x0, x20
	bl	_J4A_DeleteGlobalRef__p
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	bl	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__set__catchAll
LBB0_2:
	cbz	x21, LBB0_6
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_J4A_ExceptionCheck__catchAll
	mov	x22, #0
	cbnz	x0, LBB0_7
; %bb.4:
	cbz	x21, LBB0_7
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_J4AC_IjkMediaPlayer__mNativeMediaDataSource__set__catchAll
	mov	x22, x21
	b	LBB0_7
LBB0_6:
	mov	x22, #0
LBB0_7:
Lloh2:
	adrp	x0, _g_clazz@GOTPAGE
Lloh3:
	ldr	x0, [x0, _g_clazz@GOTPAGEOFF]
	bl	_pthread_mutex_unlock
	mov	x0, x22
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_g_clazz,4,2                    ; @g_clazz
	.no_dead_strip	_jni_set_media_data_source
.subsections_via_symbols
