	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vic_boot
_vic_boot:                              ## @vic_boot
	.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
	xorl	%r14d, %r14d
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r13
	movl	$4, %edi
	callq	_CG_IDLE_CG_DLY_CNT
	movl	%eax, %ebx
	movq	_CG_IDLE_CG_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	$4, %edi
	callq	_CG_WAKEUP_DLY_CNT
	orl	%eax, %ebx
	movq	_NV_PVIC_MISC_PRI_VIC_CG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_vic_writel
	leaq	8(%r13), %r15
	movq	%r15, %rdi
	callq	_falcon_boot
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	16(%r13), %rax
	movq	_VIC_UCODE_FCE_DATA_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	(%rax,%rcx), %r12d
	movq	_VIC_UCODE_FCE_HEADER_OFFSET@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movslq	(%rax,%rcx), %rcx
	addq	%rax, %rcx
	movq	_FCE_UCODE_SIZE_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movl	(%rax,%rcx), %ebx
	movq	_VIC_SET_APPLICATION_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_falcon_execute_method
	movq	_VIC_SET_FCE_UCODE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_falcon_execute_method
	movq	_VIC_SET_FCE_UCODE_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	8(%r13), %r12d
	sarl	$8, %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_falcon_execute_method
	movq	%r15, %rdi
	callq	_falcon_wait_idle
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	$1, (%r13)
	jmp	LBB0_6
LBB0_2:
	movl	%eax, %r14d
	jmp	LBB0_6
LBB0_4:
	movl	%eax, %r15d
	movl	4(%r13), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%r15d, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_CG_IDLE_CG_EN,4,2              ## @CG_IDLE_CG_EN
	.comm	_NV_PVIC_MISC_PRI_VIC_CG,4,2    ## @NV_PVIC_MISC_PRI_VIC_CG
	.comm	_VIC_UCODE_FCE_DATA_OFFSET,4,2  ## @VIC_UCODE_FCE_DATA_OFFSET
	.comm	_VIC_UCODE_FCE_HEADER_OFFSET,4,2 ## @VIC_UCODE_FCE_HEADER_OFFSET
	.comm	_FCE_UCODE_SIZE_OFFSET,4,2      ## @FCE_UCODE_SIZE_OFFSET
	.comm	_VIC_SET_APPLICATION_ID,4,2     ## @VIC_SET_APPLICATION_ID
	.comm	_VIC_SET_FCE_UCODE_SIZE,4,2     ## @VIC_SET_FCE_UCODE_SIZE
	.comm	_VIC_SET_FCE_UCODE_OFFSET,4,2   ## @VIC_SET_FCE_UCODE_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set application ID and FCE base\n"

	.comm	_TRANSCFG_SID_FALCON,4,2        ## @TRANSCFG_SID_FALCON
	.comm	_TRANSCFG_SID_HW,4,2            ## @TRANSCFG_SID_HW
	.comm	_VIC_TFBIF_TRANSCFG,4,2         ## @VIC_TFBIF_TRANSCFG
	.comm	_VIC_THI_STREAMID0,4,2          ## @VIC_THI_STREAMID0
	.comm	_VIC_THI_STREAMID1,4,2          ## @VIC_THI_STREAMID1
	.no_dead_strip	_vic_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vic_boot
_vic_boot:                              ; @vic_boot
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w21, #0
LBB0_2:
	mov	x0, x21
	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
LBB0_3:
	mov	x19, x0
	mov	w0, #4
	bl	_CG_IDLE_CG_DLY_CNT
Lloh0:
	adrp	x8, _CG_IDLE_CG_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CG_IDLE_CG_EN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w20, w8, w0
	mov	w0, #4
	bl	_CG_WAKEUP_DLY_CNT
	orr	w1, w20, w0
Lloh3:
	adrp	x8, _NV_PVIC_MISC_PRI_VIC_CG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_PVIC_MISC_PRI_VIC_CG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_vic_writel
	add	x20, x19, #8
	mov	x0, x20
	bl	_falcon_boot
	tbnz	w0, #31, LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _VIC_UCODE_FCE_DATA_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VIC_UCODE_FCE_DATA_OFFSET@GOTPAGEOFF]
	ldr	x9, [x19, #16]
Lloh8:
	ldrsw	x8, [x8]
	ldr	w23, [x9, x8]
Lloh9:
	adrp	x8, _VIC_UCODE_FCE_HEADER_OFFSET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VIC_UCODE_FCE_HEADER_OFFSET@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	ldrsw	x8, [x9, x8]
	add	x8, x9, x8
Lloh12:
	adrp	x9, _FCE_UCODE_SIZE_OFFSET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FCE_UCODE_SIZE_OFFSET@GOTPAGEOFF]
Lloh14:
	ldrsw	x9, [x9]
	ldr	w21, [x8, x9]
Lloh15:
	adrp	x8, _VIC_SET_APPLICATION_ID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VIC_SET_APPLICATION_ID@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w22, #1
	mov	x0, x20
	mov	w2, #1
	bl	_falcon_execute_method
Lloh18:
	adrp	x8, _VIC_SET_FCE_UCODE_SIZE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VIC_SET_FCE_UCODE_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_falcon_execute_method
Lloh21:
	adrp	x8, _VIC_SET_FCE_UCODE_OFFSET@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VIC_SET_FCE_UCODE_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	add	w8, w8, w23
	asr	w2, w8, #8
	mov	x0, x20
	bl	_falcon_execute_method
	mov	x0, x20
	bl	_falcon_wait_idle
	tbnz	w0, #31, LBB0_7
; %bb.5:
	mov	w21, #0
	str	w22, [x19]
	b	LBB0_2
LBB0_6:
	mov	x21, x0
	b	LBB0_2
LBB0_7:
	mov	x21, x0
	ldr	w0, [x19, #4]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CG_IDLE_CG_EN,4,2              ; @CG_IDLE_CG_EN
	.comm	_NV_PVIC_MISC_PRI_VIC_CG,4,2    ; @NV_PVIC_MISC_PRI_VIC_CG
	.comm	_VIC_UCODE_FCE_DATA_OFFSET,4,2  ; @VIC_UCODE_FCE_DATA_OFFSET
	.comm	_VIC_UCODE_FCE_HEADER_OFFSET,4,2 ; @VIC_UCODE_FCE_HEADER_OFFSET
	.comm	_FCE_UCODE_SIZE_OFFSET,4,2      ; @FCE_UCODE_SIZE_OFFSET
	.comm	_VIC_SET_APPLICATION_ID,4,2     ; @VIC_SET_APPLICATION_ID
	.comm	_VIC_SET_FCE_UCODE_SIZE,4,2     ; @VIC_SET_FCE_UCODE_SIZE
	.comm	_VIC_SET_FCE_UCODE_OFFSET,4,2   ; @VIC_SET_FCE_UCODE_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set application ID and FCE base\n"

	.comm	_TRANSCFG_SID_FALCON,4,2        ; @TRANSCFG_SID_FALCON
	.comm	_TRANSCFG_SID_HW,4,2            ; @TRANSCFG_SID_HW
	.comm	_VIC_TFBIF_TRANSCFG,4,2         ; @VIC_TFBIF_TRANSCFG
	.comm	_VIC_THI_STREAMID0,4,2          ; @VIC_THI_STREAMID0
	.comm	_VIC_THI_STREAMID1,4,2          ; @VIC_THI_STREAMID1
	.no_dead_strip	_vic_boot
.subsections_via_symbols
