	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_write_base                ## -- Begin function coda_write_base
	.p2align	4, 0x90
_coda_write_base:                       ## @coda_write_base
	.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
	movl	%ecx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	callq	_vb2_dma_contig_plane_dma_addr
	movl	(%rbx), %ecx
	cmpl	$128, %ecx
	je	LBB0_3
## %bb.1:
	cmpl	$130, %ecx
	jne	LBB0_2
## %bb.4:
	movl	8(%rbx), %ecx
	imull	4(%rbx), %ecx
	movl	%eax, %r12d
	addl	%ecx, %r12d
	movl	%ecx, %ebx
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	jmp	LBB0_5
LBB0_3:
	movl	8(%rbx), %ecx
	imull	4(%rbx), %ecx
	movl	%eax, %ebx
	addl	%ecx, %ebx
	leal	3(%rcx), %r12d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r12d
	sarl	$2, %r12d
	addl	%ebx, %r12d
	jmp	LBB0_6
LBB0_2:
	movl	8(%rbx), %ecx
	imull	4(%rbx), %ecx
	movl	%eax, %r12d
	addl	%ecx, %r12d
	leal	3(%rcx), %ebx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %ebx
	sarl	$2, %ebx
LBB0_5:
	addl	%r12d, %ebx
LBB0_6:
	movl	(%r14), %edi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_coda_write
	movl	(%r14), %edi
	leal	4(%r15), %edx
	movl	%r12d, %esi
	callq	_coda_write
	movl	(%r14), %edi
	addl	$8, %r15d
	movl	%ebx, %esi
	movl	%r15d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_coda_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_coda_write_base                ; -- Begin function coda_write_base
	.p2align	2
_coda_write_base:                       ; @coda_write_base
	.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	x19, x3
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	bl	_vb2_dma_contig_plane_dma_addr
	mov	x1, x0
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.2:
	ldp	w8, w9, [x21, #4]
	mul	w8, w9, w8
	add	w22, w8, w1
	cmp	w8, #0
	cinc	w8, w8, lt
	add	w21, w22, w8, asr #1
	b	LBB0_5
LBB0_3:
	ldp	w8, w9, [x21, #4]
	mul	w8, w9, w8
	add	w21, w8, w1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w22, w21, w8, asr #2
	b	LBB0_5
LBB0_4:
	ldp	w8, w9, [x21, #4]
	mul	w8, w9, w8
	add	w22, w8, w1
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	add	w21, w22, w8, asr #2
LBB0_5:
	ldr	w0, [x20]
	mov	x2, x19
	bl	_coda_write
	ldr	w0, [x20]
	add	w2, w19, #4
	mov	x1, x22
	bl	_coda_write
	ldr	w0, [x20]
	add	w2, w19, #8
	mov	x1, x21
	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	_coda_write
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
