	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_http_open
_rtmp_http_open:                        ## @rtmp_http_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$2056, %rsp                     ## imm = 0x808
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movq	16(%rdi), %r12
	movl	32(%r12), %r8d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$4, %r9d
	pushq	%rax
	pushq	$0
	pushq	$0
	pushq	%r12
	callq	_av_url_split
	addq	$32, %rsp
	cmpq	$0, 40(%r12)
	movq	(%r12), %r9
	je	LBB0_4
## %bb.1:
	testq	%r9, %r9
	jns	LBB0_3
## %bb.2:
	movq	_RTMPTS_DEFAULT_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r9, (%r12)
LBB0_3:
	movl	32(%r12), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_7
LBB0_4:
	testq	%r9, %r9
	jns	LBB0_6
## %bb.5:
	movq	_RTMPT_DEFAULT_PORT@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	%r9, (%r12)
LBB0_6:
	movl	32(%r12), %r8d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
LBB0_7:
	leaq	-2096(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	xorl	%ecx, %ecx
	pushq	%rax
	callq	_ff_url_join
	addq	$16, %rsp
	leaq	24(%r12), %r15
	movq	_AVIO_FLAG_READ_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	8(%r14), %rcx
	leaq	-2096(%rbp), %rsi
	movq	%r15, %rdi
	callq	_ffurl_alloc
	testl	%eax, %eax
	js	LBB0_25
## %bb.8:
	leaq	L_.str.3(%rip), %rdx
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_snprintf
	movq	(%r15), %rax
	movl	8(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%ecx, %ecx
	callq	_av_opt_set
	movq	(%r15), %rax
	movl	8(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	L_.str.6(%rip), %rdx
	xorl	%ecx, %ecx
	callq	_av_opt_set
	movq	(%r15), %rax
	movl	8(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	L_.str.8(%rip), %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_av_opt_set_bin
	movq	(%r15), %rdi
	cmpq	$0, (%rdi)
	je	LBB0_9
LBB0_12:
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_ffurl_connect
	testl	%eax, %eax
	js	LBB0_25
## %bb.13:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rdi
	movslq	%r15d, %rax
	movq	8(%r12), %rsi
	addq	%rax, %rsi
	movl	$8, %edx
	subl	%eax, %edx
	callq	_ffurl_read
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%eax, %ebx
	cmpl	(%r13), %eax
	je	LBB0_16
## %bb.21:                              ##   in Loop: Header=BB0_14 Depth=1
	testl	%ebx, %ebx
	js	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	addl	%ebx, %r15d
	cmpl	$8, %r15d
	jne	LBB0_14
## %bb.23:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_9:
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rdi
	callq	_av_strdup
	movq	(%r15), %rdi
	movq	%rax, (%rdi)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_25:
	movl	%eax, %ebx
LBB0_26:
	movq	%r14, %rdi
	callq	_rtmp_http_close
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%ebx, %eax
	addq	$2056, %rsp                     ## imm = 0x808
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r15d, %ebx
	movl	%r15d, %r14d
	sarl	$31, %r14d
	andl	%r15d, %r14d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	8(%r12), %rax
	movsbl	-1(%rax,%rbx), %edi
	decq	%rbx
	callq	_av_isspace
	testq	%rax, %rax
	jne	LBB0_17
## %bb.19:
	incl	%ebx
	movl	%ebx, %r14d
LBB0_20:
	movq	8(%r12), %rax
	movslq	%r14d, %rcx
	movb	$0, (%rax,%rcx)
	movl	$1, 16(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RTMPTS_DEFAULT_PORT,8,3        ## @RTMPTS_DEFAULT_PORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"https"

L_.str.1:                               ## @.str.1
	.asciz	"/open/1"

	.comm	_RTMPT_DEFAULT_PORT,8,3         ## @RTMPT_DEFAULT_PORT
L_.str.2:                               ## @.str.2
	.asciz	"http"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ## @AVIO_FLAG_READ_WRITE
L_.str.3:                               ## @.str.3
	.asciz	"Cache-Control: no-cache\r\nContent-type: application/x-fcs\r\nUser-Agent: Shockwave Flash\r\n"

L_.str.4:                               ## @.str.4
	.asciz	"headers"

L_.str.5:                               ## @.str.5
	.asciz	"multiple_requests"

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

L_.str.7:                               ## @.str.7
	.asciz	"post_data"

L_.str.8:                               ## @.str.8
	.space	1

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_rtmp_http_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_http_open
_rtmp_http_open:                        ; @rtmp_http_open
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #2080
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0, #16]
	ldr	w4, [x19, #32]
	str	x1, [sp, #8]
	str	wzr, [sp]
	mov	x0, #0
	mov	w1, #0
	mov	x2, #0
	mov	w3, #0
	mov	w5, #4
	mov	x6, x19
	mov	x7, #0
	bl	_av_url_split
	ldr	x8, [x19, #40]
	ldr	x5, [x19]
	cbz	x8, LBB0_4
; %bb.1:
	tbz	x5, #63, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _RTMPTS_DEFAULT_PORT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTMPTS_DEFAULT_PORT@GOTPAGEOFF]
Lloh5:
	ldr	x5, [x8]
	str	x5, [x19]
LBB0_3:
	ldr	w4, [x19, #32]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_7
LBB0_4:
	tbz	x5, #63, LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, _RTMPT_DEFAULT_PORT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTMPT_DEFAULT_PORT@GOTPAGEOFF]
Lloh10:
	ldr	x5, [x8]
	str	x5, [x19]
LBB0_6:
	ldr	w4, [x19, #32]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_7:
Lloh13:
	adrp	x6, l_.str.1@PAGE
Lloh14:
	add	x6, x6, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #1024
	mov	x3, #0
	bl	_ff_url_join
	add	x21, x19, #24
Lloh15:
	adrp	x8, _AVIO_FLAG_READ_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AVIO_FLAG_READ_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, x20, #8
	add	x1, sp, #24
	mov	x0, x21
	bl	_ffurl_alloc
	tbnz	w0, #31, LBB0_18
; %bb.8:
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x0, sp, #1048
	mov	w1, #1024
	bl	_snprintf
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #1048
	mov	w3, #0
	bl	_av_opt_set
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
Lloh24:
	adrp	x2, l_.str.6@PAGE
Lloh25:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w3, #0
	bl	_av_opt_set
	ldr	x8, [x21]
	ldr	w0, [x8, #8]
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
Lloh28:
	adrp	x2, l_.str.8@PAGE
Lloh29:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	w3, #1
	mov	w4, #0
	bl	_av_opt_set_bin
	ldr	x0, [x21]
	ldr	x8, [x0]
	cbz	x8, LBB0_14
LBB0_9:
	mov	x1, #0
	bl	_ffurl_connect
	tbnz	w0, #31, LBB0_18
; %bb.10:
	mov	w23, #0
	mov	w24, #8
Lloh30:
	adrp	x25, _AVERROR_EOF@GOTPAGE
Lloh31:
	ldr	x25, [x25, _AVERROR_EOF@GOTPAGEOFF]
Lloh32:
	adrp	x21, _EIO@GOTPAGE
Lloh33:
	ldr	x21, [x21, _EIO@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #24]
	ldr	x8, [x19, #8]
	add	x1, x8, w23, sxtw
	sub	w2, w24, w23
	bl	_ffurl_read
	ldr	w8, [x25]
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.eq	LBB0_22
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x22, x0
	tbnz	w0, #31, LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w22, w23
	cmp	w23, #8
	b.ne	LBB0_11
	b	LBB0_17
LBB0_14:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.15:
	mov	x0, x8
	bl	_av_strdup
	mov	x8, x0
	ldr	x0, [x21]
	str	x8, [x0]
	cbnz	x8, LBB0_9
; %bb.16:
Lloh34:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x21]
	bl	_AVERROR
LBB0_18:
	mov	x22, x0
LBB0_19:
	mov	x0, x20
	bl	_rtmp_http_close
LBB0_20:
	ldur	x8, [x29, #-72]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.21:
	mov	x0, x22
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_22:
	mov	w8, w23
	cmp	w23, #0
	csel	w20, w23, wzr, lt
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	ldr	x9, [x19, #8]
	sub	x21, x8, #1
	add	x8, x9, x8
	ldursb	w0, [x8, #-1]
	bl	_av_isspace
	mov	x8, x21
	cbnz	x0, LBB0_23
; %bb.25:
	add	w20, w21, #1
LBB0_26:
	mov	w22, #0
	ldr	x8, [x19, #8]
	strb	wzr, [x8, w20, sxtw]
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_20
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_RTMPTS_DEFAULT_PORT,8,3        ; @RTMPTS_DEFAULT_PORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"https"

l_.str.1:                               ; @.str.1
	.asciz	"/open/1"

	.comm	_RTMPT_DEFAULT_PORT,8,3         ; @RTMPT_DEFAULT_PORT
l_.str.2:                               ; @.str.2
	.asciz	"http"

	.comm	_AVIO_FLAG_READ_WRITE,4,2       ; @AVIO_FLAG_READ_WRITE
l_.str.3:                               ; @.str.3
	.asciz	"Cache-Control: no-cache\r\nContent-type: application/x-fcs\r\nUser-Agent: Shockwave Flash\r\n"

l_.str.4:                               ; @.str.4
	.asciz	"headers"

l_.str.5:                               ; @.str.5
	.asciz	"multiple_requests"

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

l_.str.7:                               ; @.str.7
	.asciz	"post_data"

l_.str.8:                               ; @.str.8
	.space	1

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_rtmp_http_open
.subsections_via_symbols
