	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov51x_set_default_params
_ov51x_set_default_params:              ## @ov51x_set_default_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_OV511_NUMFRAMES@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_1
## %bb.2:
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	movq	_force_palette@GOTPCREL(%rip), %r15
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdi, (%rcx,%rbx)
	callq	_get_depth
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx,%rbx)
	incq	%r13
	movslq	(%r14), %rax
	addq	$32, %rbx
	cmpq	%rax, %r13
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r12), %eax
	movl	%eax, 28(%rcx,%rbx)
	movl	8(%r12), %eax
	movl	%eax, 24(%rcx,%rbx)
	movq	$0, 16(%rcx,%rbx)
	movq	(%r15), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_VIDEO_PALETTE_YUV420@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_5
LBB0_1:
	movq	(%r12), %rcx
LBB0_6:
	movl	8(%r12), %r14d
	movl	12(%r12), %r15d
	movq	_v4l1_plist@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%rcx), %rsi
	callq	_symbolic
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_PDEBUG
	movl	12(%r12), %esi
	movl	8(%r12), %edx
	movq	(%r12), %rax
	movq	(%rax), %rcx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%r8d, %r8d
	callq	_mode_init_regs
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	sarq	$63, %rax
	andl	%ebx, %eax
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OV511_NUMFRAMES,4,2            ## @OV511_NUMFRAMES
	.comm	_force_palette,8,3              ## @force_palette
	.comm	_VIDEO_PALETTE_YUV420,8,3       ## @VIDEO_PALETTE_YUV420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%dx%d, %s"

	.comm	_v4l1_plist,4,2                 ## @v4l1_plist
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ov51x_set_default_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov51x_set_default_params
_ov51x_set_default_params:              ; @ov51x_set_default_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _OV511_NUMFRAMES@GOTPAGE
Lloh1:
	ldr	x20, [x20, _OV511_NUMFRAMES@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #0
	b.le	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19]
Lloh2:
	adrp	x23, _force_palette@GOTPAGE
Lloh3:
	ldr	x23, [x23, _force_palette@GOTPAGEOFF]
Lloh4:
	adrp	x24, _VIDEO_PALETTE_YUV420@GOTPAGE
Lloh5:
	ldr	x24, [x24, _VIDEO_PALETTE_YUV420@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x19, #8]
	add	x8, x8, x21
	str	d0, [x8, #24]
	str	xzr, [x8, #16]
	ldr	x9, [x23]
	ldr	x10, [x24]
	cmp	x9, #0
	csel	x0, x10, x9, eq
	str	x0, [x8]
	bl	_get_depth
	ldr	x8, [x19]
	add	x9, x8, x21
	str	w0, [x9, #8]
	add	x22, x22, #1
	ldrsw	x9, [x20]
	add	x21, x21, #32
	cmp	x22, x9
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19]
LBB0_4:
	ldp	w21, w20, [x19, #8]
Lloh6:
	adrp	x9, _v4l1_plist@GOTPAGE
Lloh7:
	ldr	x9, [x9, _v4l1_plist@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	ldr	x1, [x8]
	bl	_symbolic
	mov	x4, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x20
	mov	x3, x21
	bl	_PDEBUG
	ldp	w2, w1, [x19, #8]
	ldr	x8, [x19]
	ldr	x3, [x8]
	mov	x0, x19
	mov	w4, #0
	bl	_mode_init_regs
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	x9, x0, #63
	neg	w8, w8
	and	w0, w9, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OV511_NUMFRAMES,4,2            ; @OV511_NUMFRAMES
	.comm	_force_palette,8,3              ; @force_palette
	.comm	_VIDEO_PALETTE_YUV420,8,3       ; @VIDEO_PALETTE_YUV420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%dx%d, %s"

	.comm	_v4l1_plist,4,2                 ; @v4l1_plist
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ov51x_set_default_params
.subsections_via_symbols
