	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function viacam_fmt_pre
_viacam_fmt_pre:                        ## @viacam_fmt_pre
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movups	(%rdi), %xmm0
	movups	%xmm0, (%rsi)
	movq	(%rdi), %rax
	movq	_QCIF_WIDTH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jl	LBB0_2
## %bb.1:
	movq	8(%rdi), %r10
	movq	_QCIF_HEIGHT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r10
	jge	LBB0_3
LBB0_2:
	movq	%rdx, (%rdi)
	movq	_QCIF_HEIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movq	%r10, 8(%rdi)
	movq	%rdx, %rax
LBB0_3:
	movq	_VGA_WIDTH@GOTPCREL(%rip), %r9
	movq	(%r9), %rdx
	movq	_VGA_HEIGHT@GOTPCREL(%rip), %r8
	cmpq	%rdx, %rax
	jg	LBB0_5
## %bb.4:
	cmpq	(%r8), %r10
	jle	LBB0_6
LBB0_5:
	movq	%rdx, (%rdi)
	movq	(%r8), %rax
	movq	%rax, 8(%rdi)
	movq	(%r9), %rdx
LBB0_6:
	movq	%rdx, (%rsi)
	movq	(%r8), %rax
	movq	%rax, 8(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QCIF_WIDTH,8,3                 ## @QCIF_WIDTH
	.comm	_QCIF_HEIGHT,8,3                ## @QCIF_HEIGHT
	.comm	_VGA_WIDTH,8,3                  ## @VGA_WIDTH
	.comm	_VGA_HEIGHT,8,3                 ## @VGA_HEIGHT
	.no_dead_strip	_viacam_fmt_pre
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function viacam_fmt_pre
_viacam_fmt_pre:                        ; @viacam_fmt_pre
	.cfi_startproc
; %bb.0:
	ldr	q0, [x0]
	str	q0, [x1]
	ldr	x10, [x0]
Lloh0:
	adrp	x8, _QCIF_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QCIF_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x11, _QCIF_HEIGHT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _QCIF_HEIGHT@GOTPAGEOFF]
	cmp	x10, x8
	b.lt	LBB0_2
; %bb.1:
	ldr	x9, [x0, #8]
	ldr	x12, [x11]
	cmp	x9, x12
	b.ge	LBB0_3
LBB0_2:
	str	x8, [x0]
	ldr	x9, [x11]
	str	x9, [x0, #8]
	b	LBB0_4
LBB0_3:
	mov	x8, x10
LBB0_4:
Lloh5:
	adrp	x12, _VGA_WIDTH@GOTPAGE
Lloh6:
	ldr	x12, [x12, _VGA_WIDTH@GOTPAGEOFF]
	ldr	x11, [x12]
Lloh7:
	adrp	x10, _VGA_HEIGHT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _VGA_HEIGHT@GOTPAGEOFF]
	ldr	x13, [x10]
	cmp	x8, x11
	ccmp	x9, x13, #0, le
	b.le	LBB0_6
; %bb.5:
	str	x11, [x0]
	ldr	x8, [x10]
	str	x8, [x0, #8]
	ldr	x11, [x12]
LBB0_6:
	str	x11, [x1]
	ldr	x8, [x10]
	str	x8, [x1, #8]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_QCIF_WIDTH,8,3                 ; @QCIF_WIDTH
	.comm	_QCIF_HEIGHT,8,3                ; @QCIF_HEIGHT
	.comm	_VGA_WIDTH,8,3                  ; @VGA_WIDTH
	.comm	_VGA_HEIGHT,8,3                 ; @VGA_HEIGHT
	.no_dead_strip	_viacam_fmt_pre
.subsections_via_symbols
