	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov2680_test_pattern_set
_ov2680_test_pattern_set:               ## @ov2680_test_pattern_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_OV2680_REG_ISP_CTRL00@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	movl	%esi, %ecx
	decl	%ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	$3, %edx
	callq	_ov2680_mod_reg
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movl	(%r15), %r15d
	movl	$7, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$7, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_ov2680_mod_reg
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	$7, %edi
	callq	_BIT
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ov2680_mod_reg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OV2680_REG_ISP_CTRL00,4,2      ## @OV2680_REG_ISP_CTRL00
	.no_dead_strip	_ov2680_test_pattern_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov2680_test_pattern_set
_ov2680_test_pattern_set:               ; @ov2680_test_pattern_set
	.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, x0
Lloh0:
	adrp	x21, _OV2680_REG_ISP_CTRL00@GOTPAGE
Lloh1:
	ldr	x21, [x21, _OV2680_REG_ISP_CTRL00@GOTPAGEOFF]
	ldr	w20, [x21]
	cbz	w1, LBB0_4
; %bb.1:
	sub	w3, w1, #1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #3
	bl	_ov2680_mod_reg
	tbnz	w0, #31, LBB0_3
; %bb.2:
	ldr	w20, [x21]
	mov	w0, #7
	bl	_BIT
	mov	x21, x0
	mov	w0, #7
	bl	_BIT
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_ov2680_mod_reg
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_3:
	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
	ret
LBB0_4:
	mov	w0, #7
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	mov	w3, #0
	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	_ov2680_mod_reg
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_OV2680_REG_ISP_CTRL00,4,2      ; @OV2680_REG_ISP_CTRL00
	.no_dead_strip	_ov2680_test_pattern_set
.subsections_via_symbols
