	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _scif_init
__scif_init:                            ## @_scif_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_scif_info@GOTPCREL(%rip), %rbx
	leaq	96(%rbx), %rdi
	callq	_mutex_init
	leaq	92(%rbx), %rdi
	callq	_spin_lock_init
	leaq	88(%rbx), %rdi
	callq	_spin_lock_init
	leaq	84(%rbx), %rdi
	callq	_spin_lock_init
	leaq	80(%rbx), %rdi
	callq	_mutex_init
	leaq	76(%rbx), %rdi
	callq	_mutex_init
	leaq	72(%rbx), %rdi
	callq	_mutex_init
	leaq	68(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	64(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	60(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	56(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	52(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	48(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	44(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	40(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	36(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_init_waitqueue_head
	movq	_SCIF_RMA_TEMP_CACHE_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	$1, (%rbx)
	xorl	%eax, %eax
	callq	_scif_setup_scifdev
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_SCIF_KMEM_UNALIGNED_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLAB_HWCACHE_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_kmem_cache_create
	movq	_unaligned_cache@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	_scif_misc_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	12(%rbx), %rdi
	callq	_INIT_WORK
	movq	_scif_mmu_notif_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	8(%rbx), %rdi
	callq	_INIT_WORK
	movq	_scif_conn_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_INIT_WORK
	movq	_scif_ports@GOTPCREL(%rip), %rdi
	callq	_idr_init
	jmp	LBB0_4
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_scif_destroy_scifdev
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scif_info,104,3                ## @scif_info
	.comm	_SCIF_RMA_TEMP_CACHE_LIMIT,4,2  ## @SCIF_RMA_TEMP_CACHE_LIMIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unaligned_DMA"

	.comm	_SCIF_KMEM_UNALIGNED_BUF_SIZE,4,2 ## @SCIF_KMEM_UNALIGNED_BUF_SIZE
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ## @SLAB_HWCACHE_ALIGN
	.comm	_unaligned_cache,4,2            ## @unaligned_cache
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_scif_misc_handler,4,2          ## @scif_misc_handler
	.comm	_scif_mmu_notif_handler,4,2     ## @scif_mmu_notif_handler
	.comm	_scif_conn_handler,4,2          ## @scif_conn_handler
	.comm	_scif_ports,4,2                 ## @scif_ports
	.no_dead_strip	__scif_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _scif_init
__scif_init:                            ; @_scif_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	x20, _scif_info@GOTPAGE
Lloh1:
	ldr	x20, [x20, _scif_info@GOTPAGEOFF]
	add	x0, x20, #96
	bl	_mutex_init
	add	x0, x20, #92
	bl	_spin_lock_init
	add	x0, x20, #88
	bl	_spin_lock_init
	add	x0, x20, #84
	bl	_spin_lock_init
	add	x0, x20, #80
	bl	_mutex_init
	add	x0, x20, #76
	bl	_mutex_init
	add	x0, x20, #72
	bl	_mutex_init
	add	x0, x20, #68
	bl	_INIT_LIST_HEAD
	add	x0, x20, #64
	bl	_INIT_LIST_HEAD
	add	x0, x20, #60
	bl	_INIT_LIST_HEAD
	add	x0, x20, #56
	bl	_INIT_LIST_HEAD
	add	x0, x20, #52
	bl	_INIT_LIST_HEAD
	add	x0, x20, #48
	bl	_INIT_LIST_HEAD
	add	x0, x20, #44
	bl	_INIT_LIST_HEAD
	add	x0, x20, #40
	bl	_INIT_LIST_HEAD
	add	x0, x20, #36
	bl	_INIT_LIST_HEAD
	add	x0, x20, #32
	bl	_INIT_LIST_HEAD
	add	x0, x20, #28
	bl	_init_waitqueue_head
Lloh2:
	adrp	x8, _SCIF_RMA_TEMP_CACHE_LIMIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SCIF_RMA_TEMP_CACHE_LIMIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #24]
	str	xzr, [x20, #16]
	mov	w8, #1
	str	w8, [x20]
	bl	_scif_setup_scifdev
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _SCIF_KMEM_UNALIGNED_BUF_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCIF_KMEM_UNALIGNED_BUF_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _SLAB_HWCACHE_ALIGN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SLAB_HWCACHE_ALIGN@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #0
	mov	x4, #0
	bl	_kmem_cache_create
Lloh13:
	adrp	x8, _unaligned_cache@GOTPAGE
Lloh14:
	ldr	x8, [x8, _unaligned_cache@GOTPAGEOFF]
Lloh15:
	str	w0, [x8]
	cbz	w0, LBB0_3
; %bb.2:
Lloh16:
	adrp	x8, _scif_misc_handler@GOTPAGE
Lloh17:
	ldr	x8, [x8, _scif_misc_handler@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x0, x20, #12
	bl	_INIT_WORK
Lloh19:
	adrp	x8, _scif_mmu_notif_handler@GOTPAGE
Lloh20:
	ldr	x8, [x8, _scif_mmu_notif_handler@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x0, x20, #8
	bl	_INIT_WORK
Lloh22:
	adrp	x8, _scif_conn_handler@GOTPAGE
Lloh23:
	ldr	x8, [x8, _scif_conn_handler@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	add	x0, x20, #4
	bl	_INIT_WORK
Lloh25:
	adrp	x0, _scif_ports@GOTPAGE
Lloh26:
	ldr	x0, [x0, _scif_ports@GOTPAGEOFF]
	bl	_idr_init
	mov	w19, #0
	b	LBB0_4
LBB0_3:
Lloh27:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w19, w8
	bl	_scif_destroy_scifdev
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_scif_info,104,3                ; @scif_info
	.comm	_SCIF_RMA_TEMP_CACHE_LIMIT,4,2  ; @SCIF_RMA_TEMP_CACHE_LIMIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unaligned_DMA"

	.comm	_SCIF_KMEM_UNALIGNED_BUF_SIZE,4,2 ; @SCIF_KMEM_UNALIGNED_BUF_SIZE
	.comm	_SLAB_HWCACHE_ALIGN,4,2         ; @SLAB_HWCACHE_ALIGN
	.comm	_unaligned_cache,4,2            ; @unaligned_cache
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_scif_misc_handler,4,2          ; @scif_misc_handler
	.comm	_scif_mmu_notif_handler,4,2     ; @scif_mmu_notif_handler
	.comm	_scif_conn_handler,4,2          ; @scif_conn_handler
	.comm	_scif_ports,4,2                 ; @scif_ports
	.no_dead_strip	__scif_init
.subsections_via_symbols
