	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gf100_bar_oneinit_bar
_gf100_bar_oneinit_bar:                 ## @gf100_bar_oneinit_bar
	.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
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	8(%rdi), %rbx
	movq	_NVKM_MEM_TARGET_INST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_nvkm_memory_new
	testl	%eax, %eax
	je	LBB0_1
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	cmpl	$3, %r14d
	jne	LBB0_5
## %bb.6:
	cmpq	$0, 16(%r13)
	setne	%cl
	sarl	%cl, %eax
	leaq	L_.str(%rip), %r10
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_5:
	leaq	L_.str.1(%rip), %r10
LBB0_7:
	leaq	8(%r15), %rcx
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%r12, %r9
	pushq	%rbx
	pushq	%r10
	callq	_nvkm_vmm_new
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.8:
	movq	(%rbx), %rax
	movq	_NVKM_SUBDEV_BAR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	shlq	$2, %rdi
	addq	8(%rax), %rdi
	callq	_atomic_inc
	movl	(%r13), %eax
	movq	(%rbx), %rdi
	movl	%eax, (%rdi)
	cmpl	$3, %r14d
	jne	LBB0_11
## %bb.9:
	callq	_nvkm_vmm_boot
	testl	%eax, %eax
	jne	LBB0_3
## %bb.10:
	movq	(%rbx), %rdi
LBB0_11:
	movl	(%r15), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvkm_vmm_join                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NVKM_MEM_TARGET_INST,4,2       ## @NVKM_MEM_TARGET_INST
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bar2"

L_.str.1:                               ## @.str.1
	.asciz	"bar1"

	.comm	_NVKM_SUBDEV_BAR,8,3            ## @NVKM_SUBDEV_BAR
	.no_dead_strip	_gf100_bar_oneinit_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gf100_bar_oneinit_bar
_gf100_bar_oneinit_bar:                 ; @gf100_bar_oneinit_bar
	.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	x20, x3
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x23, [x0, #8]
Lloh0:
	adrp	x8, _NVKM_MEM_TARGET_INST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVKM_MEM_TARGET_INST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x23
	mov	w2, #4096
	mov	w3, #0
	mov	w4, #0
	mov	x5, x19
	bl	_nvkm_memory_new
	cbz	w0, LBB0_2
LBB0_1:
	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_2:
	ldr	x8, [x23]
	ldr	x8, [x8]
	mov	x0, x23
	mov	x1, x20
	blr	x8
	cbz	w0, LBB0_5
; %bb.3:
	mov	x2, x0
	cmp	w20, #3
	b.ne	LBB0_6
; %bb.4:
	ldr	x8, [x21, #16]
	cmp	x8, #0
	cset	w8, ne
	asr	w2, w2, w8
Lloh3:
	adrp	x6, l_.str@PAGE
Lloh4:
	add	x6, x6, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_1
LBB0_6:
Lloh8:
	adrp	x6, l_.str.1@PAGE
Lloh9:
	add	x6, x6, l_.str.1@PAGEOFF
LBB0_7:
	add	x24, x19, #8
	mov	x0, x23
	mov	w1, #0
	mov	x3, #0
	mov	w4, #0
	mov	x5, x22
	mov	x7, x24
	bl	_nvkm_vmm_new
	cbnz	w0, LBB0_1
; %bb.8:
	ldr	x8, [x24]
	ldr	x8, [x8, #8]
Lloh10:
	adrp	x9, _NVKM_SUBDEV_BAR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _NVKM_SUBDEV_BAR@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	bl	_atomic_inc
	ldr	w8, [x21]
	ldr	x0, [x24]
	str	w8, [x0]
	cmp	w20, #3
	b.ne	LBB0_11
; %bb.9:
	bl	_nvkm_vmm_boot
	cbnz	w0, LBB0_1
; %bb.10:
	ldr	x0, [x24]
LBB0_11:
	ldr	w1, [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	_nvkm_vmm_join
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_NVKM_MEM_TARGET_INST,4,2       ; @NVKM_MEM_TARGET_INST
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bar2"

l_.str.1:                               ; @.str.1
	.asciz	"bar1"

	.comm	_NVKM_SUBDEV_BAR,8,3            ; @NVKM_SUBDEV_BAR
	.no_dead_strip	_gf100_bar_oneinit_bar
.subsections_via_symbols
