	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmpe_open
_rtmpe_open:                            ## @rtmpe_open
	.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	$1312, %rsp                     ## imm = 0x520
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -40(%rbp)
	movq	16(%rdi), %r14
	leaq	-1332(%rbp), %rbx
	leaq	-304(%rbp), %r8
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$256, %r9d                      ## imm = 0x100
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	%rbx
	callq	_av_url_split
	addq	$32, %rsp
	cmpq	$0, 8(%r14)
	movl	-1332(%rbp), %r9d
	je	LBB0_4
## %bb.1:
	testl	%r9d, %r9d
	jns	LBB0_3
## %bb.2:
	movl	$80, -1332(%rbp)
	movl	$80, %r9d
LBB0_3:
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_4:
	testl	%r9d, %r9d
	jns	LBB0_6
## %bb.5:
	movl	$1935, -1332(%rbp)              ## imm = 0x78F
	movl	$1935, %r9d                     ## imm = 0x78F
LBB0_6:
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rdx
LBB0_7:
	leaq	-1328(%rbp), %rdi
	leaq	-304(%rbp), %r8
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%ecx, %ecx
	pushq	$0
	callq	_ff_url_join
	addq	$16, %rsp
	movq	_AVIO_FLAG_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r12), %rcx
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	xorl	%r15d, %r15d
	leaq	-1328(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	pushq	%r12
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	testl	%eax, %eax
	jns	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_rtmpe_close
	movl	%ebx, %r15d
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%r15d, %eax
	addq	$1312, %rsp                     ## imm = 0x520
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffrtmphttp"

L_.str.1:                               ## @.str.1
	.asciz	"tcp"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ## @AVIO_FLAG_READ_WRITE
	.no_dead_strip	_rtmpe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmpe_open
_rtmpe_open:                            ; @rtmpe_open
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [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 w27, -40
	.cfi_offset w28, -48
	sub	sp, sp, #1312
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x20, [x0, #16]
	str	x1, [sp, #8]
	str	wzr, [sp]
	add	x4, sp, #1048
	add	x6, sp, #20
	mov	x0, #0
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w5, #256
	mov	x7, #0
	bl	_av_url_split
	ldr	x8, [x20, #8]
	ldr	w5, [sp, #20]
	cbz	x8, LBB0_4
; %bb.1:
	tbz	w5, #31, LBB0_3
; %bb.2:
	mov	w5, #80
	str	w5, [sp, #20]
LBB0_3:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	tbz	w5, #31, LBB0_6
; %bb.5:
	mov	w5, #1935
	str	w5, [sp, #20]
LBB0_6:
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_7:
	add	x0, sp, #24
	add	x4, sp, #1048
	mov	w1, #1024
	mov	x3, #0
	mov	x6, #0
	bl	_ff_url_join
Lloh7:
	adrp	x8, _AVIO_FLAG_READ_WRITE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVIO_FLAG_READ_WRITE@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	add	x3, x19, #8
	ldp	w6, w5, [x19]
	add	x1, sp, #24
	mov	x0, x20
	mov	x4, #0
	mov	x7, x19
	bl	_ffurl_open_whitelist
	tbnz	w0, #31, LBB0_9
; %bb.8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
	mov	x20, x0
	mov	x0, x19
	bl	_rtmpe_close
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	add	sp, sp, #1312
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffrtmphttp"

l_.str.1:                               ; @.str.1
	.asciz	"tcp"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ; @AVIO_FLAG_READ_WRITE
	.no_dead_strip	_rtmpe_open
.subsections_via_symbols
