	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_du_atomic_flush           ## -- Begin function vsp1_du_atomic_flush
	.p2align	4, 0x90
_vsp1_du_atomic_flush:                  ## @vsp1_du_atomic_flush
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	movq	%rax, %r15
	movq	(%rax), %rdi
	movq	8(%rdi), %rax
	movl	%ebx, %ecx
	shlq	$4, %rcx
	leaq	(%rax,%rcx), %r14
	addq	$8, %r14
	movl	24(%r12), %edx
	movl	%edx, (%rax,%rcx)
	callq	_mutex_lock
	movq	16(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	(%r14), %rsi
	movl	8(%r12), %ecx
	movq	%r15, %rdi
	callq	_vsp1_du_pipeline_set_rwpf_format
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	(%r12), %rax
	movl	(%rax), %ecx
	movq	(%r14), %rdx
	movq	8(%rdx), %rsi
	movl	%ecx, (%rsi)
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rsi)
	movl	8(%rax), %eax
	movl	%eax, 8(%rsi)
	movl	$1, (%rdx)
LBB0_3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vsp1_du_pipeline_setup_inputs
	movq	%r14, %rdi
	callq	_vsp1_du_pipeline_configure
LBB0_4:
	movq	(%r15), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vsp1_du_atomic_flush           ; -- Begin function vsp1_du_atomic_flush
	.p2align	2
_vsp1_du_atomic_flush:                  ; @vsp1_du_atomic_flush
	.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
	mov	x21, x2
	mov	x20, x1
	bl	_dev_get_drvdata
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x8, [x0, #8]
	add	x20, x8, w20, uxtw #4
	ldr	w8, [x21, #24]
	str	w8, [x20], #8
	bl	_mutex_lock
	ldr	x2, [x21, #16]
	cbz	x2, LBB0_3
; %bb.1:
	ldr	x1, [x20]
	ldr	w3, [x21, #8]
	mov	x0, x19
	bl	_vsp1_du_pipeline_set_rwpf_format
	lsr	w0, w0, #31
	bl	_WARN_ON
	cbnz	x0, LBB0_4
; %bb.2:
	ldr	x8, [x21]
	ldr	w9, [x8]
	ldr	x10, [x20]
	ldr	x11, [x10, #8]
	str	w9, [x11]
	ldr	w9, [x8, #4]
	str	w9, [x11, #4]
	ldr	w8, [x8, #8]
	str	w8, [x11, #8]
	mov	w8, #1
	str	w8, [x10]
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_vsp1_du_pipeline_setup_inputs
	mov	x0, x20
	bl	_vsp1_du_pipeline_configure
LBB0_4:
	ldr	x0, [x19]
	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	_mutex_unlock
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
