	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vfe_buf_update_wm_on_new
_vfe_buf_update_wm_on_new:              ## @vfe_buf_update_wm_on_new
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_9
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.2:
	movl	16(%rbx), %eax
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movq	8(%rbx), %rsi
	cmpq	$0, (%rsi,%rcx,8)
	je	LBB0_3
## %bb.7:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_vfe_buf_add_pending
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_9:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_10
## %bb.12:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_vfe_buf_add_pending
	movq	(%r14), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dev_err_ratelimited            ## TAILCALL
LBB0_13:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vfe_buf_add_pending            ## TAILCALL
LBB0_3:
	movq	%rdx, (%rsi,%rcx,8)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	callq	_vfe_output_update_ping_addr
	jmp	LBB0_6
LBB0_10:
	movq	%rdx, (%rax)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_vfe_output_init_addrs
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_vfe_output_frame_drop
	movl	$128, (%rbx)
	jmp	LBB0_11
LBB0_4:
	callq	_vfe_output_update_pong_addr
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$3, %edx
	callq	_vfe_output_frame_drop
	movl	$130, (%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Inactive buffer is busy\n"

L_.str.1:                               ## @.str.1
	.asciz	"Output idle with buffer set!\n"

	.no_dead_strip	_vfe_buf_update_wm_on_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vfe_buf_update_wm_on_new
_vfe_buf_update_wm_on_new:              ; @vfe_buf_update_wm_on_new
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	cset	w9, eq
	ldr	x10, [x19, #8]
	ldr	x11, [x10, w9, uxtw #3]
	cbz	x11, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, x2
	bl	_vfe_buf_add_pending
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	cbz	x9, LBB0_10
; %bb.5:
	mov	x0, x19
	mov	x1, x2
	bl	_vfe_buf_add_pending
	ldr	x8, [x20]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err_ratelimited
LBB0_7:
	mov	x0, x19
	mov	x1, x2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vfe_buf_add_pending
LBB0_8:
	str	x2, [x10, x9, lsl #3]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	cbz	w8, LBB0_11
; %bb.9:
	bl	_vfe_output_update_ping_addr
	b	LBB0_12
LBB0_10:
	str	x2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_vfe_output_init_addrs
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	bl	_vfe_output_frame_drop
	mov	w8, #128
	b	LBB0_13
LBB0_11:
	bl	_vfe_output_update_pong_addr
LBB0_12:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #3
	bl	_vfe_output_frame_drop
	mov	w8, #130
LBB0_13:
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Inactive buffer is busy\n"

l_.str.1:                               ; @.str.1
	.asciz	"Output idle with buffer set!\n"

	.no_dead_strip	_vfe_buf_update_wm_on_new
.subsections_via_symbols
