	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_parent_create_         ## -- Begin function nouveau_parent_create_
	.p2align	4, 0x90
_nouveau_parent_create_:                ## @nouveau_parent_create_
	.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	%r9d, %ebx
	movq	%r8, %r12
	movq	%rsi, %r15
	movl	16(%rbp), %r8d
	movq	24(%rbp), %r14
	movq	_NV_PARENT_CLASS@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r14, %r9
	callq	_nouveau_object_create_
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r14), %r13
	testq	%r12, %r12
	je	LBB0_10
## %bb.2:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_nv_engine
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, 8(%rbx)
	movq	%r12, (%rbx)
	cmpq	$0, 8(%r12)
	leaq	8(%r12), %r12
	je	LBB0_10
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	8(%r13), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, 8(%r13)
	testq	%r15, %r15
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r13)
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_PARENT_CLASS,4,2            ## @NV_PARENT_CLASS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nouveau_parent_create_         ; -- Begin function nouveau_parent_create_
	.p2align	2
_nouveau_parent_create_:                ; @nouveau_parent_create_
	.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	x22, x7
	mov	x19, x5
	mov	x20, x4
	mov	x21, x1
Lloh0:
	adrp	x8, _NV_PARENT_CLASS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_PARENT_CLASS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w3, w8, w3
	mov	x4, x6
	mov	x5, x7
	bl	_nouveau_object_create_
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x23, [x22]
	cbz	x20, LBB0_9
; %bb.2:
	ldr	x8, [x20]
	cbz	x8, LBB0_9
; %bb.3:
Lloh3:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_nv_engine
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	stp	x20, x0, [x22]
	ldr	x8, [x20, #8]!
	cbz	x8, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x0
	ldr	x8, [x23, #8]
	str	x8, [x0, #16]
	str	x0, [x23, #8]
	cbnz	x21, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, #0
	b	LBB0_5
LBB0_9:
	mov	w0, #0
	str	w19, [x23]
LBB0_10:
	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_11:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_PARENT_CLASS,4,2            ; @NV_PARENT_CLASS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
