	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ov965x_set_params
___ov965x_set_params:                   ## @__ov965x_set_params
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	movq	_DEF_CLKRC@GOTPCREL(%rip), %rax
	movq	8(%rbx), %rcx
	movq	(%rcx), %rdx
	addq	(%rax), %rdx
	movq	%rdx, -24(%rbp)
	movq	_REG_CLKRC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ov965x_write
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	movq	%rbx, %rdi
	callq	_ov965x_set_frame_size
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	movq	_REG_TSLB@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov965x_read
	testl	%eax, %eax
	js	LBB0_12
## %bb.4:
	movq	_TSLB_YUYV_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	notq	%rdx
	andq	-24(%rbp), %rdx
	orq	(%rbx), %rdx
	movq	%rdx, -24(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ov965x_write
	testl	%eax, %eax
	js	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_ov965x_set_default_gamma_curve
	testl	%eax, %eax
	js	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	callq	_ov965x_set_color_matrix
	testl	%eax, %eax
	js	LBB0_12
## %bb.7:
	movq	_REG_COM11@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_ov965x_read
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	-24(%rbp), %rdx
	jmp	LBB0_10
LBB0_9:
	movq	_COM11_BANDING@GOTPCREL(%rip), %rax
	movq	-24(%rbp), %rdx
	orq	(%rax), %rdx
	movq	%rdx, -24(%rbp)
LBB0_10:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_ov965x_write
	testl	%eax, %eax
	js	LBB0_12
## %bb.11:
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ov965x_set_banding_filter
LBB0_12:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEF_CLKRC,8,3                  ## @DEF_CLKRC
	.comm	_REG_CLKRC,4,2                  ## @REG_CLKRC
	.comm	_REG_TSLB,4,2                   ## @REG_TSLB
	.comm	_TSLB_YUYV_MASK,8,3             ## @TSLB_YUYV_MASK
	.comm	_REG_COM11,4,2                  ## @REG_COM11
	.comm	_COM11_BANDING,8,3              ## @COM11_BANDING
	.no_dead_strip	___ov965x_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ov965x_set_params
___ov965x_set_params:                   ; @__ov965x_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _DEF_CLKRC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEF_CLKRC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x9, [x9]
	add	x2, x9, x8
	str	x2, [sp, #8]
Lloh3:
	adrp	x8, _REG_CLKRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_CLKRC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ov965x_write
	tbnz	w0, #31, LBB0_12
; %bb.2:
	mov	x0, x19
	bl	_ov965x_set_frame_size
	tbnz	w0, #31, LBB0_12
; %bb.3:
Lloh6:
	adrp	x20, _REG_TSLB@GOTPAGE
Lloh7:
	ldr	x20, [x20, _REG_TSLB@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ov965x_read
	tbnz	w0, #31, LBB0_12
; %bb.4:
Lloh8:
	adrp	x8, _TSLB_YUYV_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TSLB_YUYV_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	bic	x8, x9, x8
	ldr	x9, [x19]
	orr	x2, x9, x8
	str	x2, [sp, #8]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ov965x_write
	tbnz	w0, #31, LBB0_12
LBB0_5:
	mov	x0, x19
	bl	_ov965x_set_default_gamma_curve
	tbnz	w0, #31, LBB0_12
; %bb.6:
	mov	x0, x19
	bl	_ov965x_set_color_matrix
	tbnz	w0, #31, LBB0_12
; %bb.7:
Lloh11:
	adrp	x20, _REG_COM11@GOTPAGE
Lloh12:
	ldr	x20, [x20, _REG_COM11@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ov965x_read
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x2, [sp, #8]
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _COM11_BANDING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COM11_BANDING@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	orr	x2, x9, x8
	str	x2, [sp, #8]
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ov965x_write
	tbnz	w0, #31, LBB0_12
; %bb.11:
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ov965x_set_banding_filter
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DEF_CLKRC,8,3                  ; @DEF_CLKRC
	.comm	_REG_CLKRC,4,2                  ; @REG_CLKRC
	.comm	_REG_TSLB,4,2                   ; @REG_TSLB
	.comm	_TSLB_YUYV_MASK,8,3             ; @TSLB_YUYV_MASK
	.comm	_REG_COM11,4,2                  ; @REG_COM11
	.comm	_COM11_BANDING,8,3              ; @COM11_BANDING
	.no_dead_strip	___ov965x_set_params
.subsections_via_symbols
