	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ccdc_try_crop
_ccdc_try_crop:                         ## @ccdc_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	%rsi, %r15
	movl	8(%rsi), %edi
	callq	_omap3isp_video_format_info
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_MEDIA_BUS_FMT_Y8_1X8@GOTPCREL(%rip), %rcx
	movl	(%rbx), %esi
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	andl	$-2, %esi
	movl	%esi, (%rbx)
	andb	$-2, 4(%rbx)
LBB0_2:
	movq	_u32@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	(%r15), %ecx
	movq	_CCDC_MIN_WIDTH@GOTPCREL(%rip), %rax
	subl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_clamp_t
	movl	%eax, (%rbx)
	movl	(%r13), %edi
	movl	4(%rbx), %esi
	movl	4(%r15), %ecx
	movq	_CCDC_MIN_HEIGHT@GOTPCREL(%rip), %r12
	subl	(%r12), %ecx
	xorl	%edx, %edx
	callq	_clamp_t
	movl	%eax, 4(%rbx)
	movl	(%r15), %ecx
	subl	(%rbx), %ecx
	addl	$15, %ecx
	andl	$-16, %ecx
	movl	(%r13), %edi
	movl	8(%rbx), %esi
	movq	_CCDC_MIN_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_clamp_t
	andl	$-16, %eax
	movl	%eax, 8(%rbx)
	movl	(%r13), %edi
	movl	12(%rbx), %esi
	movl	(%r12), %edx
	movl	4(%r15), %ecx
	subl	4(%rbx), %ecx
	callq	_clamp_t
	movl	%eax, 12(%rbx)
	movq	(%r14), %rcx
	movq	_MEDIA_BUS_FMT_Y8_1X8@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	andb	$-2, 8(%rbx)
	andl	$-2, %eax
	movl	%eax, 12(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEDIA_BUS_FMT_Y8_1X8,8,3       ## @MEDIA_BUS_FMT_Y8_1X8
	.comm	_u32,4,2                        ## @u32
	.comm	_CCDC_MIN_WIDTH,4,2             ## @CCDC_MIN_WIDTH
	.comm	_CCDC_MIN_HEIGHT,4,2            ## @CCDC_MIN_HEIGHT
	.no_dead_strip	_ccdc_try_crop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ccdc_try_crop
_ccdc_try_crop:                         ; @ccdc_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
	mov	x21, x1
	ldr	w0, [x1, #8]
	bl	_omap3isp_video_format_info
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x22, _MEDIA_BUS_FMT_Y8_1X8@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MEDIA_BUS_FMT_Y8_1X8@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w1, [x19]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	and	w1, w1, #0xfffffffe
	ldr	w8, [x19, #4]
	and	w8, w8, #0xfffffffe
	stp	w1, w8, [x19]
LBB0_2:
Lloh2:
	adrp	x23, _u32@GOTPAGE
Lloh3:
	ldr	x23, [x23, _u32@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w8, [x21]
Lloh4:
	adrp	x24, _CCDC_MIN_WIDTH@GOTPAGE
Lloh5:
	ldr	x24, [x24, _CCDC_MIN_WIDTH@GOTPAGEOFF]
	ldr	w9, [x24]
	sub	w3, w8, w9
	mov	w2, #0
	bl	_clamp_t
	str	w0, [x19]
	ldr	w0, [x23]
	ldr	w1, [x19, #4]
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x25, _CCDC_MIN_HEIGHT@GOTPAGE
Lloh7:
	ldr	x25, [x25, _CCDC_MIN_HEIGHT@GOTPAGEOFF]
	ldr	w9, [x25]
	sub	w3, w8, w9
	mov	w2, #0
	bl	_clamp_t
	str	w0, [x19, #4]
	ldr	w8, [x21]
	ldr	w9, [x19]
	sub	w8, w8, w9
	add	w8, w8, #15
	and	w3, w8, #0xfffffff0
	ldr	w0, [x23]
	ldr	w1, [x19, #8]
	ldr	w2, [x24]
	bl	_clamp_t
	and	w8, w0, #0xfffffff0
	str	w8, [x19, #8]
	ldr	w0, [x23]
	ldr	w1, [x19, #12]
	ldr	w2, [x25]
	ldr	w8, [x21, #4]
	ldr	w9, [x19, #4]
	sub	w3, w8, w9
	bl	_clamp_t
	str	w0, [x19, #12]
	ldr	x8, [x20]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	and	w8, w8, #0xfffffffe
	and	w9, w0, #0xfffffffe
	stp	w8, w9, [x19, #8]
LBB0_4:
	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	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MEDIA_BUS_FMT_Y8_1X8,8,3       ; @MEDIA_BUS_FMT_Y8_1X8
	.comm	_u32,4,2                        ; @u32
	.comm	_CCDC_MIN_WIDTH,4,2             ; @CCDC_MIN_WIDTH
	.comm	_CCDC_MIN_HEIGHT,4,2            ; @CCDC_MIN_HEIGHT
	.no_dead_strip	_ccdc_try_crop
.subsections_via_symbols
