	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_init
_slic_init:                             ## @slic_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	%rdi, %rbx
	addq	$24, %rdi
	callq	_spin_lock_init
	leaq	20(%rbx), %rdi
	callq	_spin_lock_init
	leaq	12(%rbx), %r14
	leaq	16(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r14, %rdi
	callq	_spin_lock_init
	leaq	8(%rbx), %rdi
	callq	_u64_stats_init
	movq	%rbx, %rdi
	callq	_slic_card_reset
	movq	%rbx, %rdi
	callq	_slic_load_firmware
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_slic_init_shmem
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_slic_read_eeprom
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %r14d
	movq	(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%rbx, %rdi
	callq	_slic_free_shmem
	jmp	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_slic_card_reset
	movq	%rbx, %rdi
	callq	_slic_free_shmem
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load firmware\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to init shared memory\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to read eeprom\n"

	.no_dead_strip	_slic_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_init
_slic_init:                             ; @slic_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
	mov	x19, x0
	add	x0, x0, #24
	bl	_spin_lock_init
	add	x0, x19, #20
	bl	_spin_lock_init
	add	x20, x19, #12
	add	x0, x19, #16
	bl	_INIT_LIST_HEAD
	mov	x0, x20
	bl	_spin_lock_init
	add	x0, x19, #8
	bl	_u64_stats_init
	mov	x0, x19
	bl	_slic_card_reset
	mov	x0, x19
	bl	_slic_load_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_2:
	mov	x0, x19
	bl	_slic_init_shmem
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_8
LBB0_4:
	mov	x0, x19
	bl	_slic_read_eeprom
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.5:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_slic_card_reset
LBB0_7:
	mov	x0, x19
	bl	_slic_free_shmem
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load firmware\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to init shared memory\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to read eeprom\n"

	.no_dead_strip	_slic_init
.subsections_via_symbols
