	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vic_init
_vic_init:                              ## @vic_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_host1x_to_drm_client
	movq	%rax, %r14
	movl	8(%r15), %edi
	callq	_iommu_group_get
	movq	%rax, %r12
	movl	12(%r15), %edi
	callq	_dev_get_drvdata
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_to_vic
	movq	%rax, %r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_5
## %bb.1:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_iommu_attach_group
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	(%rbx), %rax
	movq	%rax, 8(%r13)
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%r15), %edi
	callq	_host1x_channel_request
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_host1x_syncpt_request
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_tegra_drm_register_client
	testl	%eax, %eax
	jns	LBB0_15
## %bb.10:
	movl	%eax, %r14d
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_host1x_syncpt_free
	movl	%r14d, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_13
	jmp	LBB0_15
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movl	(%r13), %edi
	callq	_host1x_channel_put
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_15
LBB0_13:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_iommu_detach_group
	jmp	LBB0_15
LBB0_3:
	movl	%eax, %r12d
	movl	16(%r13), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_15:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to attach to domain: %d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_vic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vic_init
_vic_init:                              ; @vic_init
	.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	x21, x0
	bl	_host1x_to_drm_client
	mov	x23, x0
	ldr	w0, [x21, #8]
	bl	_iommu_group_get
	mov	x19, x0
	ldr	w0, [x21, #12]
	bl	_dev_get_drvdata
	ldr	x20, [x0]
	mov	x0, x23
	bl	_to_vic
	mov	x22, x0
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x19
	bl	_iommu_attach_group
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	x8, [x20]
	str	x8, [x22, #8]
LBB0_4:
	ldr	w0, [x21, #8]
	bl	_host1x_channel_request
	str	w0, [x22]
	cbz	w0, LBB0_8
; %bb.5:
	mov	x0, x21
	mov	w1, #0
	bl	_host1x_syncpt_request
	ldr	x8, [x21]
	str	w0, [x8]
	cbz	w0, LBB0_9
; %bb.6:
	mov	x0, x20
	mov	x1, x23
	bl	_tegra_drm_register_client
	tbnz	w0, #31, LBB0_11
; %bb.7:
	mov	w24, #0
	b	LBB0_15
LBB0_8:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
	cbnz	x19, LBB0_13
	b	LBB0_15
LBB0_9:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_12
LBB0_10:
	mov	x24, x0
	ldr	w0, [x22, #16]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	b	LBB0_15
LBB0_11:
	mov	x24, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_host1x_syncpt_free
LBB0_12:
	ldr	w0, [x22]
	bl	_host1x_channel_put
	cbz	x19, LBB0_15
LBB0_13:
	ldr	x0, [x20]
	cbz	x0, LBB0_15
; %bb.14:
	mov	x1, x19
	bl	_iommu_detach_group
LBB0_15:
	mov	x0, x24
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to attach to domain: %d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_vic_init
.subsections_via_symbols
