	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function start_dma
_start_dma:                             ## @start_dma
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_V4L2_FIELD_INTERLACED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	16(%rbx), %r15d
	addl	%r15d, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	_DVP_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_reg_read
	movq	_DVP_CTL_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_reg_write
	movq	_DVP_VTP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_reg_write
	movq	_DVP_VBP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%r14), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_reg_write
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irq                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ## @V4L2_FIELD_INTERLACED
	.comm	_DVP_CTL,4,2                    ## @DVP_CTL
	.comm	_DVP_CTL_ENA,4,2                ## @DVP_CTL_ENA
	.comm	_DVP_VTP,4,2                    ## @DVP_VTP
	.comm	_DVP_VBP,4,2                    ## @DVP_VBP
	.no_dead_strip	_start_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function start_dma
_start_dma:                             ; @start_dma
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _V4L2_FIELD_INTERLACED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_FIELD_INTERLACED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #16]
	lsl	w22, w8, #1
	b	LBB0_3
LBB0_2:
	mov	x22, #0
LBB0_3:
	mov	x0, x19
	bl	_spin_lock_irq
Lloh3:
	adrp	x8, _DVP_CTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DVP_CTL@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_reg_read
Lloh6:
	adrp	x8, _DVP_CTL_ENA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVP_CTL_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	mov	x1, x21
	bl	_reg_write
Lloh9:
	adrp	x8, _DVP_VTP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DVP_VTP@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_reg_write
Lloh12:
	adrp	x8, _DVP_VBP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DVP_VBP@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w8, [x20]
	add	w2, w8, w22
	mov	x0, x19
	bl	_reg_write
	mov	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	_spin_unlock_irq
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_FIELD_INTERLACED,8,3      ; @V4L2_FIELD_INTERLACED
	.comm	_DVP_CTL,4,2                    ; @DVP_CTL
	.comm	_DVP_CTL_ENA,4,2                ; @DVP_CTL_ENA
	.comm	_DVP_VTP,4,2                    ; @DVP_VTP
	.comm	_DVP_VBP,4,2                    ; @DVP_VBP
	.no_dead_strip	_start_dma
.subsections_via_symbols
