	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tee_open
_tee_open:                              ## @tee_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %rax
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)
	movq	16(%rdi), %r12
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_av_strstart
	movq	_AVIO_FLAG_READ@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.25:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_24
LBB0_1:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	-48(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_14
## %bb.2:
	leaq	12(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_child_delim@GOTPCREL(%rip), %rbx
	leaq	-88(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$0, (%rcx)
	je	LBB0_14
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	leaq	-48(%rbp), %rdi
	callq	_av_get_token
	movq	%rax, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -88(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	movl	(%r12), %esi
	incl	%esi
	movl	$8, %edx
	callq	_av_realloc_array
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, 8(%r12)
	movslq	(%r12), %rcx
	leaq	(%rax,%rcx,8), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	-72(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	leaq	-64(%rbp), %rcx
	callq	_ff_tee_parse_slave_options
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r12), %rdi
	shlq	$3, %rdi
	addq	8(%r12), %rdi
	movq	-64(%rbp), %rsi
	movl	4(%r14), %eax
	movl	8(%r14), %r9d
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, %r8
	pushq	%r14
	pushq	%rax
	callq	_ffurl_open_whitelist
	addq	$16, %rsp
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	leaq	-72(%rbp), %rdi
	callq	_av_freep
	movq	%r15, %rdi
	callq	_av_dict_free
	testl	%r13d, %r13d
	js	LBB0_5
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	(%r12)
	movq	-48(%rbp), %rdi
	movl	(%rbx), %esi
	callq	_strspn
	movq	-48(%rbp), %rcx
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movq	%rcx, -48(%rbp)
	jmp	LBB0_13
LBB0_14:
	movl	$0, (%r14)
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_23
## %bb.15:
	movq	8(%r12), %rcx
	leaq	-1(%rsi), %rdx
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$3, %rdx
	jae	LBB0_17
## %bb.16:
	xorl	%edi, %edi
	xorl	%edx, %edx
	jmp	LBB0_19
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_5:
	movq	%r14, %rdi
	callq	_tee_close
	jmp	LBB0_24
LBB0_17:
	andl	$-4, %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdi,8), %rbx
	movq	8(%rcx,%rdi,8), %rax
	orl	(%rbx), %edx
	orl	(%rax), %edx
	movq	16(%rcx,%rdi,8), %rax
	orl	(%rax), %edx
	movq	24(%rcx,%rdi,8), %rax
	orl	(%rax), %edx
	addq	$4, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_18
LBB0_19:
	testq	%r8, %r8
	je	LBB0_22
## %bb.20:
	leaq	(%rcx,%rdi,8), %rcx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi,8), %rax
	orl	(%rax), %edx
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_21
LBB0_22:
	movl	%edx, (%r14)
LBB0_23:
	xorl	%r13d, %r13d
LBB0_24:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tee:"

	.comm	_AVIO_FLAG_READ,4,2             ## @AVIO_FLAG_READ
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_child_delim,4,2                ## @child_delim
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_tee_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tee_open
_tee_open:                              ; @tee_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x2
	mov	x8, x1
	mov	x19, x0
	str	x1, [sp, #24]
	ldr	x23, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x8
	bl	_av_strstart
Lloh2:
	adrp	x8, _AVIO_FLAG_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVIO_FLAG_READ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x22, x0
	b	LBB0_25
LBB0_2:
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbz	w8, LBB0_13
; %bb.3:
	add	x21, x19, #12
Lloh8:
	adrp	x24, _child_delim@GOTPAGE
Lloh9:
	ldr	x24, [x24, _child_delim@GOTPAGEOFF]
Lloh10:
	adrp	x25, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x8]
	cbz	w8, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	add	x0, sp, #24
	bl	_av_get_token
	stp	xzr, x0, [sp, #8]
	str	xzr, [sp]
	cbz	x0, LBB0_16
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x23, #8]
	ldr	w8, [x23]
	add	w1, w8, #1
	mov	w2, #8
	bl	_av_realloc_array
	cbz	x0, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x0, [x23, #8]
	ldrsw	x8, [x23]
	add	x0, x0, x8, lsl #3
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	x1, [sp, #16]
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x19
	bl	_ff_tee_parse_slave_options
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23, #8]
	ldrsw	x9, [x23]
	add	x0, x8, x9, lsl #3
	ldr	x1, [sp, #8]
	ldp	w6, w5, [x19, #4]
	mov	x4, sp
	mov	x2, x20
	mov	x3, x21
	mov	x7, x19
	bl	_ffurl_open_whitelist
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x25]
	bl	_AVERROR
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, x0
	add	x0, sp, #16
	bl	_av_freep
	mov	x0, sp
	bl	_av_dict_free
	tbnz	w22, #31, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
	ldr	x0, [sp, #24]
	ldr	w1, [x24]
	bl	_strspn
	ldr	x8, [sp, #24]
	cbz	x0, LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	str	x8, [sp, #24]
	b	LBB0_4
LBB0_13:
	str	wzr, [x19]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.14:
	ldr	x9, [x23, #8]
	cmp	w8, #4
	b.hs	LBB0_19
; %bb.15:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_22
LBB0_16:
	ldr	w0, [x25]
	bl	_AVERROR
	mov	x22, x0
LBB0_17:
	mov	x0, x19
	bl	_tee_close
	b	LBB0_25
LBB0_18:
	mov	w22, #0
	b	LBB0_25
LBB0_19:
	mov	w13, #0
	mov	w14, #0
	mov	w12, #0
	mov	w11, #0
	and	x10, x8, #0xfffffffc
	add	x15, x9, #16
	mov	x16, x10
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldp	x17, x0, [x15, #-16]
	ldp	x1, x2, [x15], #32
	ldr	w17, [x17]
	ldr	w0, [x0]
	ldr	w1, [x1]
	orr	w13, w13, w17
	orr	w14, w14, w0
	ldr	w17, [x2]
	orr	w12, w12, w1
	orr	w11, w11, w17
	subs	x16, x16, #4
	b.ne	LBB0_20
; %bb.21:
	orr	w13, w14, w13
	orr	w12, w12, w13
	orr	w11, w11, w12
	cmp	x10, x8
	b.eq	LBB0_24
LBB0_22:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	ldr	w10, [x10]
	orr	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_23
LBB0_24:
	mov	w22, #0
	str	w11, [x19]
LBB0_25:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tee:"

	.comm	_AVIO_FLAG_READ,4,2             ; @AVIO_FLAG_READ
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_child_delim,4,2                ; @child_delim
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_tee_open
.subsections_via_symbols
