	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preview_try_crop
_preview_try_crop:                      ## @preview_try_crop
	.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	%rdx, %rbx
	movq	_PREV_MARGIN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_PREV_MARGIN_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rsi), %ecx
	subl	(%rdx), %ecx
	movl	4(%rsi), %r14d
	movq	_PREV_MARGIN_TOP@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	movq	_PREV_MARGIN_BOTTOM@GOTPCREL(%rip), %rdx
	subl	(%rdx), %r14d
	movq	(%rdi), %rdi
	movq	_PREVIEW_INPUT_CCDC@GOTPCREL(%rip), %r8
	leal	2(%rax), %edx
	leal	-2(%rcx), %r15d
	cmpq	(%r8), %rdi
	cmovnel	%eax, %edx
	cmovnel	%ecx, %r15d
	movq	8(%rsi), %rax
	movq	_MEDIA_BUS_FMT_Y8_1X8@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_MEDIA_BUS_FMT_Y10_1X10@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	addl	$2, %edx
	addl	$-2, %r15d
	addl	$2, %r12d
	addl	$-2, %r14d
LBB0_3:
	movl	(%rbx), %esi
	andl	$-2, %esi
	movl	%esi, (%rbx)
	andb	$-2, 4(%rbx)
	movq	_u32@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_PREV_MIN_OUT_WIDTH@GOTPCREL(%rip), %rax
	movl	%r15d, %ecx
	subl	(%rax), %ecx
	callq	_clamp_t
	movl	%eax, (%rbx)
	movl	(%r13), %edi
	movl	4(%rbx), %esi
	movq	_PREV_MIN_OUT_HEIGHT@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	subl	(%rax), %ecx
	movl	%r12d, %edx
	callq	_clamp_t
	movl	%eax, 4(%rbx)
	movl	(%r13), %edi
	movl	8(%rbx), %esi
	movq	_PREV_MIN_OUT_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	(%rbx), %r15d
	movl	%r15d, %ecx
	callq	_clamp_t
	movl	%eax, 8(%rbx)
	movl	(%r13), %edi
	movl	12(%rbx), %esi
	movq	_PREV_MIN_OUT_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	subl	4(%rbx), %r14d
	movl	%r14d, %ecx
	callq	_clamp_t
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PREV_MARGIN_LEFT,4,2           ## @PREV_MARGIN_LEFT
	.comm	_PREV_MARGIN_RIGHT,4,2          ## @PREV_MARGIN_RIGHT
	.comm	_PREV_MARGIN_TOP,4,2            ## @PREV_MARGIN_TOP
	.comm	_PREV_MARGIN_BOTTOM,4,2         ## @PREV_MARGIN_BOTTOM
	.comm	_PREVIEW_INPUT_CCDC,8,3         ## @PREVIEW_INPUT_CCDC
	.comm	_MEDIA_BUS_FMT_Y8_1X8,8,3       ## @MEDIA_BUS_FMT_Y8_1X8
	.comm	_MEDIA_BUS_FMT_Y10_1X10,8,3     ## @MEDIA_BUS_FMT_Y10_1X10
	.comm	_u32,4,2                        ## @u32
	.comm	_PREV_MIN_OUT_WIDTH,4,2         ## @PREV_MIN_OUT_WIDTH
	.comm	_PREV_MIN_OUT_HEIGHT,4,2        ## @PREV_MIN_OUT_HEIGHT
	.no_dead_strip	_preview_try_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preview_try_crop
_preview_try_crop:                      ; @preview_try_crop
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
Lloh0:
	adrp	x8, _PREV_MARGIN_LEFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PREV_MARGIN_LEFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PREV_MARGIN_RIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PREV_MARGIN_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldp	w10, w11, [x1]
	sub	w9, w10, w9
Lloh6:
	adrp	x10, _PREV_MARGIN_TOP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PREV_MARGIN_TOP@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x12, _PREV_MARGIN_BOTTOM@GOTPAGE
Lloh10:
	ldr	x12, [x12, _PREV_MARGIN_BOTTOM@GOTPAGEOFF]
Lloh11:
	ldr	w12, [x12]
	sub	w11, w11, w12
	ldr	x12, [x0]
Lloh12:
	adrp	x13, _PREVIEW_INPUT_CCDC@GOTPAGE
Lloh13:
	ldr	x13, [x13, _PREVIEW_INPUT_CCDC@GOTPAGEOFF]
Lloh14:
	ldr	x13, [x13]
	add	w14, w8, #2
	sub	w15, w9, #2
	cmp	x12, x13
	csel	w8, w14, w8, eq
	csel	w9, w15, w9, eq
	ldr	x12, [x1, #8]
Lloh15:
	adrp	x13, _MEDIA_BUS_FMT_Y8_1X8@GOTPAGE
Lloh16:
	ldr	x13, [x13, _MEDIA_BUS_FMT_Y8_1X8@GOTPAGEOFF]
Lloh17:
	ldr	x13, [x13]
Lloh18:
	adrp	x14, _MEDIA_BUS_FMT_Y10_1X10@GOTPAGE
Lloh19:
	ldr	x14, [x14, _MEDIA_BUS_FMT_Y10_1X10@GOTPAGEOFF]
Lloh20:
	ldr	x14, [x14]
	add	w15, w8, #2
	sub	w16, w9, #2
	add	w17, w10, #2
	sub	w0, w11, #2
	cmp	x12, x13
	ccmp	x12, x14, #4, ne
	csel	w2, w8, w15, eq
	csel	w21, w9, w16, eq
	csel	w20, w10, w17, eq
	csel	w22, w11, w0, eq
	ldr	d0, [x19]
	bic.2s	v0, #1
	str	d0, [x19]
Lloh21:
	adrp	x23, _u32@GOTPAGE
Lloh22:
	ldr	x23, [x23, _u32@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh23:
	adrp	x24, _PREV_MIN_OUT_WIDTH@GOTPAGE
Lloh24:
	ldr	x24, [x24, _PREV_MIN_OUT_WIDTH@GOTPAGEOFF]
	ldr	w8, [x24]
	sub	w3, w21, w8
	fmov	w1, s0
	bl	_clamp_t
	str	w0, [x19]
	ldr	w0, [x23]
	ldr	w1, [x19, #4]
Lloh25:
	adrp	x25, _PREV_MIN_OUT_HEIGHT@GOTPAGE
Lloh26:
	ldr	x25, [x25, _PREV_MIN_OUT_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x25]
	sub	w3, w22, w8
	mov	x2, x20
	bl	_clamp_t
	str	w0, [x19, #4]
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
	ldr	w2, [x24]
	ldr	w8, [x19]
	sub	w3, w21, w8
	bl	_clamp_t
	str	w0, [x19, #8]
	ldr	w0, [x23]
	ldr	w1, [x19, #12]
	ldr	w2, [x25]
	ldr	w8, [x19, #4]
	sub	w3, w22, w8
	bl	_clamp_t
	str	w0, [x19, #12]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PREV_MARGIN_LEFT,4,2           ; @PREV_MARGIN_LEFT
	.comm	_PREV_MARGIN_RIGHT,4,2          ; @PREV_MARGIN_RIGHT
	.comm	_PREV_MARGIN_TOP,4,2            ; @PREV_MARGIN_TOP
	.comm	_PREV_MARGIN_BOTTOM,4,2         ; @PREV_MARGIN_BOTTOM
	.comm	_PREVIEW_INPUT_CCDC,8,3         ; @PREVIEW_INPUT_CCDC
	.comm	_MEDIA_BUS_FMT_Y8_1X8,8,3       ; @MEDIA_BUS_FMT_Y8_1X8
	.comm	_MEDIA_BUS_FMT_Y10_1X10,8,3     ; @MEDIA_BUS_FMT_Y10_1X10
	.comm	_u32,4,2                        ; @u32
	.comm	_PREV_MIN_OUT_WIDTH,4,2         ; @PREV_MIN_OUT_WIDTH
	.comm	_PREV_MIN_OUT_HEIGHT,4,2        ; @PREV_MIN_OUT_HEIGHT
	.no_dead_strip	_preview_try_crop
.subsections_via_symbols
