	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function smiapp_get_crop_compose
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	1                               ## 0x1
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	8                               ## 0x8
	.quad	8                               ## 0x8
LCPI0_2:
	.quad	16                              ## 0x10
	.quad	16                              ## 0x10
LCPI0_3:
	.quad	24                              ## 0x18
	.quad	24                              ## 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_smiapp_get_crop_compose:               ## @smiapp_get_crop_compose
	.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
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	callq	_to_smiapp_subdev
	movq	_V4L2_SUBDEV_FORMAT_ACTIVE@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_5
## %bb.1:
	testq	%r15, %r15
	je	LBB0_27
## %bb.2:
	movl	(%r13), %ecx
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.3:
	cmpl	$4, %ecx
	jb	LBB0_4
## %bb.11:
	leaq	16(%rax), %rdx
	cmpq	%r15, %rdx
	jbe	LBB0_14
## %bb.12:
	leaq	(%r15,%rcx,8), %rdx
	movq	%rax, %rsi
	addq	$8, %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_14
LBB0_4:
	xorl	%r8d, %r8d
LBB0_20:
	movq	%r8, %r9
	notq	%r9
	addq	%rcx, %r9
	movq	%rcx, %rdi
	andq	$3, %rdi
	je	LBB0_24
## %bb.21:
	leaq	(,%r8,4), %rbx
	negq	%rdi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%rbx, %rsi
	movq	%rsi, (%r15,%rbx,2)
	decq	%rdx
	addq	$4, %rbx
	cmpq	%rdx, %rdi
	jne	LBB0_22
## %bb.23:
	subq	%rdx, %r8
LBB0_24:
	cmpq	$3, %r9
	jb	LBB0_27
## %bb.25:
	subq	%r8, %rcx
	leaq	8(,%r8,4), %rdx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rax), %rsi
	addq	%rdx, %rsi
	addq	$-8, %rsi
	movq	%rsi, -16(%r15,%rdx,2)
	movq	8(%rax), %rsi
	addq	%rdx, %rsi
	addq	$-4, %rsi
	movq	%rsi, -8(%r15,%rdx,2)
	movq	8(%rax), %rsi
	addq	%rdx, %rsi
	movq	%rsi, (%r15,%rdx,2)
	movq	8(%rax), %rsi
	addq	%rdx, %rsi
	addq	$4, %rsi
	movq	%rsi, 8(%r15,%rdx,2)
	addq	$16, %rdx
	addq	$-4, %rcx
	jne	LBB0_26
	jmp	LBB0_27
LBB0_5:
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	cmpl	$0, (%r13)
	je	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_v4l2_subdev_get_try_crop
	movq	%rax, (%r15,%rbx,8)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_BUG_ON
	incq	%rbx
	movl	(%r13), %eax
	cmpq	%rax, %rbx
	jb	LBB0_8
LBB0_9:
	testq	%r14, %r14
	je	LBB0_29
## %bb.10:
	movq	_SMIAPP_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_v4l2_subdev_get_try_compose
	movq	%rax, (%r14)
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG_ON                         ## TAILCALL
LBB0_14:
	movl	%ecx, %r8d
	andl	$-4, %r8d
	leaq	-4(%r8), %rdx
	movq	%rdx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rdx, %rdx
	je	LBB0_30
## %bb.15:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	movq	8(%rax), %xmm0                  ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [8,8]
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [16,16]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [24,24]
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	psllq	$2, %xmm5
	paddq	%xmm1, %xmm5
	movdqa	%xmm5, %xmm6
	paddq	%xmm2, %xmm6
	movdqu	%xmm5, (%r15,%rdi,8)
	movdqu	%xmm6, 16(%r15,%rdi,8)
	movdqa	%xmm5, %xmm6
	paddq	%xmm3, %xmm6
	paddq	%xmm4, %xmm5
	movdqu	%xmm6, 32(%r15,%rdi,8)
	movdqu	%xmm5, 48(%r15,%rdi,8)
	addq	$8, %rdi
	paddq	%xmm2, %xmm0
	addq	$-2, %rsi
	jne	LBB0_16
## %bb.17:
	testb	$1, %bl
	je	LBB0_19
LBB0_18:
	movq	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psllq	$2, %xmm0
	paddq	%xmm1, %xmm0
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [8,8]
	paddq	%xmm0, %xmm1
	movdqu	%xmm0, (%r15,%rdi,8)
	movdqu	%xmm1, 16(%r15,%rdi,8)
LBB0_19:
	cmpq	%rcx, %r8
	jne	LBB0_20
LBB0_27:
	testq	%r14, %r14
	je	LBB0_29
## %bb.28:
	movq	%rax, (%r14)
LBB0_29:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0]
	xorl	%edi, %edi
	testb	$1, %bl
	jne	LBB0_18
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ## @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_SMIAPP_PAD_SINK,4,2            ## @SMIAPP_PAD_SINK
	.no_dead_strip	_smiapp_get_crop_compose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function smiapp_get_crop_compose
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_smiapp_get_crop_compose:               ; @smiapp_get_crop_compose
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x4
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	bl	_to_smiapp_subdev
Lloh0:
	adrp	x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SUBDEV_FORMAT_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_11
; %bb.1:
	cbz	x20, LBB0_9
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_9
; %bb.3:
	cmp	w8, #8
	b.lo	LBB0_6
; %bb.4:
	add	x10, x0, #8
	add	x9, x0, #16
	cmp	x9, x20
	b.ls	LBB0_18
; %bb.5:
	add	x9, x20, x8, lsl #3
	cmp	x10, x9
	b.hs	LBB0_18
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x10, x9, #2
	sub	x8, x8, x9
	add	x9, x20, x9, lsl #3
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x0, #8]
	add	x11, x11, x10
	str	x11, [x9], #8
	add	x10, x10, #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	cbz	x19, LBB0_17
; %bb.10:
	str	x0, [x19]
	b	LBB0_17
LBB0_11:
	cbz	x20, LBB0_15
; %bb.12:
	ldr	w8, [x21]
	cbz	w8, LBB0_15
; %bb.13:
	mov	x23, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_v4l2_subdev_get_try_crop
	str	x0, [x20, x23, lsl #3]
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	add	x23, x23, #1
	ldr	w8, [x21]
	cmp	x23, x8
	b.lo	LBB0_14
LBB0_15:
	cbz	x19, LBB0_17
; %bb.16:
Lloh3:
	adrp	x8, _SMIAPP_PAD_SINK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMIAPP_PAD_SINK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x22
	bl	_v4l2_subdev_get_try_compose
	str	x0, [x19]
	cmp	x0, #0
	cset	w0, eq
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_BUG_ON
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_18:
	and	x9, x8, #0xfffffff8
	ld1r.2d	{ v0 }, [x10]
Lloh6:
	adrp	x10, lCPI0_0@PAGE
Lloh7:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	add	x10, x20, #32
	mov	w11, #24
	dup.2d	v2, x11
	mov	w11, #16
	dup.2d	v3, x11
	mov	w11, #8
	dup.2d	v4, x11
	mov	x11, x9
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	shl.2d	v5, v1, #2
	add.2d	v6, v0, v5
	add.2d	v5, v5, v0
	add.2d	v7, v5, v4
	add.2d	v16, v5, v3
	add.2d	v5, v5, v2
	stp	q6, q7, [x10, #-32]
	stp	q16, q5, [x10], #64
	add.2d	v1, v1, v4
	subs	x11, x11, #8
	b.ne	LBB0_19
; %bb.20:
	cmp	x9, x8
	b.eq	LBB0_9
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SUBDEV_FORMAT_ACTIVE,4,2  ; @V4L2_SUBDEV_FORMAT_ACTIVE
	.comm	_SMIAPP_PAD_SINK,4,2            ; @SMIAPP_PAD_SINK
	.no_dead_strip	_smiapp_get_crop_compose
.subsections_via_symbols
