	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtmp_http_send_cmd
_rtmp_http_send_cmd:                    ## @rtmp_http_send_cmd
	.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
	subq	$2072, %rsp                     ## imm = 0x818
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r10
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -32(%rbp)
	movq	(%rdi), %rbx
	movl	40(%rbx), %r8d
	movl	36(%rbx), %r9d
	movl	28(%rbx), %eax
	movl	32(%rbx), %r11d
	leal	1(%rax), %ecx
	movl	%ecx, 28(%rbx)
	leaq	L_.str.1(%rip), %r15
	leaq	L_.str(%rip), %rdx
	leaq	-2080(%rbp), %r14
	movq	%r14, %rdi
	movl	$2048, %esi                     ## imm = 0x800
	xorl	%ecx, %ecx
	pushq	%rax
	pushq	%r11
	pushq	%r10
	pushq	%r15
	callq	_ff_url_join
	addq	$32, %rsp
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rax), %edi
	movl	24(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%r8d, %r8d
	callq	_av_opt_set_bin
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_ff_http_do_new_request
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	$0, 16(%rbx)
	movq	8(%rbx), %rdi
	leaq	-2084(%rbp), %rsi
	movl	$1, %edx
	callq	_ffurl_read
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	$0, (%rbx)
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$2072, %rsp                     ## imm = 0x818
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"http"

L_.str.1:                               ## @.str.1
	.asciz	"/%s/%s/%d"

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

	.no_dead_strip	_rtmp_http_send_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtmp_http_send_cmd
_rtmp_http_send_cmd:                    ; @rtmp_http_send_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	sp, sp, #2080
	mov	x7, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	x19, [x0]
	ldp	w5, w4, [x19, #36]
	ldp	w9, w8, [x19, #28]
	add	w10, w9, #1
	str	w10, [x19, #28]
	stp	w8, w9, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
Lloh5:
	adrp	x6, l_.str.1@PAGE
Lloh6:
	add	x6, x6, l_.str.1@PAGEOFF
	add	x0, sp, #24
	mov	w1, #2048
	mov	x3, #0
	bl	_ff_url_join
	ldp	x8, x3, [x19, #8]
	ldr	w0, [x8]
	ldr	w2, [x19, #24]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w4, #0
	bl	_av_opt_set_bin
	ldr	x0, [x19, #8]
	add	x1, sp, #24
	bl	_ff_http_do_new_request
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	xzr, [x19, #16]
	ldr	x0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #1
	bl	_ffurl_read
	tbnz	w0, #31, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
	ldur	x8, [x29, #-24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	add	sp, sp, #2080
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"http"

l_.str.1:                               ; @.str.1
	.asciz	"/%s/%s/%d"

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

	.no_dead_strip	_rtmp_http_send_cmd
.subsections_via_symbols
