	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov5640_set_stream_dvp
_ov5640_set_stream_dvp:                 ## @ov5640_set_stream_dvp
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movq	_V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	shll	$5, %edx
	movq	_V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dil
	movq	_V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	andl	(%rsi), %eax
	setne	%cl
	movq	_OV5640_REG_POLARITY_CTRL00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leal	(%rdx,%rdi,2), %edx
	orl	%ecx, %edx
	movq	%rbx, %rdi
	callq	_ov5640_write_reg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movl	$24, %edx
	jmp	LBB0_4
LBB0_1:
	xorl	%edx, %edx
LBB0_4:
	movq	_OV5640_REG_IO_MIPI_CTRL00@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ov5640_write_reg
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	testl	%r14d, %r14d
	movq	_OV5640_REG_PAD_OUTPUT_ENABLE01@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$127, %edx
	cmovel	%r14d, %edx
	movq	%rbx, %rdi
	callq	_ov5640_write_reg
	testl	%eax, %eax
	je	LBB0_7
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	testl	%r14d, %r14d
	movq	_OV5640_REG_PAD_OUTPUT_ENABLE02@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$252, %edx
	cmovel	%r14d, %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ov5640_write_reg               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ## @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ## @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ## @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_OV5640_REG_POLARITY_CTRL00,4,2 ## @OV5640_REG_POLARITY_CTRL00
	.comm	_OV5640_REG_IO_MIPI_CTRL00,4,2  ## @OV5640_REG_IO_MIPI_CTRL00
	.comm	_OV5640_REG_PAD_OUTPUT_ENABLE01,4,2 ## @OV5640_REG_PAD_OUTPUT_ENABLE01
	.comm	_OV5640_REG_PAD_OUTPUT_ENABLE02,4,2 ## @OV5640_REG_PAD_OUTPUT_ENABLE02
	.no_dead_strip	_ov5640_set_stream_dvp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov5640_set_stream_dvp
_ov5640_set_stream_dvp:                 ; @ov5640_set_stream_dvp
	.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	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_MBUS_PCLK_SAMPLE_RISING@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	lsl	w9, w9, #5
Lloh3:
	adrp	x10, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _V4L2_MBUS_HSYNC_ACTIVE_HIGH@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w10, ne
Lloh6:
	adrp	x11, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGE
Lloh7:
	ldr	x11, [x11, _V4L2_MBUS_VSYNC_ACTIVE_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w8
	cset	w8, ne
Lloh9:
	adrp	x11, _OV5640_REG_POLARITY_CTRL00@GOTPAGE
Lloh10:
	ldr	x11, [x11, _OV5640_REG_POLARITY_CTRL00@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x11]
	bfi	w9, w10, #1, #1
	orr	w2, w9, w8
	mov	x0, x19
	bl	_ov5640_write_reg
	cbnz	w0, LBB0_6
; %bb.2:
	mov	w2, #24
	b	LBB0_4
LBB0_3:
	mov	w2, #0
LBB0_4:
Lloh12:
	adrp	x8, _OV5640_REG_IO_MIPI_CTRL00@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OV5640_REG_IO_MIPI_CTRL00@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ov5640_write_reg
	cbnz	w0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _OV5640_REG_PAD_OUTPUT_ENABLE01@GOTPAGE
Lloh16:
	ldr	x8, [x8, _OV5640_REG_PAD_OUTPUT_ENABLE01@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w8, #127
	cmp	w20, #0
	csel	w2, wzr, w8, eq
	mov	x0, x19
	bl	_ov5640_write_reg
	cbz	w0, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh18:
	adrp	x8, _OV5640_REG_PAD_OUTPUT_ENABLE02@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OV5640_REG_PAD_OUTPUT_ENABLE02@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w8, #252
	cmp	w20, #0
	csel	w2, wzr, w8, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov5640_write_reg
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_PCLK_SAMPLE_RISING,4,2 ; @V4L2_MBUS_PCLK_SAMPLE_RISING
	.comm	_V4L2_MBUS_HSYNC_ACTIVE_HIGH,4,2 ; @V4L2_MBUS_HSYNC_ACTIVE_HIGH
	.comm	_V4L2_MBUS_VSYNC_ACTIVE_LOW,4,2 ; @V4L2_MBUS_VSYNC_ACTIVE_LOW
	.comm	_OV5640_REG_POLARITY_CTRL00,4,2 ; @OV5640_REG_POLARITY_CTRL00
	.comm	_OV5640_REG_IO_MIPI_CTRL00,4,2  ; @OV5640_REG_IO_MIPI_CTRL00
	.comm	_OV5640_REG_PAD_OUTPUT_ENABLE01,4,2 ; @OV5640_REG_PAD_OUTPUT_ENABLE01
	.comm	_OV5640_REG_PAD_OUTPUT_ENABLE02,4,2 ; @OV5640_REG_PAD_OUTPUT_ENABLE02
	.no_dead_strip	_ov5640_set_stream_dvp
.subsections_via_symbols
