	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_invoke_result
_handle_invoke_result:                  ## @handle_invoke_result
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	(%rdi), %r14
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rcx
	movl	$10, %edx
	callq	_find_tracked_method
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_29
## %bb.1:
	movq	-48(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_29
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_28
## %bb.5:
	addq	$16, %r14
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_read_number_result
	testq	%rax, %rax
	je	LBB0_28
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	jmp	LBB0_28
LBB0_7:
	cmpq	$0, 24(%r14)
	je	LBB0_17
## %bb.8:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_window_ack_size
	testl	%eax, %eax
	jns	LBB0_19
	jmp	LBB0_25
LBB0_10:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_read_number_result
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
	cmpq	$0, 24(%r14)
	je	LBB0_24
LBB0_12:
	cmpl	$-1, (%r14)
	je	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_get_stream_length
	testl	%eax, %eax
	js	LBB0_25
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_play
	testl	%eax, %eax
	js	LBB0_25
## %bb.15:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_buffer_time
	jmp	LBB0_25
LBB0_17:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_release_stream
	testl	%eax, %eax
	js	LBB0_25
## %bb.18:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_fcpublish_stream
	testl	%eax, %eax
	js	LBB0_25
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_create_stream
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_28
## %bb.20:
	cmpq	$0, 24(%r14)
	je	LBB0_28
## %bb.21:
	movq	40(%r14), %rdx
	testq	%rdx, %rdx
	je	LBB0_27
LBB0_22:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_fcsubscribe_stream
	movl	%eax, %r12d
	jmp	LBB0_28
LBB0_23:
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movsd	%xmm0, 8(%r14)
	cmpq	$0, 24(%r14)
	jne	LBB0_12
LBB0_24:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_gen_publish
LBB0_25:
	movl	%eax, %r12d
LBB0_28:
	movq	-48(%rbp), %rdi
	callq	_av_free
LBB0_29:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	cmpl	$-1, (%r14)
	jne	LBB0_28
## %bb.30:
	movq	32(%r14), %rdx
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"connect"

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

	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.2:                               ## @.str.2
	.asciz	"Unexpected reply on connect()\n"

L_.str.3:                               ## @.str.3
	.asciz	"getStreamLength"

L_.str.4:                               ## @.str.4
	.asciz	"Unexpected reply on getStreamLength()\n"

	.no_dead_strip	_handle_invoke_result
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_invoke_result
_handle_invoke_result:                  ; @handle_invoke_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0]
	str	xzr, [sp, #8]
	add	x3, sp, #8
	mov	w2, #10
	bl	_find_tracked_method
	mov	x21, x0
	tbnz	w0, #31, LBB0_25
; %bb.1:
	ldr	x23, [sp, #8]
	cbz	x23, LBB0_25
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_7
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbz	w0, LBB0_9
; %bb.4:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x23
	bl	_strcmp
	cbnz	w0, LBB0_24
; %bb.5:
	add	x1, x20, #16
	mov	x0, x22
	bl	_read_number_result
	cbz	x0, LBB0_24
; %bb.6:
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.4@PAGE
Lloh10:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_av_log
	b	LBB0_24
LBB0_7:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_15
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_window_ack_size
	tbz	w0, #31, LBB0_17
	b	LBB0_23
LBB0_9:
	mov	x1, sp
	mov	x0, x22
	bl	_read_number_result
	cbz	x0, LBB0_21
; %bb.10:
Lloh11:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.2@PAGE
Lloh15:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_22
LBB0_11:
	ldr	w8, [x20]
	cmn	w8, #1
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_get_stream_length
	tbnz	w0, #31, LBB0_23
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_play
	tbnz	w0, #31, LBB0_23
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_buffer_time
	b	LBB0_23
LBB0_15:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_release_stream
	tbnz	w0, #31, LBB0_23
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_fcpublish_stream
	tbnz	w0, #31, LBB0_23
LBB0_17:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_create_stream
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.18:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_24
; %bb.19:
	ldr	x2, [x20, #40]
	cbz	x2, LBB0_26
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_fcsubscribe_stream
	mov	x21, x0
	b	LBB0_24
LBB0_21:
	ldr	d0, [sp]
	str	d0, [x20, #8]
	ldr	x8, [x20, #24]
	cbnz	x8, LBB0_11
LBB0_22:
	mov	x0, x19
	mov	x1, x20
	bl	_gen_publish
LBB0_23:
	mov	x21, x0
LBB0_24:
	ldr	x0, [sp, #8]
	bl	_av_free
LBB0_25:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_26:
	ldr	w8, [x20]
	cmn	w8, #1
	b.ne	LBB0_24
; %bb.27:
	ldr	x2, [x20, #32]
	b	LBB0_20
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"connect"

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

	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.2:                               ; @.str.2
	.asciz	"Unexpected reply on connect()\n"

l_.str.3:                               ; @.str.3
	.asciz	"getStreamLength"

l_.str.4:                               ; @.str.4
	.asciz	"Unexpected reply on getStreamLength()\n"

	.no_dead_strip	_handle_invoke_result
.subsections_via_symbols
