	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_mobile_ceu_videobuf_setup
_sh_mobile_ceu_videobuf_setup:          ## @sh_mobile_ceu_videobuf_setup
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	(%rdi), %r15
	movl	8(%r15), %edi
	callq	_to_soc_camera_host
	movq	(%rax), %rbx
	movq	16(%r15), %rax
	movl	(%rax), %eax
	addl	$7, %eax
	sarl	$3, %eax
	movl	4(%r15), %edi
	imull	(%r15), %edi
	imull	%eax, %edi
	callq	_PAGE_ALIGN
	movl	%eax, (%r12)
	movl	(%r14), %edx
	testl	%edx, %edx
	jne	LBB0_2
## %bb.1:
	movl	$2, (%r14)
	movl	$2, %edx
LBB0_2:
	movl	(%rbx), %eax
	movl	(%r12), %ecx
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%edx, %esi
	imull	%ecx, %esi
	cmpl	%eax, %esi
	jbe	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%edx
	movl	%edx, (%r14)
	movl	(%r12), %ecx
	movl	%edx, %eax
	imull	%ecx, %eax
	cmpl	(%rbx), %eax
	ja	LBB0_4
LBB0_5:
	movl	8(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"count=%d, size=%d\n"

	.no_dead_strip	_sh_mobile_ceu_videobuf_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_mobile_ceu_videobuf_setup
_sh_mobile_ceu_videobuf_setup:          ; @sh_mobile_ceu_videobuf_setup
	.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, x2
	mov	x20, x1
	ldr	x21, [x0]
	ldr	w0, [x21, #8]
	bl	_to_soc_camera_host
	ldr	x22, [x0]
	ldr	x8, [x21, #16]
	ldr	w8, [x8]
	add	w8, w8, #7
	asr	w8, w8, #3
	ldp	w9, w10, [x21]
	mul	w9, w10, w9
	mul	w0, w9, w8
	bl	_PAGE_ALIGN
	str	w0, [x19]
	ldr	w2, [x20]
	cbnz	w2, LBB0_2
; %bb.1:
	mov	w2, #2
	str	w2, [x20]
LBB0_2:
	ldr	w8, [x22]
	ldr	w3, [x19]
	mul	w9, w2, w3
	cmp	w8, #0
	ccmp	w9, w8, #0, ne
	b.ls	LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w2, w2, #1
	str	w2, [x20]
	ldr	w3, [x19]
	mul	w8, w2, w3
	ldr	w9, [x22]
	cmp	w8, w9
	b.hi	LBB0_3
LBB0_4:
	ldr	w0, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"count=%d, size=%d\n"

	.no_dead_strip	_sh_mobile_ceu_videobuf_setup
.subsections_via_symbols
