	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcm825x_find_size
_tcm825x_find_size:                     ## @tcm825x_find_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
                                        ## kill: def $esi killed $esi def $rsi
	imull	%edx, %esi
	movq	(%rdi), %r8
	movq	_subQCIF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VGA@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_tcm825x_sizes@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	cmpl	%edi, %ecx
	cmoval	%ecx, %edi
	movq	%rcx, %rdx
	subq	%rdi, %rdx
	movq	%rcx, %rdi
	shlq	$4, %rdi
	addq	%rbx, %rdi
	addq	$24, %rdi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rdx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdi), %rax
	imulq	-8(%rdi), %rax
	decq	%rbx
	addq	$16, %rdi
	cmpq	%rsi, %rax
	jbe	LBB0_1
## %bb.3:
	notl	%ebx
	addl	%ecx, %ebx
	movq	(%r8), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_5
LBB0_4:
	movq	(%r8), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_subQCIF,4,2                    ## @subQCIF
	.comm	_VGA,4,2                        ## @VGA
	.comm	_tcm825x_sizes,8,3              ## @tcm825x_sizes
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"size %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"format default VGA\n"

	.no_dead_strip	_tcm825x_find_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcm825x_find_size
_tcm825x_find_size:                     ; @tcm825x_find_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mul	w9, w2, w1
	ldr	x8, [x0]
Lloh0:
	adrp	x10, _subQCIF@GOTPAGE
Lloh1:
	ldr	x10, [x10, _subQCIF@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x10]
Lloh3:
	adrp	x20, _VGA@GOTPAGE
Lloh4:
	ldr	x20, [x20, _VGA@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh5:
	adrp	x12, _tcm825x_sizes@GOTPAGE
Lloh6:
	ldr	x12, [x12, _tcm825x_sizes@GOTPAGEOFF]
Lloh7:
	ldr	x12, [x12]
	cmp	w11, w10
	csel	w10, w11, w10, hi
	sub	w19, w11, #1
	sub	x10, x10, x11
	add	x11, x12, x11, lsl #4
	add	x11, x11, #24
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x10, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x12, x13, [x11, #-8]
	mul	x12, x13, x12
	add	w19, w19, #1
	sub	x10, x10, #1
	add	x11, x11, #16
	cmp	x12, x9
	b.ls	LBB0_1
; %bb.3:
	ldr	x0, [x8]
	str	x19, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	b	LBB0_5
LBB0_4:
	ldr	x0, [x8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w19, [x20]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_subQCIF,4,2                    ; @subQCIF
	.comm	_VGA,4,2                        ; @VGA
	.comm	_tcm825x_sizes,8,3              ; @tcm825x_sizes
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"size %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"format default VGA\n"

	.no_dead_strip	_tcm825x_find_size
.subsections_via_symbols
