	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lif_configure_stream
_lif_configure_stream:                  ## @lif_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
	movq	%rdi, %r15
	addq	$8, %rdi
	callq	_to_lif
	movq	%rax, %r13
	movl	(%rax), %esi
	movq	_LIF_PAD_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_vsp1_entity_get_pad_format
	movq	(%r15), %rdx
	movq	_VI6_IP_VERSION_MODEL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rdx), %ecx
	movq	%rax, %r12
	xorl	%esi, %esi
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_3
## %bb.1:
	movl	$1500, %ebx                     ## imm = 0x5DC
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	xorl	%eax, %eax
	jmpq	*%rcx
LBB0_2:
	movl	16(%r12), %eax
	movl	%eax, %ecx
	incl	%ecx
	shrl	$31, %ecx
	leal	(%rax,%rcx), %esi
	incl	%esi
	sarl	%esi
	imull	(%r12), %esi
	addl	$-4, %esi
	movl	$128, %edi
	callq	_min
	movl	%eax, %ebx
	movl	$1520, %eax                     ## imm = 0x5F0
	movl	$1536, %esi                     ## imm = 0x600
	jmp	LBB0_4
LBB0_3:
	movl	$3000, %ebx                     ## imm = 0xBB8
	xorl	%eax, %eax
LBB0_4:
	movq	_VI6_LIF_CSBTH_HBTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_VI6_LIF_CSBTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VI6_LIF_CSBTH_LBTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%esi, %eax
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	callq	_vsp1_lif_write
	movq	_VI6_LIF_CTRL@GOTPCREL(%rip), %rax
	movq	_VI6_LIF_CTRL_OBTH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	cmpq	$0, 8(%r12)
	jne	LBB0_6
## %bb.5:
	movq	_VI6_LIF_CTRL_CFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_6:
	orl	%ebx, %ecx
	movq	_VI6_LIF_CTRL_REQSEL@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_VI6_LIF_CTRL_LIF_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_vsp1_lif_write
	movq	(%r15), %rax
	movq	_VI6_IP_VERSION_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	movq	_VI6_IP_VERSION_SOC_V3M@GOTPCREL(%rip), %rax
	movl	$128, %edx
	orl	(%rax), %edx
	cmpl	%edx, %ecx
	jne	LBB0_7
## %bb.8:
	movq	_VI6_LIF_LBA@GOTPCREL(%rip), %rdx
	movq	_VI6_LIF_LBA_LBA1_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1536, %eax                     ## imm = 0x600
	shll	%cl, %eax
	movl	(%rdx), %edx
	movq	_VI6_LIF_LBA_LBA0@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vsp1_lif_write                 ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_2
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_LIF_PAD_SOURCE,4,2             ## @LIF_PAD_SOURCE
	.comm	_VI6_IP_VERSION_MODEL_MASK,4,2  ## @VI6_IP_VERSION_MODEL_MASK
	.comm	_VI6_LIF_CSBTH,4,2              ## @VI6_LIF_CSBTH
	.comm	_VI6_LIF_CSBTH_HBTH_SHIFT,4,2   ## @VI6_LIF_CSBTH_HBTH_SHIFT
	.comm	_VI6_LIF_CSBTH_LBTH_SHIFT,4,2   ## @VI6_LIF_CSBTH_LBTH_SHIFT
	.comm	_VI6_LIF_CTRL,4,2               ## @VI6_LIF_CTRL
	.comm	_VI6_LIF_CTRL_OBTH_SHIFT,4,2    ## @VI6_LIF_CTRL_OBTH_SHIFT
	.comm	_VI6_LIF_CTRL_CFMT,4,2          ## @VI6_LIF_CTRL_CFMT
	.comm	_VI6_LIF_CTRL_REQSEL,4,2        ## @VI6_LIF_CTRL_REQSEL
	.comm	_VI6_LIF_CTRL_LIF_EN,4,2        ## @VI6_LIF_CTRL_LIF_EN
	.comm	_VI6_IP_VERSION_MASK,4,2        ## @VI6_IP_VERSION_MASK
	.comm	_VI6_IP_VERSION_SOC_V3M,4,2     ## @VI6_IP_VERSION_SOC_V3M
	.comm	_VI6_LIF_LBA,4,2                ## @VI6_LIF_LBA
	.comm	_VI6_LIF_LBA_LBA0,4,2           ## @VI6_LIF_LBA_LBA0
	.comm	_VI6_LIF_LBA_LBA1_SHIFT,4,2     ## @VI6_LIF_LBA_LBA1_SHIFT
	.no_dead_strip	_lif_configure_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lif_configure_stream
_lif_configure_stream:                  ; @lif_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
	mov	x21, x0
	add	x0, x0, #8
	bl	_to_lif
	mov	x20, x0
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _LIF_PAD_SOURCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LIF_PAD_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	bl	_vsp1_entity_get_pad_format
	mov	x22, x0
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _VI6_IP_VERSION_MODEL_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VI6_IP_VERSION_MODEL_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
	sub	w10, w8, #128
	cmp	w10, #4
	b.hi	LBB0_3
; %bb.1:
	mov	w9, #0
	mov	w8, #0
	mov	w23, #1500
Lloh6:
	adrp	x11, lJTI0_0@PAGE
Lloh7:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w8, [x22, #16]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w8, w8, #1
	ldr	w9, [x22]
	mul	w8, w8, w9
	sub	w1, w8, #4
	mov	w0, #128
	bl	_min
	mov	x23, x0
	mov	w8, #1520
	mov	w9, #1536
	b	LBB0_4
LBB0_3:
	mov	w9, #0
	mov	w8, #0
	mov	w23, #3000
LBB0_4:
Lloh8:
	adrp	x10, _VI6_LIF_CSBTH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _VI6_LIF_CSBTH@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x10]
Lloh11:
	adrp	x10, _VI6_LIF_CSBTH_HBTH_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _VI6_LIF_CSBTH_HBTH_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh14:
	adrp	x10, _VI6_LIF_CSBTH_LBTH_SHIFT@GOTPAGE
Lloh15:
	ldr	x10, [x10, _VI6_LIF_CSBTH_LBTH_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_lif_write
Lloh17:
	adrp	x8, _VI6_LIF_CTRL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VI6_LIF_CTRL@GOTPAGEOFF]
Lloh19:
	adrp	x9, _VI6_LIF_CTRL_OBTH_SHIFT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _VI6_LIF_CTRL_OBTH_SHIFT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	ldr	w8, [x9]
	lsl	w8, w23, w8
	ldr	x9, [x22, #8]
Lloh23:
	adrp	x10, _VI6_LIF_CTRL_CFMT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _VI6_LIF_CTRL_CFMT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, w10, wzr, eq
	orr	w8, w9, w8
Lloh26:
	adrp	x9, _VI6_LIF_CTRL_REQSEL@GOTPAGE
Lloh27:
	ldr	x9, [x9, _VI6_LIF_CTRL_REQSEL@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _VI6_LIF_CTRL_LIF_EN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VI6_LIF_CTRL_LIF_EN@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x19
	bl	_vsp1_lif_write
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _VI6_IP_VERSION_MASK@GOTPAGE
Lloh33:
	ldr	x9, [x9, _VI6_IP_VERSION_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh35:
	adrp	x9, _VI6_IP_VERSION_SOC_V3M@GOTPAGE
Lloh36:
	ldr	x9, [x9, _VI6_IP_VERSION_SOC_V3M@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w9, w9, #0x80
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh38:
	adrp	x8, _VI6_LIF_LBA@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VI6_LIF_LBA@GOTPAGEOFF]
Lloh40:
	adrp	x9, _VI6_LIF_LBA_LBA0@GOTPAGE
Lloh41:
	ldr	x9, [x9, _VI6_LIF_LBA_LBA0@GOTPAGEOFF]
Lloh42:
	ldr	w2, [x8]
Lloh43:
	ldr	w8, [x9]
Lloh44:
	adrp	x9, _VI6_LIF_LBA_LBA1_SHIFT@GOTPAGE
Lloh45:
	ldr	x9, [x9, _VI6_LIF_LBA_LBA1_SHIFT@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	mov	w10, #1536
	lsl	w9, w10, 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_lif_write
LBB0_6:
	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
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
                                        ; -- End function
	.comm	_LIF_PAD_SOURCE,4,2             ; @LIF_PAD_SOURCE
	.comm	_VI6_IP_VERSION_MODEL_MASK,4,2  ; @VI6_IP_VERSION_MODEL_MASK
	.comm	_VI6_LIF_CSBTH,4,2              ; @VI6_LIF_CSBTH
	.comm	_VI6_LIF_CSBTH_HBTH_SHIFT,4,2   ; @VI6_LIF_CSBTH_HBTH_SHIFT
	.comm	_VI6_LIF_CSBTH_LBTH_SHIFT,4,2   ; @VI6_LIF_CSBTH_LBTH_SHIFT
	.comm	_VI6_LIF_CTRL,4,2               ; @VI6_LIF_CTRL
	.comm	_VI6_LIF_CTRL_OBTH_SHIFT,4,2    ; @VI6_LIF_CTRL_OBTH_SHIFT
	.comm	_VI6_LIF_CTRL_CFMT,4,2          ; @VI6_LIF_CTRL_CFMT
	.comm	_VI6_LIF_CTRL_REQSEL,4,2        ; @VI6_LIF_CTRL_REQSEL
	.comm	_VI6_LIF_CTRL_LIF_EN,4,2        ; @VI6_LIF_CTRL_LIF_EN
	.comm	_VI6_IP_VERSION_MASK,4,2        ; @VI6_IP_VERSION_MASK
	.comm	_VI6_IP_VERSION_SOC_V3M,4,2     ; @VI6_IP_VERSION_SOC_V3M
	.comm	_VI6_LIF_LBA,4,2                ; @VI6_LIF_LBA
	.comm	_VI6_LIF_LBA_LBA0,4,2           ; @VI6_LIF_LBA_LBA0
	.comm	_VI6_LIF_LBA_LBA1_SHIFT,4,2     ; @VI6_LIF_LBA_LBA1_SHIFT
	.no_dead_strip	_lif_configure_stream
.subsections_via_symbols
