	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_debugfs_adapter_add        ## -- Begin function cxl_debugfs_adapter_add
	.p2align	4, 0x90
_cxl_debugfs_adapter_add:               ## @cxl_debugfs_adapter_add
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_cxl_debugfs@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	movl	(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_snprintf
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_debugfs_create_dir
	movq	%rax, %r14
	movq	%rax, 16(%rbx)
	movq	_S_IRUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_CXL_PSL_ErrIVTE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	__cxl_p1_addr
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_debugfs_create_io_x64
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	*%rax
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cxl_debugfs,4,2                ## @cxl_debugfs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"card%i"

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

	.comm	_S_IRUSR,4,2                    ## @S_IRUSR
	.comm	_CXL_PSL_ErrIVTE,4,2            ## @CXL_PSL_ErrIVTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxl_debugfs_adapter_add        ; -- Begin function cxl_debugfs_adapter_add
	.p2align	2
_cxl_debugfs_adapter_add:               ; @cxl_debugfs_adapter_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x20, _cxl_debugfs@GOTPAGE
Lloh4:
	ldr	x20, [x20, _cxl_debugfs@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w3, [x0]
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #32
	bl	_snprintf
	ldr	w1, [x20]
	add	x0, sp, #8
	bl	_debugfs_create_dir
	mov	x20, x0
	str	x0, [x19, #16]
Lloh7:
	adrp	x8, _S_IRUSR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_IRUSR@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
Lloh10:
	adrp	x8, _CXL_PSL_ErrIVTE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CXL_PSL_ErrIVTE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__cxl_p1_addr
	mov	x3, x0
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_debugfs_create_io_x64
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	blr	x8
LBB0_3:
	ldr	x8, [sp, #40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cxl_debugfs,4,2                ; @cxl_debugfs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"card%i"

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

	.comm	_S_IRUSR,4,2                    ; @S_IRUSR
	.comm	_CXL_PSL_ErrIVTE,4,2            ; @CXL_PSL_ErrIVTE
.subsections_via_symbols
