	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_default_params
_set_default_params:                    ## @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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	56(%rdi), %edi
	movq	24(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movq	(%rcx), %rsi
	movq	(%rax), %rdx
	callq	_coda_find_codec
	movq	%rax, 16(%rbx)
	movl	16(%rax), %edi
	movl	$1920, %esi                     ## imm = 0x780
	callq	_min
	movl	%eax, %r14d
	movq	16(%rbx), %rax
	movl	12(%rax), %edi
	movl	$1088, %esi                     ## imm = 0x440
	callq	_min
	movl	%eax, %r15d
	movl	%r14d, %eax
	imull	%r15d, %eax
	leal	(%rax,%rax,2), %r12d
	shrl	%r12d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_coda_estimate_sizeimage
	movq	16(%rbx), %r8
	movq	24(%rbx), %rsi
	movl	8(%r8), %edx
	movl	%edx, 36(%rbx)
	movq	(%rsi), %rdx
	movq	(%rdx), %rdi
	movq	_V4L2_PIX_FMT_JPEG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rdi
	jne	LBB0_1
## %bb.2:
	movq	_V4L2_COLORSPACE_JPEG@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_V4L2_COLORSPACE_REC709@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %edx
	movl	%edx, 52(%rbx)
	movq	_V4L2_XFER_FUNC_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 48(%rbx)
	movq	_V4L2_YCBCR_ENC_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 44(%rbx)
	movq	_V4L2_QUANTIZATION_DEFAULT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 40(%rbx)
	movl	$30, 32(%rbx)
	movq	8(%rbx), %rdx
	movq	_V4L2_M2M_SRC@GOTPCREL(%rip), %r9
	movq	(%r9), %rcx
	shlq	$5, %rcx
	movq	%rdi, (%rdx,%rcx)
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movq	_V4L2_M2M_DST@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rsi
	shlq	$5, %rsi
	movq	%rcx, (%rdx,%rsi)
	movq	(%r9), %rsi
	shlq	$5, %rsi
	movl	%r14d, 8(%rdx,%rsi)
	movl	%r15d, 12(%rdx,%rsi)
	movq	(%rdi), %rdi
	shlq	$5, %rdi
	movl	%r14d, 8(%rdx,%rdi)
	movl	%r15d, 12(%rdx,%rdi)
	movq	(%r8), %rcx
	movq	_V4L2_PIX_FMT_YUV420@GOTPCREL(%rip), %r8
	xorl	%r10d, %r10d
	cmpq	(%r8), %rcx
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %r8d
	movl	%r12d, %r9d
	movl	%eax, %r12d
	jmp	LBB0_6
LBB0_5:
	xorl	%r8d, %r8d
	movl	%eax, %r9d
	movl	%r14d, %r10d
LBB0_6:
	movl	%r8d, 16(%rdx,%rsi)
	movl	%r9d, 20(%rdx,%rsi)
	movl	%r10d, 16(%rdx,%rdi)
	movl	%r12d, 20(%rdx,%rdi)
	movl	%r14d, 24(%rdx,%rsi)
	movl	%r15d, 28(%rdx,%rsi)
	movl	%r14d, 24(%rdx,%rdi)
	movl	%r15d, 28(%rdx,%rdi)
	movq	_GDI_LINEAR_FRAME_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ## @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ## @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_COLORSPACE_REC709,4,2     ## @V4L2_COLORSPACE_REC709
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ## @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ## @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ## @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_M2M_SRC,8,3               ## @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ## @V4L2_M2M_DST
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ## @V4L2_PIX_FMT_YUV420
	.comm	_GDI_LINEAR_FRAME_MAP,4,2       ## @GDI_LINEAR_FRAME_MAP
	.no_dead_strip	_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 set_default_params
_set_default_params:                    ; @set_default_params
	.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
	ldr	w0, [x0, #56]
	ldr	x8, [x19, #24]
	ldp	x9, x8, [x8]
	ldr	x1, [x9]
	ldr	x2, [x8]
	bl	_coda_find_codec
	str	x0, [x19, #16]
	ldr	w0, [x0, #16]
	mov	w1, #1920
	bl	_min
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #12]
	mov	w1, #1088
	bl	_min
	mov	x21, x0
	mul	w8, w20, w0
	add	w8, w8, w8, lsl #1
	lsr	w22, w8, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x21
	bl	_coda_estimate_sizeimage
	ldp	x9, x8, [x19, #8]
	ldr	w10, [x8, #8]
	str	w10, [x19, #36]
	ldr	x10, [x19, #24]
	ldr	x11, [x10]
	ldr	x11, [x11]
Lloh0:
	adrp	x12, _V4L2_PIX_FMT_JPEG@GOTPAGE
Lloh1:
	ldr	x12, [x12, _V4L2_PIX_FMT_JPEG@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
Lloh3:
	adrp	x13, _V4L2_COLORSPACE_JPEG@GOTPAGE
Lloh4:
	ldr	x13, [x13, _V4L2_COLORSPACE_JPEG@GOTPAGEOFF]
Lloh5:
	adrp	x14, _V4L2_COLORSPACE_REC709@GOTPAGE
Lloh6:
	ldr	x14, [x14, _V4L2_COLORSPACE_REC709@GOTPAGEOFF]
	cmp	x11, x12
	csel	x12, x13, x14, eq
	ldr	w12, [x12]
Lloh7:
	adrp	x13, _V4L2_XFER_FUNC_DEFAULT@GOTPAGE
Lloh8:
	ldr	x13, [x13, _V4L2_XFER_FUNC_DEFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w13, [x13]
	stp	w13, w12, [x19, #48]
Lloh10:
	adrp	x12, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGE
Lloh11:
	ldr	x12, [x12, _V4L2_YCBCR_ENC_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
Lloh13:
	adrp	x13, _V4L2_QUANTIZATION_DEFAULT@GOTPAGE
Lloh14:
	ldr	x13, [x13, _V4L2_QUANTIZATION_DEFAULT@GOTPAGEOFF]
Lloh15:
	ldr	w13, [x13]
	stp	w13, w12, [x19, #40]
Lloh16:
	adrp	x12, _V4L2_M2M_SRC@GOTPAGE
Lloh17:
	ldr	x12, [x12, _V4L2_M2M_SRC@GOTPAGEOFF]
	ldr	x13, [x12]
	lsl	x13, x13, #5
	str	x11, [x9, x13]
	ldr	x10, [x10, #8]
Lloh18:
	adrp	x11, _V4L2_M2M_DST@GOTPAGE
Lloh19:
	ldr	x11, [x11, _V4L2_M2M_DST@GOTPAGEOFF]
	ldr	x10, [x10]
	ldr	x13, [x11]
	lsl	x13, x13, #5
	str	x10, [x9, x13]
	mov	w10, #30
	str	w10, [x19, #32]
	ldr	x10, [x12]
	add	x10, x9, x10, lsl #5
	stp	w20, w21, [x10, #8]
	ldr	x11, [x11]
	add	x9, x9, x11, lsl #5
	stp	w20, w21, [x9, #8]
	ldr	x8, [x8]
Lloh20:
	adrp	x11, _V4L2_PIX_FMT_YUV420@GOTPAGE
Lloh21:
	ldr	x11, [x11, _V4L2_PIX_FMT_YUV420@GOTPAGEOFF]
Lloh22:
	ldr	x11, [x11]
	cmp	x8, x11
	csel	w8, w20, wzr, eq
	csel	w11, w22, w0, eq
	csel	w12, wzr, w20, eq
	csel	w13, w0, w22, eq
	stp	w8, w11, [x10, #16]
	stp	w12, w13, [x9, #16]
	stp	w20, w21, [x10, #24]
	stp	w20, w21, [x9, #24]
Lloh23:
	adrp	x8, _GDI_LINEAR_FRAME_MAP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GDI_LINEAR_FRAME_MAP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_PIX_FMT_JPEG,8,3          ; @V4L2_PIX_FMT_JPEG
	.comm	_V4L2_COLORSPACE_JPEG,4,2       ; @V4L2_COLORSPACE_JPEG
	.comm	_V4L2_COLORSPACE_REC709,4,2     ; @V4L2_COLORSPACE_REC709
	.comm	_V4L2_XFER_FUNC_DEFAULT,4,2     ; @V4L2_XFER_FUNC_DEFAULT
	.comm	_V4L2_YCBCR_ENC_DEFAULT,4,2     ; @V4L2_YCBCR_ENC_DEFAULT
	.comm	_V4L2_QUANTIZATION_DEFAULT,4,2  ; @V4L2_QUANTIZATION_DEFAULT
	.comm	_V4L2_M2M_SRC,8,3               ; @V4L2_M2M_SRC
	.comm	_V4L2_M2M_DST,8,3               ; @V4L2_M2M_DST
	.comm	_V4L2_PIX_FMT_YUV420,8,3        ; @V4L2_PIX_FMT_YUV420
	.comm	_GDI_LINEAR_FRAME_MAP,4,2       ; @GDI_LINEAR_FRAME_MAP
	.no_dead_strip	_set_default_params
.subsections_via_symbols
