	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxl_getfile
_cxl_getfile:                           ## @cxl_getfile
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	(%rsi), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_12
LBB0_2:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_cxl_fs_type@GOTPCREL(%rip), %rdi
	movq	_cxl_vfs_mount@GOTPCREL(%rip), %r15
	movq	_cxl_fs_cnt@GOTPCREL(%rip), %rdx
	movq	%r15, %rsi
	callq	_simple_pin_fs
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_alloc_anon_inode
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_ERR_CAST
	movq	%rax, %rbx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_10
LBB0_12:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_6:
	movq	(%r15), %rsi
	movq	_O_ACCMODE@GOTPCREL(%rip), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	andl	%r12d, %ecx
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %r8
	callq	_alloc_file_pseudo
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	callq	_iput
LBB0_9:
	movq	_cxl_vfs_mount@GOTPCREL(%rip), %rdi
	movq	_cxl_fs_cnt@GOTPCREL(%rip), %rsi
	callq	_simple_release_fs
LBB0_10:
	movq	(%r13), %rdi
	callq	_module_put
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_cxl_fs_type,4,2                ## @cxl_fs_type
	.comm	_cxl_vfs_mount,8,3              ## @cxl_vfs_mount
	.comm	_cxl_fs_cnt,4,2                 ## @cxl_fs_cnt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot mount cxl pseudo filesystem: %d\n"

	.comm	_O_ACCMODE,4,2                  ## @O_ACCMODE
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.no_dead_strip	_cxl_getfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxl_getfile
_cxl_getfile:                           ; @cxl_getfile
	.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, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x0, [x1]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_try_module_get
	cbz	w0, LBB0_6
LBB0_2:
Lloh0:
	adrp	x0, _cxl_fs_type@GOTPAGE
Lloh1:
	ldr	x0, [x0, _cxl_fs_type@GOTPAGEOFF]
Lloh2:
	adrp	x24, _cxl_vfs_mount@GOTPAGE
Lloh3:
	ldr	x24, [x24, _cxl_vfs_mount@GOTPAGEOFF]
Lloh4:
	adrp	x2, _cxl_fs_cnt@GOTPAGE
Lloh5:
	ldr	x2, [x2, _cxl_fs_cnt@GOTPAGEOFF]
	mov	x1, x24
	bl	_simple_pin_fs
	tbnz	w0, #31, LBB0_5
; %bb.3:
	ldr	x8, [x24]
	ldr	w0, [x8]
	bl	_alloc_anon_inode
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_ERR_CAST
	mov	x21, x0
	b	LBB0_9
LBB0_5:
	mov	x23, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_pr_err
	mov	x0, x23
	bl	_ERR_PTR
	mov	x21, x0
	b	LBB0_10
LBB0_6:
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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	_ERR_PTR
LBB0_7:
	ldr	x1, [x24]
Lloh11:
	adrp	x8, _O_ACCMODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _O_ACCMODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w9, w8
	and	w3, w8, w22
	mov	x0, x23
	mov	x2, x21
	mov	x4, x19
	bl	_alloc_file_pseudo
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x23
	bl	_iput
LBB0_9:
Lloh17:
	adrp	x0, _cxl_vfs_mount@GOTPAGE
Lloh18:
	ldr	x0, [x0, _cxl_vfs_mount@GOTPAGEOFF]
Lloh19:
	adrp	x1, _cxl_fs_cnt@GOTPAGE
Lloh20:
	ldr	x1, [x1, _cxl_fs_cnt@GOTPAGEOFF]
	bl	_simple_release_fs
LBB0_10:
	ldr	x0, [x19]
	bl	_module_put
LBB0_11:
	mov	x0, x21
	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_12:
	str	x20, [x21]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_cxl_fs_type,4,2                ; @cxl_fs_type
	.comm	_cxl_vfs_mount,8,3              ; @cxl_vfs_mount
	.comm	_cxl_fs_cnt,4,2                 ; @cxl_fs_cnt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot mount cxl pseudo filesystem: %d\n"

	.comm	_O_ACCMODE,4,2                  ; @O_ACCMODE
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.no_dead_strip	_cxl_getfile
.subsections_via_symbols
