	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_http_read
_rtmp_http_read:                        ## @rtmp_http_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%eax, %ebx
	subl	%eax, %r14d
	cltq
	addq	%rax, 8(%r13)
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%ebx, %ebx
	jg	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%r13), %edi
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %rsi
	movl	%r14d, %edx
	callq	_ffurl_read
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %eax
	jns	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_10
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ecx, %eax
	jne	LBB0_1
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 16(%r13)
	jne	LBB0_18
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r13)
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_16
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, 8(%r13)
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$50000, %edi                    ## imm = 0xC350
	callq	_av_usleep
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edx
	callq	_rtmp_http_write
	testl	%eax, %eax
	js	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_rtmp_http_send_cmd
	testl	%eax, %eax
	js	LBB0_10
## %bb.17:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_AVIO_FLAG_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_2
LBB0_18:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"send"

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

L_.str.2:                               ## @.str.2
	.asciz	"idle"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ## @AVIO_FLAG_NONBLOCK
	.no_dead_strip	_rtmp_http_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_http_read
_rtmp_http_read:                        ; @rtmp_http_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	mov	w19, #0
	ldr	x26, [x0, #8]
Lloh0:
	adrp	x27, _AVERROR_EOF@GOTPAGE
Lloh1:
	ldr	x27, [x27, _AVERROR_EOF@GOTPAGEOFF]
Lloh2:
	adrp	x23, l_.str@PAGE
Lloh3:
	add	x23, x23, l_.str@PAGEOFF
Lloh4:
	adrp	x28, _AVIO_FLAG_NONBLOCK@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AVIO_FLAG_NONBLOCK@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
Lloh8:
	adrp	x25, l_.str.2@PAGE
Lloh9:
	add	x25, x25, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w19, w0, w19
	sub	w20, w20, w0
	ldr	x8, [x26, #8]
	add	x8, x8, w0, sxtw
	str	x8, [x26, #8]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w19, #1
	b.ge	LBB0_16
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26, #24]
	add	x1, x21, w19, sxtw #2
	mov	x2, x20
	bl	_ffurl_read
	ldr	w8, [x27]
	tbz	w0, #31, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, w8
	b.ne	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w0, #0
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #16]
	cbnz	x8, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_rtmp_http_send_cmd
	tbz	w0, #31, LBB0_13
	b	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26, #8]
	cbnz	x8, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #50000
	bl	_av_usleep
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x24
	mov	w2, #1
	bl	_rtmp_http_write
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	mov	x1, x25
	bl	_rtmp_http_send_cmd
	tbnz	w0, #31, LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_2
LBB0_14:
Lloh10:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_15:
	mov	x19, x0
LBB0_16:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"send"

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

l_.str.2:                               ; @.str.2
	.asciz	"idle"

	.comm	_AVIO_FLAG_NONBLOCK,4,2         ; @AVIO_FLAG_NONBLOCK
	.no_dead_strip	_rtmp_http_read
.subsections_via_symbols
