	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hgt_configure_stream
_hgt_configure_stream:                  ## @hgt_configure_stream
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdi, %rbx
	addq	$4, %rdi
	callq	_to_hgt
	movq	%rax, %r13
	movl	(%rbx), %esi
	movq	_HISTO_PAD_SINK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	_V4L2_SEL_TGT_CROP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_selection
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	(%r14), %edx
	movq	_V4L2_SEL_TGT_COMPOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_selection
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_VI6_HGT_REGRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VI6_HGT_REGRST_RCLEA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_vsp1_hgt_write
	movq	_VI6_HGT_OFFSET@GOTPCREL(%rip), %rax
	movq	_VI6_HGT_OFFSET_HOFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	(%r15), %esi
	shll	%cl, %esi
	movl	(%rax), %edx
	movl	4(%r15), %eax
	movq	_VI6_HGT_OFFSET_VOFFSET_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_vsp1_hgt_write
	movq	_VI6_HGT_SIZE@GOTPCREL(%rip), %rax
	movq	_VI6_HGT_SIZE_HSIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	8(%r15), %esi
	shll	%cl, %esi
	movl	(%rax), %edx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %eax
	movq	_VI6_HGT_SIZE_VSIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %ecx
	callq	_vsp1_hgt_write
	movl	8(%r13), %edi
	callq	_mutex_lock
	movq	_HGT_NUM_HUE_AREAS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	$1, %r14d
	xorl	%ebx, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	leal	-1(%r14), %ecx
	movq	%r12, %r13
	movl	(%rax,%rcx,4), %r12d
	movl	%r14d, %ecx
	movl	(%rax,%rcx,4), %r15d
	movl	%ebx, %edi
	callq	_VI6_HGT_HUE_AREA
	movq	_VI6_HGT_HUE_AREA_LOWER_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %r12d
	movq	_VI6_HGT_HUE_AREA_UPPER_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %r15d
	orl	%r12d, %r15d
	movq	%r13, %r12
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	%r15d, %ecx
	callq	_vsp1_hgt_write
	movq	_HGT_NUM_HUE_AREAS@GOTPCREL(%rip), %rax
	incq	%rbx
	movl	(%rax), %eax
	addl	$2, %r14d
	cmpq	%rax, %rbx
	jb	LBB0_2
LBB0_3:
	movl	8(%r13), %edi
	callq	_mutex_unlock
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rcx), %eax
	movl	12(%rcx), %ecx
	addl	%eax, %eax
	xorl	%edx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	divl	8(%rdi)
	movl	%eax, %ebx
	movl	$2863311531, %esi               ## imm = 0xAAAAAAAB
	imulq	%rsi, %rbx
	addl	%ecx, %ecx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	12(%rdi)
                                        ## kill: def $eax killed $eax def $rax
	shrq	$33, %rbx
	imulq	%rsi, %rax
	shrq	$33, %rax
	movq	_VI6_HGT_MODE_HRATIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_VI6_HGT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VI6_HGT_MODE_VRATIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %ebx
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_hgt_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HISTO_PAD_SINK,4,2             ## @HISTO_PAD_SINK
	.comm	_V4L2_SEL_TGT_CROP,4,2          ## @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ## @V4L2_SEL_TGT_COMPOSE
	.comm	_VI6_HGT_REGRST,4,2             ## @VI6_HGT_REGRST
	.comm	_VI6_HGT_REGRST_RCLEA,4,2       ## @VI6_HGT_REGRST_RCLEA
	.comm	_VI6_HGT_OFFSET,4,2             ## @VI6_HGT_OFFSET
	.comm	_VI6_HGT_OFFSET_HOFFSET_SHIFT,4,2 ## @VI6_HGT_OFFSET_HOFFSET_SHIFT
	.comm	_VI6_HGT_OFFSET_VOFFSET_SHIFT,4,2 ## @VI6_HGT_OFFSET_VOFFSET_SHIFT
	.comm	_VI6_HGT_SIZE,4,2               ## @VI6_HGT_SIZE
	.comm	_VI6_HGT_SIZE_HSIZE_SHIFT,4,2   ## @VI6_HGT_SIZE_HSIZE_SHIFT
	.comm	_VI6_HGT_SIZE_VSIZE_SHIFT,4,2   ## @VI6_HGT_SIZE_VSIZE_SHIFT
	.comm	_HGT_NUM_HUE_AREAS,4,2          ## @HGT_NUM_HUE_AREAS
	.comm	_VI6_HGT_HUE_AREA_LOWER_SHIFT,4,2 ## @VI6_HGT_HUE_AREA_LOWER_SHIFT
	.comm	_VI6_HGT_HUE_AREA_UPPER_SHIFT,4,2 ## @VI6_HGT_HUE_AREA_UPPER_SHIFT
	.comm	_VI6_HGT_MODE,4,2               ## @VI6_HGT_MODE
	.comm	_VI6_HGT_MODE_HRATIO_SHIFT,4,2  ## @VI6_HGT_MODE_HRATIO_SHIFT
	.comm	_VI6_HGT_MODE_VRATIO_SHIFT,4,2  ## @VI6_HGT_MODE_VRATIO_SHIFT
	.no_dead_strip	_hgt_configure_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hgt_configure_stream
_hgt_configure_stream:                  ; @hgt_configure_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x0
	add	x0, x0, #4
	bl	_to_hgt
	mov	x20, x0
	ldr	w1, [x22]
Lloh0:
	adrp	x23, _HISTO_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HISTO_PAD_SINK@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x8, _V4L2_SEL_TGT_CROP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_SEL_TGT_CROP@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_vsp1_entity_get_pad_selection
	mov	x21, x0
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh5:
	adrp	x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _V4L2_SEL_TGT_COMPOSE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_vsp1_entity_get_pad_selection
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
Lloh8:
	adrp	x8, _VI6_HGT_REGRST@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VI6_HGT_REGRST@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _VI6_HGT_REGRST_RCLEA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VI6_HGT_REGRST_RCLEA@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_hgt_write
Lloh14:
	adrp	x8, _VI6_HGT_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VI6_HGT_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _VI6_HGT_OFFSET_HOFFSET_SHIFT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VI6_HGT_OFFSET_HOFFSET_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldp	w9, w10, [x21]
	lsl	w8, w9, w8
Lloh20:
	adrp	x9, _VI6_HGT_OFFSET_VOFFSET_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _VI6_HGT_OFFSET_VOFFSET_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_hgt_write
Lloh23:
	adrp	x8, _VI6_HGT_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VI6_HGT_SIZE@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _VI6_HGT_SIZE_HSIZE_SHIFT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VI6_HGT_SIZE_HSIZE_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldp	w9, w10, [x21, #8]
	lsl	w8, w9, w8
Lloh29:
	adrp	x9, _VI6_HGT_SIZE_VSIZE_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VI6_HGT_SIZE_VSIZE_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_hgt_write
	ldr	w0, [x20, #8]
	bl	_mutex_lock
Lloh32:
	adrp	x24, _HGT_NUM_HUE_AREAS@GOTPAGE
Lloh33:
	ldr	x24, [x24, _HGT_NUM_HUE_AREAS@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w25, #1
Lloh34:
	adrp	x26, _VI6_HGT_HUE_AREA_LOWER_SHIFT@GOTPAGE
Lloh35:
	ldr	x26, [x26, _VI6_HGT_HUE_AREA_LOWER_SHIFT@GOTPAGEOFF]
Lloh36:
	adrp	x27, _VI6_HGT_HUE_AREA_UPPER_SHIFT@GOTPAGE
Lloh37:
	ldr	x27, [x27, _VI6_HGT_HUE_AREA_UPPER_SHIFT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	sub	w9, w25, #1
	ldr	w28, [x8, w9, uxtw #2]
	ldr	w22, [x8, w25, uxtw #2]
	mov	x0, x23
	bl	_VI6_HGT_HUE_AREA
	mov	x2, x0
	ldr	w8, [x26]
	lsl	w8, w28, w8
	ldr	w9, [x27]
	lsl	w9, w22, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_hgt_write
	add	x23, x23, #1
	ldr	w8, [x24]
	add	w25, w25, #2
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
	ldr	w0, [x20, #8]
	bl	_mutex_unlock
	ldp	w8, w9, [x21, #8]
	lsl	w8, w8, #1
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
	ldp	w10, w11, [x11, #8]
	udiv	w8, w8, w10
	mov	w10, #43691
	movk	w10, #43690, lsl #16
	umull	x8, w8, w10
	lsr	x8, x8, #33
	lsl	w9, w9, #1
	udiv	w9, w9, w11
	umull	x9, w9, w10
	lsr	x9, x9, #33
Lloh38:
	adrp	x10, _VI6_HGT_MODE@GOTPAGE
Lloh39:
	ldr	x10, [x10, _VI6_HGT_MODE@GOTPAGEOFF]
Lloh40:
	adrp	x11, _VI6_HGT_MODE_HRATIO_SHIFT@GOTPAGE
Lloh41:
	ldr	x11, [x11, _VI6_HGT_MODE_HRATIO_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x10]
Lloh43:
	ldr	w10, [x11]
	lsl	w8, w8, w10
Lloh44:
	adrp	x10, _VI6_HGT_MODE_VRATIO_SHIFT@GOTPAGE
Lloh45:
	ldr	x10, [x10, _VI6_HGT_MODE_VRATIO_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_vsp1_hgt_write
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_HISTO_PAD_SINK,4,2             ; @HISTO_PAD_SINK
	.comm	_V4L2_SEL_TGT_CROP,4,2          ; @V4L2_SEL_TGT_CROP
	.comm	_V4L2_SEL_TGT_COMPOSE,4,2       ; @V4L2_SEL_TGT_COMPOSE
	.comm	_VI6_HGT_REGRST,4,2             ; @VI6_HGT_REGRST
	.comm	_VI6_HGT_REGRST_RCLEA,4,2       ; @VI6_HGT_REGRST_RCLEA
	.comm	_VI6_HGT_OFFSET,4,2             ; @VI6_HGT_OFFSET
	.comm	_VI6_HGT_OFFSET_HOFFSET_SHIFT,4,2 ; @VI6_HGT_OFFSET_HOFFSET_SHIFT
	.comm	_VI6_HGT_OFFSET_VOFFSET_SHIFT,4,2 ; @VI6_HGT_OFFSET_VOFFSET_SHIFT
	.comm	_VI6_HGT_SIZE,4,2               ; @VI6_HGT_SIZE
	.comm	_VI6_HGT_SIZE_HSIZE_SHIFT,4,2   ; @VI6_HGT_SIZE_HSIZE_SHIFT
	.comm	_VI6_HGT_SIZE_VSIZE_SHIFT,4,2   ; @VI6_HGT_SIZE_VSIZE_SHIFT
	.comm	_HGT_NUM_HUE_AREAS,4,2          ; @HGT_NUM_HUE_AREAS
	.comm	_VI6_HGT_HUE_AREA_LOWER_SHIFT,4,2 ; @VI6_HGT_HUE_AREA_LOWER_SHIFT
	.comm	_VI6_HGT_HUE_AREA_UPPER_SHIFT,4,2 ; @VI6_HGT_HUE_AREA_UPPER_SHIFT
	.comm	_VI6_HGT_MODE,4,2               ; @VI6_HGT_MODE
	.comm	_VI6_HGT_MODE_HRATIO_SHIFT,4,2  ; @VI6_HGT_MODE_HRATIO_SHIFT
	.comm	_VI6_HGT_MODE_VRATIO_SHIFT,4,2  ; @VI6_HGT_MODE_VRATIO_SHIFT
	.no_dead_strip	_hgt_configure_stream
.subsections_via_symbols
