	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_prepare_dma_offset        ## -- Begin function fimc_prepare_dma_offset
	.p2align	4, 0x90
_fimc_prepare_dma_offset:               ## @fimc_prepare_dma_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movl	(%rax), %r8d
	movq	32(%rsi), %r9
	movq	(%r9), %r11
	testq	%r11, %r11
	je	LBB0_1
## %bb.2:
	movq	24(%r9), %rdi
	cmpq	$4, %r11
	jae	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_5:
	movq	%r11, %rcx
	andq	$-4, %rcx
	leaq	-4(%rcx), %rax
	movq	%rax, %rdx
	shrq	$2, %rdx
	incq	%rdx
	movl	%edx, %r10d
	andl	$3, %r10d
	cmpq	$12, %rax
	jae	LBB0_7
## %bb.6:
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	jmp	LBB0_9
LBB0_7:
	andq	$-4, %rdx
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rdi,%rax,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rdi,%rax,8), %xmm1
	movdqu	48(%rdi,%rax,8), %xmm3
	movdqu	64(%rdi,%rax,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rdi,%rax,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rdi,%rax,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rdi,%rax,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rax
	addq	$-4, %rdx
	jne	LBB0_8
LBB0_9:
	testq	%r10, %r10
	je	LBB0_12
## %bb.10:
	leaq	(%rdi,%rax,8), %rax
	addq	$16, %rax
	shlq	$5, %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdx), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rax,%rdx), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_11
LBB0_12:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	jmp	LBB0_13
LBB0_4:
	addq	(%rdi,%rcx,8), %rax
	incq	%rcx
LBB0_13:
	cmpq	%rcx, %r11
	jne	LBB0_4
## %bb.14:
	shrq	$3, %rax
LBB0_15:
	testl	%r8d, %r8d
	movl	$1, %edx
	cmovel	%eax, %edx
	movq	(%rsi), %rax
	imull	%eax, %edx
	movq	%rax, %xmm0
	movq	%rax, %rcx
	shrq	$32, %rcx
	pshufd	$17, %xmm0, %xmm0               ## xmm0 = xmm0[1,0,1,0]
	movl	%edx, 8(%rsi)
	movdqu	%xmm0, 12(%rsi)
	movl	%ecx, 28(%rsi)
	testl	%r8d, %r8d
	je	LBB0_17
## %bb.16:
	movq	16(%r9), %rax
	jmp	LBB0_21
LBB0_17:
	cmpl	$3, 8(%r9)
	jne	LBB0_19
## %bb.18:
	sarl	%eax
	movl	%eax, 16(%rsi)
	movl	%eax, 24(%rsi)
LBB0_19:
	movq	16(%r9), %rax
	movq	_FIMC_FMT_YCBCR420@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_21
## %bb.20:
	movl	%ecx, %edi
	sarl	%edi
	movl	%edi, 20(%rsi)
	movl	%edi, 28(%rsi)
LBB0_21:
	movslq	%edx, %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
                                        ## kill: def $ecx killed $ecx killed $rcx
	popq	%rbp
	jmp	_dbg                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_FIMC_FMT_YCBCR420,8,3          ## @FIMC_FMT_YCBCR420
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in_offset: color= %d, y_h= %d, y_v= %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fimc_prepare_dma_offset        ; -- Begin function fimc_prepare_dma_offset
	.p2align	2
_fimc_prepare_dma_offset:               ; @fimc_prepare_dma_offset
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x8]
	ldr	x8, [x1, #32]
	ldr	x10, [x8]
	cbz	x10, LBB0_9
; %bb.1:
	ldr	x11, [x8, #24]
	cmp	x10, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x13, #0
	mov	x12, #0
	b	LBB0_6
LBB0_3:
	and	x12, x10, #0xfffffffffffffff8
	add	x13, x11, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x13, d0
	cmp	x10, x12
	b.eq	LBB0_8
LBB0_6:
	sub	x10, x10, x12
	add	x11, x11, x12, lsl #3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x11], #8
	add	x13, x12, x13
	subs	x10, x10, #1
	b.ne	LBB0_7
LBB0_8:
	lsr	x10, x13, #3
LBB0_9:
	cmp	w9, #0
	csinc	w10, w10, wzr, eq
	ldp	w11, w3, [x1]
	mul	w10, w11, w10
	stp	w10, w3, [x1, #8]
	stp	w11, w3, [x1, #16]
	stp	w11, w3, [x1, #24]
	cbz	w9, LBB0_11
; %bb.10:
	ldr	x8, [x8, #16]
	b	LBB0_15
LBB0_11:
	ldr	w9, [x8, #8]
	cmp	w9, #3
	b.ne	LBB0_13
; %bb.12:
	asr	w9, w11, #1
	str	w9, [x1, #16]
	str	w9, [x1, #24]
LBB0_13:
	ldr	x8, [x8, #16]
Lloh0:
	adrp	x9, _FIMC_FMT_YCBCR420@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIMC_FMT_YCBCR420@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.14:
	asr	w9, w3, #1
	str	w9, [x1, #20]
	str	w9, [x1, #28]
LBB0_15:
	sxtw	x2, w10
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x8
	b	_dbg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FIMC_FMT_YCBCR420,8,3          ; @FIMC_FMT_YCBCR420
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in_offset: color= %d, y_h= %d, y_v= %d"

.subsections_via_symbols
