	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2680_s_ctrl
_ov2680_s_ctrl:                         ## @ov2680_s_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_ctrl_to_sd
	movq	%rax, %rdi
	callq	_to_ov2680_dev
	cmpl	$0, 4(%rax)
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %ecx
	addl	$-128, %ecx
	cmpl	$6, %ecx
	ja	LBB0_18
## %bb.3:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_10:
	cmpl	$0, (%rax)
	jne	LBB0_11
## %bb.12:
	cmpl	$0, 4(%rbx)
	je	LBB0_13
## %bb.21:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_vflip_enable            ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_17:
	movl	4(%rbx), %esi
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_test_pattern_set        ## TAILCALL
LBB0_14:
	cmpl	$0, (%rax)
	je	LBB0_15
LBB0_11:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_19:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_6:
	movq	16(%rax), %rcx
	xorl	%esi, %esi
	cmpl	$0, (%rcx)
	jmp	LBB0_5
LBB0_7:
	xorl	%esi, %esi
	cmpl	$0, 4(%rbx)
	jmp	LBB0_8
LBB0_9:
	movq	8(%rax), %rcx
	xorl	%esi, %esi
	cmpl	$0, (%rcx)
LBB0_8:
	setne	%sil
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_exposure_set            ## TAILCALL
LBB0_4:
	xorl	%esi, %esi
	cmpl	$0, 4(%rbx)
LBB0_5:
	setne	%sil
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_gain_set                ## TAILCALL
LBB0_15:
	cmpl	$0, 4(%rbx)
	je	LBB0_16
## %bb.22:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_hflip_enable            ## TAILCALL
LBB0_13:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_vflip_disable           ## TAILCALL
LBB0_16:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ov2680_hflip_disable           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_17
	.long	L0_0_set_14
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov2680_s_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2680_s_ctrl
_ov2680_s_ctrl:                         ; @ov2680_s_ctrl
	.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	x19, x0
	bl	_ctrl_to_sd
	bl	_to_ov2680_dev
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_6
; %bb.1:
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hi	LBB0_7
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	w8, [x0]
	cbnz	w8, LBB0_10
; %bb.4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_21
; %bb.5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_vflip_enable
LBB0_6:
	mov	w0, #0
	b	LBB0_12
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
	ldr	w1, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_test_pattern_set
LBB0_9:
	ldr	w8, [x0]
	cbz	w8, LBB0_19
LBB0_10:
Lloh4:
	adrp	x8, _EBUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	b	LBB0_18
LBB0_14:
	ldr	w8, [x19, #4]
	b	LBB0_16
LBB0_15:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
LBB0_16:
	cmp	w8, #0
	cset	w1, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_exposure_set
LBB0_17:
	ldr	w8, [x19, #4]
LBB0_18:
	cmp	w8, #0
	cset	w1, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_gain_set
LBB0_19:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_22
; %bb.20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_hflip_enable
LBB0_21:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_vflip_disable
LBB0_22:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ov2680_hflip_disable
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_17-LBB0_3)>>2
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov2680_s_ctrl
.subsections_via_symbols
