	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tee_process_slave_failure
_tee_process_slave_failure:             ## @tee_process_slave_failure
	.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	%esi, %r15d
	movq	%rdi, %r13
	movq	(%rdi), %r12
	movl	%esi, %ebx
	shlq	$3, %rbx
	addq	8(%r12), %rbx
	movl	%edx, %r14d
	decl	4(%r12)
	movq	%rbx, %rdi
	callq	_close_slave
	cmpl	$0, 4(%r12)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rax
	movq	_ON_SLAVE_FAILURE_ABORT@GOTPCREL(%rip), %rcx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_5
LBB0_4:
	movl	%r14d, %edi
	callq	_av_err2str
	movl	(%r12), %ecx
	movl	4(%r12), %r9d
	movl	%ecx, (%rsp)
	leaq	L_.str.2(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"All tee outputs failed.\n"

	.comm	_ON_SLAVE_FAILURE_ABORT,8,3     ## @ON_SLAVE_FAILURE_ABORT
L_.str.1:                               ## @.str.1
	.asciz	"Slave muxer #%u failed, aborting.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Slave muxer #%u failed: %s, continuing with %u/%u slaves.\n"

	.no_dead_strip	_tee_process_slave_failure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tee_process_slave_failure
_tee_process_slave_failure:             ; @tee_process_slave_failure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0]
	ldr	x8, [x23, #8]
	add	x22, x8, w1, uxtw #3
	ldr	w8, [x23, #4]
	sub	w8, w8, #1
	str	w8, [x23, #4]
	mov	x0, x22
	bl	_close_slave
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _ON_SLAVE_FAILURE_ABORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ON_SLAVE_FAILURE_ABORT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x10, _AV_LOG_ERROR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x10]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.2:
	str	x21, [sp]
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_av_log
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x2, l_.str@PAGE
Lloh12:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_av_err2str
                                        ; kill: def $w0 killed $w0 def $x0
	ldp	w9, w8, [x23]
	stp	x8, x9, [sp, #16]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	stp	x21, x0, [sp]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_av_log
	mov	w19, #0
LBB0_5:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"All tee outputs failed.\n"

	.comm	_ON_SLAVE_FAILURE_ABORT,8,3     ; @ON_SLAVE_FAILURE_ABORT
l_.str.1:                               ; @.str.1
	.asciz	"Slave muxer #%u failed, aborting.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Slave muxer #%u failed: %s, continuing with %u/%u slaves.\n"

	.no_dead_strip	_tee_process_slave_failure
.subsections_via_symbols
