	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uds_configure_stream
_uds_configure_stream:                  ## @uds_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	callq	_to_uds
	movq	%rax, %r12
	leaq	8(%rax), %rbx
	movl	16(%rax), %esi
	movq	_UDS_PAD_SINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %r13
	movl	16(%r12), %esi
	movq	_UDS_PAD_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	%rax, %rbx
	movl	4(%r13), %edi
	movl	4(%rax), %esi
	callq	_uds_compute_ratio
	movl	%eax, %r15d
	movl	(%r13), %edi
	movl	(%rbx), %esi
	callq	_uds_compute_ratio
	movl	%eax, %ebx
	movq	8(%r12), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_dev_dbg
	movl	%ebx, %eax
	orl	%r15d, %eax
	xorl	%ecx, %ecx
	cmpl	$8192, %eax                     ## imm = 0x2000
	movq	_VI6_UDS_CTRL_BC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	cmovael	%ecx, %esi
	cmpq	$0, (%r12)
	movq	_VI6_UDS_CTRL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	je	LBB0_2
## %bb.1:
	movq	_VI6_UDS_CTRL_AON@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %eax
LBB0_2:
	orl	%eax, %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_vsp1_uds_write
	movq	_VI6_UDS_PASS_BWIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edi
	callq	_uds_passband_width
	movq	%r14, %r13
	movl	%eax, %r14d
	movq	_VI6_UDS_PASS_BWIDTH_H_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	movl	%ebx, %edi
	callq	_uds_passband_width
	movq	_VI6_UDS_PASS_BWIDTH_V_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%eax, %r14d
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_vsp1_uds_write
	movq	_VI6_UDS_SCALE_HFRAC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_VI6_UDS_SCALE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VI6_UDS_SCALE_VFRAC_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r15d, %ebx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_uds_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UDS_PAD_SINK,4,2               ## @UDS_PAD_SINK
	.comm	_UDS_PAD_SOURCE,4,2             ## @UDS_PAD_SOURCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hscale %u vscale %u\n"

	.comm	_VI6_UDS_CTRL,4,2               ## @VI6_UDS_CTRL
	.comm	_VI6_UDS_CTRL_AON,4,2           ## @VI6_UDS_CTRL_AON
	.comm	_VI6_UDS_CTRL_BC,4,2            ## @VI6_UDS_CTRL_BC
	.comm	_VI6_UDS_PASS_BWIDTH,4,2        ## @VI6_UDS_PASS_BWIDTH
	.comm	_VI6_UDS_PASS_BWIDTH_H_SHIFT,4,2 ## @VI6_UDS_PASS_BWIDTH_H_SHIFT
	.comm	_VI6_UDS_PASS_BWIDTH_V_SHIFT,4,2 ## @VI6_UDS_PASS_BWIDTH_V_SHIFT
	.comm	_VI6_UDS_SCALE,4,2              ## @VI6_UDS_SCALE
	.comm	_VI6_UDS_SCALE_HFRAC_SHIFT,4,2  ## @VI6_UDS_SCALE_HFRAC_SHIFT
	.comm	_VI6_UDS_SCALE_VFRAC_SHIFT,4,2  ## @VI6_UDS_SCALE_VFRAC_SHIFT
	.no_dead_strip	_uds_configure_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uds_configure_stream
_uds_configure_stream:                  ; @uds_configure_stream
	.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, x3
	bl	_to_uds
	mov	x20, x0
	add	x21, x0, #8
	ldr	w1, [x0, #16]
Lloh0:
	adrp	x8, _UDS_PAD_SINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UDS_PAD_SINK@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_vsp1_entity_get_pad_format
	mov	x22, x0
	ldr	w1, [x20, #16]
Lloh3:
	adrp	x8, _UDS_PAD_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _UDS_PAD_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_vsp1_entity_get_pad_format
	mov	x23, x0
	ldr	w0, [x22, #4]
	ldr	w1, [x23, #4]
	bl	_uds_compute_ratio
	mov	x21, x0
	ldr	w0, [x22]
	ldr	w1, [x23]
	bl	_uds_compute_ratio
	mov	x22, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
	ldr	x8, [x20]
	orr	w9, w22, w21
Lloh8:
	adrp	x10, _VI6_UDS_CTRL_AON@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VI6_UDS_CTRL_AON@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	x8, #0
	csel	w10, wzr, w10, eq
	tst	w9, #0xffffe000
	ccmp	x8, #0, #4, ne
Lloh11:
	adrp	x8, _VI6_UDS_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VI6_UDS_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x8, _VI6_UDS_CTRL_BC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VI6_UDS_CTRL_BC@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	csel	w8, wzr, w8, ne
	orr	w3, w8, w10
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_uds_write
Lloh17:
	adrp	x8, _VI6_UDS_PASS_BWIDTH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VI6_UDS_PASS_BWIDTH@GOTPAGEOFF]
Lloh19:
	ldr	w23, [x8]
	mov	x0, x21
	bl	_uds_passband_width
Lloh20:
	adrp	x8, _VI6_UDS_PASS_BWIDTH_H_SHIFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _VI6_UDS_PASS_BWIDTH_H_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	lsl	w24, w0, w8
	mov	x0, x22
	bl	_uds_passband_width
Lloh23:
	adrp	x8, _VI6_UDS_PASS_BWIDTH_V_SHIFT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VI6_UDS_PASS_BWIDTH_V_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	lsl	w8, w0, w8
	orr	w3, w8, w24
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	bl	_vsp1_uds_write
Lloh26:
	adrp	x8, _VI6_UDS_SCALE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VI6_UDS_SCALE@GOTPAGEOFF]
Lloh28:
	adrp	x9, _VI6_UDS_SCALE_HFRAC_SHIFT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _VI6_UDS_SCALE_HFRAC_SHIFT@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
Lloh31:
	ldr	w8, [x9]
	lsl	w8, w21, w8
Lloh32:
	adrp	x9, _VI6_UDS_SCALE_VFRAC_SHIFT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VI6_UDS_SCALE_VFRAC_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	lsl	w9, w22, w9
	orr	w3, w9, w8
	mov	x0, x20
	mov	x1, x19
	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	_vsp1_uds_write
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_UDS_PAD_SINK,4,2               ; @UDS_PAD_SINK
	.comm	_UDS_PAD_SOURCE,4,2             ; @UDS_PAD_SOURCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hscale %u vscale %u\n"

	.comm	_VI6_UDS_CTRL,4,2               ; @VI6_UDS_CTRL
	.comm	_VI6_UDS_CTRL_AON,4,2           ; @VI6_UDS_CTRL_AON
	.comm	_VI6_UDS_CTRL_BC,4,2            ; @VI6_UDS_CTRL_BC
	.comm	_VI6_UDS_PASS_BWIDTH,4,2        ; @VI6_UDS_PASS_BWIDTH
	.comm	_VI6_UDS_PASS_BWIDTH_H_SHIFT,4,2 ; @VI6_UDS_PASS_BWIDTH_H_SHIFT
	.comm	_VI6_UDS_PASS_BWIDTH_V_SHIFT,4,2 ; @VI6_UDS_PASS_BWIDTH_V_SHIFT
	.comm	_VI6_UDS_SCALE,4,2              ; @VI6_UDS_SCALE
	.comm	_VI6_UDS_SCALE_HFRAC_SHIFT,4,2  ; @VI6_UDS_SCALE_HFRAC_SHIFT
	.comm	_VI6_UDS_SCALE_VFRAC_SHIFT,4,2  ; @VI6_UDS_SCALE_VFRAC_SHIFT
	.no_dead_strip	_uds_configure_stream
.subsections_via_symbols
