	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_process
_create_process:                        ## @create_process
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	leaq	60(%rax), %rdi
	callq	_kref_init
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_init
	movq	8(%r12), %rax
	movq	%rax, 16(%rbx)
	movl	(%r12), %eax
	movl	%eax, 28(%rbx)
	leaq	56(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%rbx), %rdi
	movq	_evict_process_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	leaq	48(%rbx), %rdi
	movq	_restore_process_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	xorl	%eax, %eax
	callq	_get_jiffies_64
	movl	%eax, 44(%rbx)
	movq	%rbx, %rdi
	callq	_kfd_event_init_process
	xorl	%eax, %eax
	callq	_in_compat_syscall
	movl	%eax, 40(%rbx)
	xorl	%eax, %eax
	callq	_kfd_pasid_alloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfd_alloc_process_doorbells
	testq	%rax, %rax
	js	LBB0_9
## %bb.3:
	leaq	12(%rbx), %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pqm_init
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_kfd_init_apertures
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	32(%rbx), %rdi
	movq	_kfd_process_mmu_notifier_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	16(%rbx), %rsi
	callq	_mmu_notifier_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.6:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfd_process_free_outstanding_kfd_bos
	movq	%rbx, %rdi
	callq	_kfd_process_destroy_pdds
LBB0_7:
	movq	%r12, %rdi
	callq	_pqm_uninit
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfd_free_process_doorbells
LBB0_9:
	movq	(%rbx), %rdi
	callq	_kfd_pasid_free
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_destroy
	movq	%rbx, %rdi
	callq	_kfree
LBB0_11:
	movl	%r14d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_12:
	movl	28(%rbx), %edi
	callq	_get_task_struct
	movq	_kfd_processes_table@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	addq	$24, %rsi
	movq	16(%rbx), %rdx
	callq	_hash_add_rcu
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_evict_process_worker,4,2       ## @evict_process_worker
	.comm	_restore_process_worker,4,2     ## @restore_process_worker
	.comm	_kfd_process_mmu_notifier_ops,4,2 ## @kfd_process_mmu_notifier_ops
	.comm	_kfd_processes_table,4,2        ## @kfd_processes_table
	.no_dead_strip	_create_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_process
_create_process:                        ; @create_process
	.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
	mov	x22, x0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w20, w8
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	add	x0, x0, #60
	bl	_kref_init
	add	x21, x19, #8
	mov	x0, x21
	bl	_mutex_init
	ldr	x8, [x22, #8]
	str	x8, [x19, #16]
	ldr	w8, [x22]
	str	w8, [x19, #28]
	add	x0, x19, #56
	bl	_INIT_LIST_HEAD
	add	x0, x19, #52
Lloh6:
	adrp	x8, _evict_process_worker@GOTPAGE
Lloh7:
	ldr	x8, [x8, _evict_process_worker@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #48
Lloh9:
	adrp	x8, _restore_process_worker@GOTPAGE
Lloh10:
	ldr	x8, [x8, _restore_process_worker@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	bl	_get_jiffies_64
	str	w0, [x19, #44]
	mov	x0, x19
	bl	_kfd_event_init_process
	bl	_in_compat_syscall
	str	w0, [x19, #40]
	bl	_kfd_pasid_alloc
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.2:
	mov	x0, x19
	bl	_kfd_alloc_process_doorbells
	tbnz	x0, #63, LBB0_9
; %bb.3:
	add	x22, x19, #12
	mov	x0, x22
	mov	x1, x19
	bl	_pqm_init
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_kfd_init_apertures
	mov	x20, x0
	cbnz	w0, LBB0_7
; %bb.5:
Lloh12:
	adrp	x8, _kfd_process_mmu_notifier_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _kfd_process_mmu_notifier_ops@GOTPAGEOFF]
	mov	x0, x19
	str	x8, [x0, #32]!
	ldur	x1, [x0, #-16]
	bl	_mmu_notifier_register
	cbz	w0, LBB0_12
; %bb.6:
	mov	x20, x0
	mov	x0, x19
	bl	_kfd_process_free_outstanding_kfd_bos
	mov	x0, x19
	bl	_kfd_process_destroy_pdds
LBB0_7:
	mov	x0, x22
	bl	_pqm_uninit
LBB0_8:
	mov	x0, x19
	bl	_kfd_free_process_doorbells
LBB0_9:
	ldr	x0, [x19]
	bl	_kfd_pasid_free
LBB0_10:
	mov	x0, x21
	bl	_mutex_destroy
	mov	x0, x19
	bl	_kfree
LBB0_11:
	mov	x0, x20
	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
	b	_ERR_PTR
LBB0_12:
	ldr	w0, [x19, #28]
	bl	_get_task_struct
Lloh14:
	adrp	x8, _kfd_processes_table@GOTPAGE
Lloh15:
	ldr	x8, [x8, _kfd_processes_table@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, x19, #24
	ldr	x2, [x19, #16]
	bl	_hash_add_rcu
	mov	x0, x19
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_evict_process_worker,4,2       ; @evict_process_worker
	.comm	_restore_process_worker,4,2     ; @restore_process_worker
	.comm	_kfd_process_mmu_notifier_ops,4,2 ; @kfd_process_mmu_notifier_ops
	.comm	_kfd_processes_table,4,2        ; @kfd_processes_table
	.no_dead_strip	_create_process
.subsections_via_symbols
