	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_toggle_buffering_l         ## -- Begin function ffp_toggle_buffering_l
	.p2align	4, 0x90
_ffp_toggle_buffering_l:                ## @ffp_toggle_buffering_l
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movl	(%r14), %eax
	testl	%esi, %esi
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.3:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_stream_update_pause_l
	movq	_FFP_MSG_BUFFERING_START@GOTPCREL(%rip), %rax
	cmpq	$0, 8(%r14)
	je	LBB0_11
## %bb.4:
	movl	$1, 4(%r14)
	jmp	LBB0_8
LBB0_5:
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movl	$0, (%r14)
	movq	%rbx, %rdi
	callq	_stream_update_pause_l
	movq	_FFP_MSG_BUFFERING_END@GOTPCREL(%rip), %rax
	cmpl	$0, 4(%r14)
	je	LBB0_11
## %bb.7:
	movl	$0, 4(%r14)
LBB0_8:
	movl	$1, %edx
	jmp	LBB0_12
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	xorl	%edx, %edx
LBB0_12:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ffp_notify_msg2                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffp_toggle_buffering_l: start\n"

	.comm	_FFP_MSG_BUFFERING_START,4,2    ## @FFP_MSG_BUFFERING_START
L_.str.1:                               ## @.str.1
	.asciz	"ffp_toggle_buffering_l: end\n"

	.comm	_FFP_MSG_BUFFERING_END,4,2      ## @FFP_MSG_BUFFERING_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ffp_toggle_buffering_l         ; -- Begin function ffp_toggle_buffering_l
	.p2align	2
_ffp_toggle_buffering_l:                ; @ffp_toggle_buffering_l
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0]
	ldr	w8, [x21]
	cbz	w1, LBB0_5
; %bb.2:
	cbnz	w8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	mov	w20, #1
	str	w20, [x21]
	mov	x0, x19
	bl	_stream_update_pause_l
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_9
; %bb.4:
	str	w20, [x21, #4]
	b	LBB0_10
LBB0_5:
	cbz	w8, LBB0_8
; %bb.6:
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
	str	wzr, [x21]
	mov	x0, x19
	bl	_stream_update_pause_l
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_11
; %bb.7:
	str	wzr, [x21, #4]
	mov	w20, #1
	b	LBB0_12
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w20, #0
LBB0_10:
Lloh10:
	adrp	x8, _FFP_MSG_BUFFERING_START@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FFP_MSG_BUFFERING_START@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
	mov	w20, #0
LBB0_12:
Lloh12:
	adrp	x8, _FFP_MSG_BUFFERING_END@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FFP_MSG_BUFFERING_END@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ffp_notify_msg2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffp_toggle_buffering_l: start\n"

	.comm	_FFP_MSG_BUFFERING_START,4,2    ; @FFP_MSG_BUFFERING_START
l_.str.1:                               ; @.str.1
	.asciz	"ffp_toggle_buffering_l: end\n"

	.comm	_FFP_MSG_BUFFERING_END,4,2      ; @FFP_MSG_BUFFERING_END
.subsections_via_symbols
