	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_procfs_init                ## -- Begin function kfd_procfs_init
	.p2align	4, 0x90
_kfd_procfs_init:                       ## @kfd_procfs_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_procfs@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_kfd_alloc_struct
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_kfd_device@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_procfs_type@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movl	%eax, %edi
	callq	_kobject_init_and_add
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_warn
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_kfd_procfs_shutdown            ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_procfs,4,2                     ## @procfs
	.comm	_procfs_type,4,2                ## @procfs_type
	.comm	_kfd_device,8,3                 ## @kfd_device
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proc"

L_.str.1:                               ## @.str.1
	.asciz	"Could not create procfs proc folder"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kfd_procfs_init                ; -- Begin function kfd_procfs_init
	.p2align	2
_kfd_procfs_init:                       ; @kfd_procfs_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _procfs@GOTPAGE
Lloh1:
	ldr	x19, [x19, _procfs@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_kfd_alloc_struct
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _kfd_device@GOTPAGE
Lloh3:
	ldr	x8, [x8, _kfd_device@GOTPAGEOFF]
Lloh4:
	ldr	x2, [x8]
Lloh5:
	adrp	x1, _procfs_type@GOTPAGE
Lloh6:
	ldr	x1, [x1, _procfs_type@GOTPAGEOFF]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	bl	_kobject_init_and_add
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kfd_procfs_shutdown
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_procfs,4,2                     ; @procfs
	.comm	_procfs_type,4,2                ; @procfs_type
	.comm	_kfd_device,8,3                 ; @kfd_device
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proc"

l_.str.1:                               ; @.str.1
	.asciz	"Could not create procfs proc folder"

.subsections_via_symbols
