	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srcimp_mgr_create              ## -- Begin function srcimp_mgr_create
	.p2align	4, 0x90
_srcimp_mgr_create:                     ## @srcimp_mgr_create
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	$0, (%rsi)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	4(%rax), %r15
	movq	_SRCIMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SRCIMP_RESOURCE_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rcx
	callq	_rsc_mgr_init
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	40(%r12), %rdi
	callq	_spin_lock_init
	leaq	36(%r12), %rdi
	callq	_spin_lock_init
	movq	%r13, %rbx
	movq	%r12, %r13
	addq	$32, %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.7:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rax)
	movups	%xmm0, 8(%rax)
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_list_add
	movq	%rbx, 24(%r12)
	movl	$1, (%r12)
	movq	_get_srcimp_rsc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r12)
	movq	_put_srcimp_rsc@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movq	_srcimp_imap_add@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_srcimp_imap_delete@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	%r12, (%r14)
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_rsc_mgr_uninit
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SRCIMP,4,2                     ## @SRCIMP
	.comm	_SRCIMP_RESOURCE_NUM,4,2        ## @SRCIMP_RESOURCE_NUM
	.comm	_get_srcimp_rsc,4,2             ## @get_srcimp_rsc
	.comm	_put_srcimp_rsc,4,2             ## @put_srcimp_rsc
	.comm	_srcimp_imap_add,4,2            ## @srcimp_imap_add
	.comm	_srcimp_imap_delete,4,2         ## @srcimp_imap_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_srcimp_mgr_create              ; -- Begin function srcimp_mgr_create
	.p2align	2
_srcimp_mgr_create:                     ; @srcimp_mgr_create
	.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	x20, x1
	mov	x22, x0
	str	xzr, [x1]
Lloh0:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x21, x0, #4
Lloh2:
	adrp	x8, _SRCIMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SRCIMP@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _SRCIMP_RESOURCE_NUM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SRCIMP_RESOURCE_NUM@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x22
	bl	_rsc_mgr_init
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_kfree
	b	LBB0_6
LBB0_3:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	add	x0, x19, #40
	bl	_spin_lock_init
	add	x0, x19, #36
	bl	_spin_lock_init
	add	x22, x19, #32
	mov	x0, x22
	bl	_INIT_LIST_HEAD
	ldr	w1, [x23]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.5:
	mov	x23, x0
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #24]
	stur	q0, [x0, #8]
	mov	x1, x22
	bl	_list_add
	mov	w22, #0
	str	x23, [x19, #24]
	mov	w8, #1
	str	w8, [x19]
Lloh11:
	adrp	x8, _get_srcimp_rsc@GOTPAGE
Lloh12:
	ldr	x8, [x8, _get_srcimp_rsc@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _put_srcimp_rsc@GOTPAGE
Lloh15:
	ldr	x9, [x9, _put_srcimp_rsc@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
Lloh17:
	adrp	x8, _srcimp_imap_add@GOTPAGE
Lloh18:
	ldr	x8, [x8, _srcimp_imap_add@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _srcimp_imap_delete@GOTPAGE
Lloh21:
	ldr	x9, [x9, _srcimp_imap_delete@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #8]
	str	x19, [x20]
LBB0_6:
	mov	x0, x22
	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_7:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w22, w8
	mov	x0, x21
	bl	_rsc_mgr_uninit
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SRCIMP,4,2                     ; @SRCIMP
	.comm	_SRCIMP_RESOURCE_NUM,4,2        ; @SRCIMP_RESOURCE_NUM
	.comm	_get_srcimp_rsc,4,2             ; @get_srcimp_rsc
	.comm	_put_srcimp_rsc,4,2             ; @put_srcimp_rsc
	.comm	_srcimp_imap_add,4,2            ; @srcimp_imap_add
	.comm	_srcimp_imap_delete,4,2         ; @srcimp_imap_delete
.subsections_via_symbols
