	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_alloc_vi                    ## -- Begin function t4_alloc_vi
	.p2align	4, 0x90
_t4_alloc_vi:                           ## @t4_alloc_vi
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r14d
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	leaq	-104(%rbp), %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_FW_VI_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FW_CMD_OP_V
	movl	%eax, %r12d
	movq	_FW_CMD_REQUEST_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_FW_CMD_WRITE_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_FW_CMD_EXEC_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movl	%r15d, %edi
	movq	%rbx, %r15
	callq	_FW_VI_CMD_PFN_V
	movl	%eax, %ebx
	movl	%r14d, %edi
	callq	_FW_VI_CMD_VFN_V
	orl	%eax, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -56(%rbp)
	movq	_FW_VI_CMD_ALLOC_F@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	-56(%rbp), %rax
	movq	%rax, 48(%rsp)
	movups	-104(%rbp), %xmm0
	movups	-88(%rbp), %xmm1
	movups	-72(%rbp), %xmm2
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_FW_LEN16
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_be32
	movq	%rax, -96(%rbp)
	movl	%r13d, %edi
	callq	_FW_VI_CMD_PORTID_V
	movl	%eax, -64(%rbp)
	leal	-1(%r15), %eax
	movl	%eax, -104(%rbp)
	movq	-112(%rbp), %rdi                ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	-104(%rbp), %rdx
	movl	$56, %ecx
	movq	%rdx, %r8
	callq	_t4_wr_mbox
	testl	%eax, %eax
	jne	LBB0_15
## %bb.1:
	movq	24(%rbp), %r14
	movq	16(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.2:
	movl	-68(%rbp), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
	addl	$-2, %r15d
	cmpl	$3, %r15d
	ja	LBB0_8
## %bb.3:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	leaq	96(%rbx), %rdi
	movl	-72(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_5:
	leaq	72(%rbx), %rdi
	movl	-76(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_6:
	leaq	48(%rbx), %rdi
	movl	-80(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
LBB0_7:
	addq	$24, %rbx
	movl	-84(%rbp), %esi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_memcpy
LBB0_8:
	movq	32(%rbp), %r15
	testq	%r14, %r14
	je	LBB0_10
## %bb.9:
	movl	-88(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_FW_VI_CMD_RSSSIZE_G
	movl	%eax, (%r14)
LBB0_10:
	movq	40(%rbp), %rbx
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	-96(%rbp), %rdi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_FW_VI_CMD_VFVLD_G
	movl	%eax, (%r15)
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	-96(%rbp), %rdi
	callq	_be32_to_cpu
	movl	%eax, %edi
	callq	_FW_VI_CMD_VIN_G
	movl	%eax, (%rbx)
LBB0_14:
	movl	-100(%rbp), %edi
	callq	_be16_to_cpu
	movl	%eax, %edi
	callq	_FW_VI_CMD_VIID_G
LBB0_15:
	addq	$136, %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_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_FW_VI_CMD,4,2                  ## @FW_VI_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ## @FW_CMD_REQUEST_F
	.comm	_FW_CMD_WRITE_F,4,2             ## @FW_CMD_WRITE_F
	.comm	_FW_CMD_EXEC_F,4,2              ## @FW_CMD_EXEC_F
	.comm	_FW_VI_CMD_ALLOC_F,4,2          ## @FW_VI_CMD_ALLOC_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_alloc_vi                    ; -- Begin function t4_alloc_vi
	.p2align	2
_t4_alloc_vi:                           ; @t4_alloc_vi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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, x7
	mov	x20, x6
	mov	x21, x5
	mov	x25, x4
	mov	x26, x3
	mov	x24, x2
	mov	x22, x1
	mov	x23, x0
	add	x0, sp, #56
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh0:
	adrp	x8, _FW_VI_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_VI_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_FW_CMD_OP_V
Lloh3:
	adrp	x8, _FW_CMD_REQUEST_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FW_CMD_REQUEST_F@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh6:
	adrp	x9, _FW_CMD_WRITE_F@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FW_CMD_WRITE_F@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _FW_CMD_EXEC_F@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FW_CMD_EXEC_F@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w27, w8, w9
	mov	x0, x26
	bl	_FW_VI_CMD_PFN_V
	orr	w26, w27, w0
	mov	x0, x25
	bl	_FW_VI_CMD_VFN_V
	orr	w0, w26, w0
	bl	_cpu_to_be32
	str	x0, [sp, #104]
Lloh12:
	adrp	x8, _FW_VI_CMD_ALLOC_F@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FW_VI_CMD_ALLOC_F@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x8]
	ldur	q0, [sp, #56]
	ldur	q1, [sp, #72]
	stp	q0, q1, [sp]
	ldur	q0, [sp, #88]
	str	q0, [sp, #32]
	str	x0, [sp, #48]
	mov	x0, sp
	bl	_FW_LEN16
	orr	w0, w0, w25
	bl	_cpu_to_be32
	str	x0, [sp, #64]
	mov	x0, x24
	bl	_FW_VI_CMD_PORTID_V
	sub	w8, w21, #1
	str	w0, [sp, #96]
	str	w8, [sp, #56]
	add	x2, sp, #56
	add	x4, sp, #56
	mov	x0, x23
	mov	x1, x22
	mov	w3, #56
	bl	_t4_wr_mbox
	cbnz	w0, LBB0_15
; %bb.1:
	ldr	x22, [x29, #16]
	cbz	x20, LBB0_8
; %bb.2:
	ldr	w1, [sp, #92]
	mov	x0, x20
	mov	w2, #4
	bl	_memcpy
	sub	w8, w21, #2
	cmp	w8, #3
	b.hi	LBB0_8
; %bb.3:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	add	x0, x20, #96
	ldr	w1, [sp, #88]
	mov	w2, #4
	bl	_memcpy
LBB0_5:
	add	x0, x20, #72
	ldr	w1, [sp, #84]
	mov	w2, #4
	bl	_memcpy
LBB0_6:
	add	x0, x20, #48
	ldr	w1, [sp, #80]
	mov	w2, #4
	bl	_memcpy
LBB0_7:
	add	x0, x20, #24
	ldr	w1, [sp, #76]
	mov	w2, #4
	bl	_memcpy
LBB0_8:
	ldr	x20, [x29, #24]
	cbz	x19, LBB0_10
; %bb.9:
	ldr	w0, [sp, #72]
	bl	_be16_to_cpu
	bl	_FW_VI_CMD_RSSSIZE_G
	str	w0, [x19]
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	ldr	x0, [sp, #64]
	bl	_be32_to_cpu
	bl	_FW_VI_CMD_VFVLD_G
	str	w0, [x22]
LBB0_12:
	cbz	x20, LBB0_14
; %bb.13:
	ldr	x0, [sp, #64]
	bl	_be32_to_cpu
	bl	_FW_VI_CMD_VIN_G
	str	w0, [x20]
LBB0_14:
	ldr	w0, [sp, #60]
	bl	_be16_to_cpu
	bl	_FW_VI_CMD_VIID_G
LBB0_15:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_FW_VI_CMD,4,2                  ; @FW_VI_CMD
	.comm	_FW_CMD_REQUEST_F,4,2           ; @FW_CMD_REQUEST_F
	.comm	_FW_CMD_WRITE_F,4,2             ; @FW_CMD_WRITE_F
	.comm	_FW_CMD_EXEC_F,4,2              ; @FW_CMD_EXEC_F
	.comm	_FW_VI_CMD_ALLOC_F,4,2          ; @FW_VI_CMD_ALLOC_F
.subsections_via_symbols
