	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_open                      ## -- Begin function scif_open
	.p2align	4, 0x90
_scif_open:                             ## @scif_open
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_might_sleep
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movl	(%r15), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_scif_anon_inode_getfile
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	callq	_kfree
LBB0_5:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	16(%rbx), %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_mutex_init
	movq	%rbx, %rdi
	callq	_scif_rma_ep_init
	movq	_SCIFEP_UNBOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_scif_info@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_dbg
	movq	%rbx, %r14
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_SCIFEP_UNBOUND,4,2             ## @SCIFEP_UNBOUND
	.comm	_scif_info,4,2                  ## @scif_info
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SCIFAPI open: ep %p success\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_scif_open                      ; -- Begin function scif_open
	.p2align	2
_scif_open:                             ; @scif_open
	.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
	bl	_might_sleep
Lloh0:
	adrp	x20, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_6
; %bb.1:
	ldr	w1, [x20]
	mov	w0, #24
	bl	_kzalloc
	str	x0, [x19]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_scif_anon_inode_getfile
	cbz	w0, LBB0_5
; %bb.3:
	ldr	x0, [x19]
	bl	_kfree
LBB0_4:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_mutex_init
	add	x0, x19, #12
	bl	_mutex_init
	mov	x0, x19
	bl	_scif_rma_ep_init
Lloh2:
	adrp	x8, _SCIFEP_UNBOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCIFEP_UNBOUND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
Lloh5:
	adrp	x8, _scif_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _scif_info@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_dbg
LBB0_6:
	mov	x0, x19
	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	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_SCIFEP_UNBOUND,4,2             ; @SCIFEP_UNBOUND
	.comm	_scif_info,4,2                  ; @scif_info
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SCIFAPI open: ep %p success\n"

.subsections_via_symbols
