	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function histo_set_compose
_histo_set_compose:                     ## @histo_set_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	callq	_subdev_to_histo
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movl	24(%rbx), %edx
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vsp1_entity_get_pad_selection
	movq	%rax, %r12
	movl	(%rbx), %edi
	movl	(%rax), %edx
	leal	3(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$2, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_clamp
	movq	%rax, %rcx
	movl	%ecx, (%rbx)
	movl	(%r12), %esi
	leal	(%rsi,%rsi), %eax
	cltd
	idivl	%ecx
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $rcx
	shrl	%cl, %esi
	movl	%esi, (%rbx)
	movl	4(%rbx), %edi
	movl	4(%r12), %edx
	leal	3(%rdx), %esi
	testl	%edx, %edx
	cmovnsl	%edx, %esi
	sarl	$2, %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_clamp
	movq	%rax, %rcx
	movl	%ecx, 4(%rbx)
	movl	4(%r12), %esi
	leal	(%rsi,%rsi), %eax
	cltd
	idivl	%ecx
	cltq
	imulq	$1431655766, %rax, %rcx         ## imm = 0x55555556
	movq	%rcx, %rax
	shrq	$63, %rax
	shrq	$32, %rcx
	addl	%eax, %ecx
                                        ## kill: def $cl killed $cl killed $rcx
	shrl	%cl, %esi
	movl	%esi, 4(%rbx)
	movl	24(%rbx), %edx
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_vsp1_entity_get_pad_selection
	movups	(%rbx), %xmm0
	movups	%xmm0, (%rax)
	movq	16(%rbx), %rcx
	movq	%rcx, 16(%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ## @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_histo_set_compose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function histo_set_compose
_histo_set_compose:                     ; @histo_set_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	x19, x2
	mov	x20, x1
	bl	_subdev_to_histo
	mov	x21, x0
	stp	xzr, xzr, [x19, #8]
	ldr	w2, [x19, #24]
Lloh0:
	adrp	x8, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_vsp1_entity_get_pad_selection
	mov	x22, x0
	ldr	w0, [x19]
	ldr	w2, [x22]
	add	w8, w2, #3
	cmp	w2, #0
	csel	w8, w8, w2, lt
	asr	w1, w8, #2
	bl	_clamp
	str	w0, [x19]
	ldp	w8, w2, [x22]
	lsl	w9, w8, #1
	sdiv	w9, w9, w0
	mov	w23, #21846
	movk	w23, #21845, lsl #16
	smull	x9, w9, w23
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	lsr	w8, w8, w9
	str	w8, [x19]
	ldr	w0, [x19, #4]
	add	w8, w2, #3
	cmp	w2, #0
	csel	w8, w8, w2, lt
	asr	w1, w8, #2
	bl	_clamp
	str	w0, [x19, #4]
	ldr	w8, [x22, #4]
	lsl	w9, w8, #1
	sdiv	w9, w9, w0
	smull	x9, w9, w23
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	lsr	w8, w8, w9
	str	w8, [x19, #4]
	ldr	w2, [x19, #24]
Lloh3:
	adrp	x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_vsp1_entity_get_pad_selection
	ldr	x8, [x19, #16]
	ldr	q0, [x19]
	str	q0, [x0]
	str	x8, [x0, #16]
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SEL_TGT_CROP,4,2          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ; @V4L2_SEL_TGT_COMPOSE
	.no_dead_strip	_histo_set_compose
.subsections_via_symbols
