	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function venus_boot_no_tz
_venus_boot_no_tz:                      ## @venus_boot_no_tz
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%rdx, %rcx
	movl	%esi, %edx
	movq	%rdi, %r15
	movq	8(%rdi), %rdi
	movq	%rcx, (%r15)
	movq	_VENUS_FW_START_ADDR@GOTPCREL(%rip), %rax
	movq	_IOMMU_READ@GOTPCREL(%rip), %rsi
	movq	_IOMMU_WRITE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	orl	(%rsi), %r8d
	movl	(%rax), %esi
	movq	_IOMMU_PRIV@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	callq	_iommu_map
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	callq	_venus_reset_cpu
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_VENUS_FW_START_ADDR,4,2        ## @VENUS_FW_START_ADDR
	.comm	_IOMMU_READ,4,2                 ## @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ## @IOMMU_WRITE
	.comm	_IOMMU_PRIV,4,2                 ## @IOMMU_PRIV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not map video firmware region\n"

	.no_dead_strip	_venus_boot_no_tz
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function venus_boot_no_tz
_venus_boot_no_tz:                      ; @venus_boot_no_tz
	.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
	ldr	x19, [x0, #16]
	cbz	x19, LBB0_3
; %bb.1:
	mov	x3, x2
	mov	x2, x1
	mov	x20, x0
	ldr	x0, [x0, #8]
	str	x3, [x20]
Lloh0:
	adrp	x8, _VENUS_FW_START_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VENUS_FW_START_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IOMMU_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IOMMU_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IOMMU_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IOMMU_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IOMMU_PRIV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IOMMU_PRIV@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w4, w8, w9
	bl	_iommu_map
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_3:
Lloh14:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_venus_reset_cpu
LBB0_5:
	mov	x0, x21
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_VENUS_FW_START_ADDR,4,2        ; @VENUS_FW_START_ADDR
	.comm	_IOMMU_READ,4,2                 ; @IOMMU_READ
	.comm	_IOMMU_WRITE,4,2                ; @IOMMU_WRITE
	.comm	_IOMMU_PRIV,4,2                 ; @IOMMU_PRIV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not map video firmware region\n"

	.no_dead_strip	_venus_boot_no_tz
.subsections_via_symbols
