	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sru_configure_stream
_sru_configure_stream:                  ## @sru_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	callq	_to_sru
	movq	%rax, %r12
	leaq	4(%rax), %rbx
	movl	4(%rax), %esi
	movq	_SRU_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r15
	movl	4(%r12), %esi
	movq	_SRU_PAD_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	(%r15), %rcx
	movq	_MEDIA_BUS_FMT_ARGB8888_1X32@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_VI6_SRU_CTRL0_PARAM2@GOTPCREL(%rip), %rcx
	movq	_VI6_SRU_CTRL0_PARAM3@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_VI6_SRU_CTRL0_PARAM4@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	jmp	LBB0_3
LBB0_2:
	movq	_VI6_SRU_CTRL0_PARAM3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_3:
	movq	8(%r15), %rsi
	xorl	%ecx, %ecx
	cmpq	8(%rax), %rsi
	je	LBB0_5
## %bb.4:
	movq	_VI6_SRU_CTRL0_MODE_UPSCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_5:
	orl	%edx, %ecx
	movq	_vsp1_sru_params@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	(%r12), %rbx
	orl	-8(%r15,%rbx,8), %ecx
	movq	_VI6_SRU_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_vsp1_sru_write
	movq	_VI6_SRU_CTRL1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VI6_SRU_CTRL1_PARAM5@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_vsp1_sru_write
	movq	_VI6_SRU_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-4(%r15,%rbx,8), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_sru_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SRU_PAD_SINK,4,2               ## @SRU_PAD_SINK
	.comm	_SRU_PAD_SOURCE,4,2             ## @SRU_PAD_SOURCE
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,8,3 ## @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_VI6_SRU_CTRL0_PARAM2,4,2       ## @VI6_SRU_CTRL0_PARAM2
	.comm	_VI6_SRU_CTRL0_PARAM3,4,2       ## @VI6_SRU_CTRL0_PARAM3
	.comm	_VI6_SRU_CTRL0_PARAM4,4,2       ## @VI6_SRU_CTRL0_PARAM4
	.comm	_VI6_SRU_CTRL0_MODE_UPSCALE,4,2 ## @VI6_SRU_CTRL0_MODE_UPSCALE
	.comm	_vsp1_sru_params,8,3            ## @vsp1_sru_params
	.comm	_VI6_SRU_CTRL0,4,2              ## @VI6_SRU_CTRL0
	.comm	_VI6_SRU_CTRL1,4,2              ## @VI6_SRU_CTRL1
	.comm	_VI6_SRU_CTRL1_PARAM5,4,2       ## @VI6_SRU_CTRL1_PARAM5
	.comm	_VI6_SRU_CTRL2,4,2              ## @VI6_SRU_CTRL2
	.no_dead_strip	_sru_configure_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sru_configure_stream
_sru_configure_stream:                  ; @sru_configure_stream
	.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, x3
	bl	_to_sru
	mov	x20, x0
	mov	x22, x0
	ldr	w1, [x22, #4]!
Lloh0:
	adrp	x8, _SRU_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SRU_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_vsp1_entity_get_pad_format
	mov	x21, x0
	ldr	w1, [x22]
Lloh3:
	adrp	x8, _SRU_PAD_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRU_PAD_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_vsp1_entity_get_pad_format
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MEDIA_BUS_FMT_ARGB8888_1X32@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _VI6_SRU_CTRL0_PARAM2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VI6_SRU_CTRL0_PARAM2@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _VI6_SRU_CTRL0_PARAM3@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VI6_SRU_CTRL0_PARAM3@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _VI6_SRU_CTRL0_PARAM4@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VI6_SRU_CTRL0_PARAM4@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	b	LBB0_3
LBB0_2:
Lloh18:
	adrp	x8, _VI6_SRU_CTRL0_PARAM3@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VI6_SRU_CTRL0_PARAM3@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
LBB0_3:
	ldr	x9, [x21, #8]
	ldr	x10, [x0, #8]
Lloh21:
	adrp	x11, _VI6_SRU_CTRL0_MODE_UPSCALE@GOTPAGE
Lloh22:
	ldr	x11, [x11, _VI6_SRU_CTRL0_MODE_UPSCALE@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w9, wzr, w11, eq
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _vsp1_sru_params@GOTPAGE
Lloh25:
	ldr	x9, [x9, _vsp1_sru_params@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	ldrsw	x10, [x20]
	add	x21, x9, x10, lsl #3
	ldur	w9, [x21, #-8]
	orr	w3, w8, w9
Lloh27:
	adrp	x8, _VI6_SRU_CTRL0@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VI6_SRU_CTRL0@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_sru_write
Lloh30:
	adrp	x8, _VI6_SRU_CTRL1@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VI6_SRU_CTRL1@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _VI6_SRU_CTRL1_PARAM5@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VI6_SRU_CTRL1_PARAM5@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_sru_write
Lloh36:
	adrp	x8, _VI6_SRU_CTRL2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _VI6_SRU_CTRL2@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldur	w3, [x21, #-4]
	mov	x0, x20
	mov	x1, x19
	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
	b	_vsp1_sru_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_SRU_PAD_SINK,4,2               ; @SRU_PAD_SINK
	.comm	_SRU_PAD_SOURCE,4,2             ; @SRU_PAD_SOURCE
	.comm	_MEDIA_BUS_FMT_ARGB8888_1X32,8,3 ; @MEDIA_BUS_FMT_ARGB8888_1X32
	.comm	_VI6_SRU_CTRL0_PARAM2,4,2       ; @VI6_SRU_CTRL0_PARAM2
	.comm	_VI6_SRU_CTRL0_PARAM3,4,2       ; @VI6_SRU_CTRL0_PARAM3
	.comm	_VI6_SRU_CTRL0_PARAM4,4,2       ; @VI6_SRU_CTRL0_PARAM4
	.comm	_VI6_SRU_CTRL0_MODE_UPSCALE,4,2 ; @VI6_SRU_CTRL0_MODE_UPSCALE
	.comm	_vsp1_sru_params,8,3            ; @vsp1_sru_params
	.comm	_VI6_SRU_CTRL0,4,2              ; @VI6_SRU_CTRL0
	.comm	_VI6_SRU_CTRL1,4,2              ; @VI6_SRU_CTRL1
	.comm	_VI6_SRU_CTRL1_PARAM5,4,2       ; @VI6_SRU_CTRL1_PARAM5
	.comm	_VI6_SRU_CTRL2,4,2              ; @VI6_SRU_CTRL2
	.no_dead_strip	_sru_configure_stream
.subsections_via_symbols
