	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_load_firmware
_slic_load_firmware:                    ## @slic_load_firmware
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SLIC_FIRMWARE_MAX_SECTIONS@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	shlq	$2, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	$0, -52(%rbp)
	movq	_SLIC_MODEL_OASIS@GOTPCREL(%rip), %rax
	movq	(%r12), %rcx
	movq	8(%r12), %rdx
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_SLIC_FIRMWARE_OASIS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SLIC_FIRMWARE_MOJAVE@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_31
LBB0_5:
	movq	-64(%rbp), %rdi
	movl	(%rdi), %edx
	movq	_SLIC_FIRMWARE_MIN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jae	LBB0_9
## %bb.6:
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
LBB0_7:
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_8
LBB0_9:
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	leaq	-52(%rbp), %rsi
	callq	_slic_read_dword_from_firmware
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	cmpl	(%r13), %eax
	jg	LBB0_11
## %bb.12:
	leal	4(,%rax,8), %r13d
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	movq	-104(%rbp), %r14                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_slic_read_dword_from_firmware
	movl	%eax, (%r14,%rbx,4)
	addl	%eax, %r13d
	incq	%rbx
	cmpq	%rbx, %r15
	jne	LBB0_13
## %bb.14:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	movl	(%rdi), %edx
	cmpl	%edx, %r13d
	jbe	LBB0_15
## %bb.33:
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%r13d, %ecx
	jmp	LBB0_7
LBB0_11:
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_30:
	movq	-64(%rbp), %rdi
	callq	_release_firmware
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_35
## %bb.32:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	xorl	%ebx, %ebx
	leaq	-52(%rbp), %r15
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rsi
	callq	_slic_read_dword_from_firmware
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	movq	-64(%rbp), %rdi
	cmpq	%rbx, %r14
	jne	LBB0_16
## %bb.17:
	movl	-52(%rbp), %ebx
	leaq	-52(%rbp), %rsi
	callq	_slic_read_dword_from_firmware
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jle	LBB0_34
## %bb.18:
	movl	%eax, %r15d
	movl	%ebx, -88(%rbp)                 ## 4-byte Spill
	xorl	%ecx, %ecx
	movq	_SLIC_REG_WCS@GOTPCREL(%rip), %r13
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	cmpq	-96(%rbp), %rcx                 ## 8-byte Folded Reload
	je	LBB0_23
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_21 Depth 2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx,4), %r14d
	cmpl	$8, %r14d
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	jb	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%rcx,4), %ebx
	sarl	$3, %r14d
	cmpl	$2, %r14d
	movl	$1, %eax
	cmovbl	%eax, %r14d
	.p2align	4, 0x90
LBB0_21:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_slic_write
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_slic_write
	movq	-64(%rbp), %rdi
	leaq	-52(%rbp), %r15
	movq	%r15, %rsi
	callq	_slic_read_dword_from_firmware
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_slic_write
	movq	-64(%rbp), %rdi
	movq	%r15, %rsi
	callq	_slic_read_dword_from_firmware
	movl	%eax, %r15d
	incl	%ebx
	decl	%r14d
	jne	LBB0_21
	jmp	LBB0_22
LBB0_23:
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -52(%rbp)
	xorl	%r14d, %r14d
	leaq	-52(%rbp), %r13
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	incq	%r14
	cmpq	-96(%rbp), %r14                 ## 8-byte Folded Reload
	leaq	-52(%rbp), %r13
	je	LBB0_29
LBB0_24:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_27 Depth 2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r14,4), %ebx
	movq	-64(%rbp), %rdi
	movq	%r13, %rsi
	callq	_slic_read_dword_from_firmware
	movl	%ebx, %edx
	movl	%eax, %ebx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r14,4), %r14d
	cmpl	$32768, %r14d                   ## imm = 0x8000
	movq	_SLIC_REG_WCS@GOTPCREL(%rip), %r13
	movq	_SLIC_WCS_COMPARE@GOTPCREL(%rip), %r12
	jl	LBB0_28
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$8, %edx
	jb	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_24 Depth=1
	sarl	$3, %edx
	cmpl	$2, %edx
	movl	$1, %eax
	cmovbl	%eax, %edx
	.p2align	4, 0x90
LBB0_27:                                ##   Parent Loop BB0_24 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	(%r13), %esi
	movl	(%r12), %edx
	orl	%r14d, %edx
	movq	%r15, %rdi
	callq	_slic_write
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_slic_write
	movq	-64(%rbp), %rdi
	leaq	-52(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_slic_read_dword_from_firmware
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_slic_write
	movq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_slic_read_dword_from_firmware
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%eax, %ebx
	incl	%r14d
	decl	%edx
	jne	LBB0_27
	jmp	LBB0_28
LBB0_34:
	movl	%ebx, -52(%rbp)
LBB0_29:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_slic_flush_write
	movl	$10, %edi
	callq	_mdelay
	movq	_SLIC_REG_WCS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SLIC_WCS_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_slic_write
	movq	%rbx, %rdi
	callq	_slic_flush_write
	movl	$20, %edi
	callq	_mdelay
	xorl	%r15d, %r15d
	jmp	LBB0_30
LBB0_35:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_FIRMWARE_MAX_SECTIONS,4,2 ## @SLIC_FIRMWARE_MAX_SECTIONS
	.comm	_SLIC_MODEL_OASIS,8,3           ## @SLIC_MODEL_OASIS
	.comm	_SLIC_FIRMWARE_OASIS,8,3        ## @SLIC_FIRMWARE_OASIS
	.comm	_SLIC_FIRMWARE_MOJAVE,8,3       ## @SLIC_FIRMWARE_MOJAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load firmware %s\n"

	.comm	_SLIC_FIRMWARE_MIN_SIZE,4,2     ## @SLIC_FIRMWARE_MIN_SIZE
L_.str.1:                               ## @.str.1
	.asciz	"invalid firmware size %zu (min is %u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"invalid number of sections in firmware: %u"

L_.str.3:                               ## @.str.3
	.asciz	"invalid firmware size %zu (expected >= %u)\n"

	.comm	_SLIC_REG_WCS,4,2               ## @SLIC_REG_WCS
	.comm	_SLIC_WCS_COMPARE,4,2           ## @SLIC_WCS_COMPARE
	.comm	_SLIC_WCS_START,4,2             ## @SLIC_WCS_START
	.no_dead_strip	_slic_load_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function slic_load_firmware
_slic_load_firmware:                    ; @slic_load_firmware
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _SLIC_FIRMWARE_MAX_SECTIONS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _SLIC_FIRMWARE_MAX_SECTIONS@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x7fffffff0
	sub	x22, x9, x12
	mov	sp, x22
	mov	x9, x8
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	stur	wzr, [x29, #-100]
Lloh9:
	adrp	x8, _SLIC_MODEL_OASIS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SLIC_MODEL_OASIS@GOTPAGEOFF]
Lloh11:
	adrp	x9, _SLIC_FIRMWARE_OASIS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SLIC_FIRMWARE_OASIS@GOTPAGEOFF]
Lloh13:
	adrp	x10, _SLIC_FIRMWARE_MOJAVE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _SLIC_FIRMWARE_MOJAVE@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldp	x11, x2, [x0]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	x21, [x8]
	sub	x0, x29, #96
	mov	x1, x21
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #8]
	str	x21, [sp, #-16]!
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	add	sp, sp, #16
	b	LBB0_13
LBB0_2:
	ldur	x0, [x29, #-96]
	ldr	w8, [x0]
Lloh18:
	adrp	x9, _SLIC_FIRMWARE_MIN_SIZE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SLIC_FIRMWARE_MIN_SIZE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	stp	x8, x9, [sp, #-16]!
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_4:
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	mov	x20, x0
	cbz	w0, LBB0_10
; %bb.5:
	ldr	w8, [x24]
	cmp	w20, w8
	b.gt	LBB0_10
; %bb.6:
	mov	w21, #4
	bfi	w21, w20, #3, #29
	mov	w24, w20
	mov	x25, x24
	mov	x26, x23
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	str	w0, [x26], #4
	add	w21, w0, w21
	subs	x25, x25, #1
	b.ne	LBB0_7
; %bb.8:
	ldur	x0, [x29, #-96]
	ldr	w8, [x0]
	cmp	w21, w8
	b.ls	LBB0_15
; %bb.9:
	ldr	x0, [x19, #8]
	stp	x8, x21, [sp, #-16]!
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_10:
	ldr	x0, [x19, #8]
	str	x20, [sp, #-16]!
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_11:
	bl	_dev_err
	add	sp, sp, #16
Lloh27:
	adrp	x8, _EINVAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_12:
	ldur	x0, [x29, #-96]
	bl	_release_firmware
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_30
; %bb.14:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x21, x24
	mov	x25, x22
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	str	w0, [x25], #4
	ldur	x0, [x29, #-96]
	subs	x21, x21, #1
	b.ne	LBB0_16
; %bb.17:
	ldur	w26, [x29, #-100]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
Lloh33:
	adrp	x25, _SLIC_REG_WCS@GOTPAGE
Lloh34:
	ldr	x25, [x25, _SLIC_REG_WCS@GOTPAGEOFF]
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.18:
	mov	x21, x0
	mov	x27, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x27, x27, #1
	cmp	x27, x24
	b.eq	LBB0_23
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_22 Depth 2
	lsl	x9, x27, #2
	ldr	w8, [x23, x9]
	cmp	w8, #8
	b.lo	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	w20, [x22, x9]
	asr	w8, w8, #3
	cmp	w8, #1
	csinc	w28, w8, wzr, hi
LBB0_22:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_slic_write
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x21
	bl	_slic_write
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	mov	x2, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_slic_write
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	mov	x21, x0
	add	w20, w20, #1
	subs	w28, w28, #1
	b.ne	LBB0_22
	b	LBB0_19
LBB0_23:
	mov	x21, #0
	stur	w26, [x29, #-100]
Lloh35:
	adrp	x26, _SLIC_WCS_COMPARE@GOTPAGE
Lloh36:
	ldr	x26, [x26, _SLIC_WCS_COMPARE@GOTPAGEOFF]
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=1
	add	x21, x21, #1
	cmp	x21, x24
	b.eq	LBB0_29
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
	lsl	x27, x21, #2
	ldr	w28, [x23, x27]
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	ldr	w27, [x22, x27]
	cmp	w27, #8, lsl #12                ; =32768
	ccmp	w28, #8, #0, ge
	b.lo	LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x20, x0
	asr	w8, w28, #3
	cmp	w8, #1
	csinc	w28, w8, wzr, hi
LBB0_27:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x25]
	ldr	w8, [x26]
	orr	w2, w8, w27
	mov	x0, x19
	bl	_slic_write
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_slic_write
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	mov	x2, x0
	ldr	w1, [x25]
	mov	x0, x19
	bl	_slic_write
	ldur	x0, [x29, #-96]
	sub	x1, x29, #100
	bl	_slic_read_dword_from_firmware
	mov	x20, x0
	add	w27, w27, #1
	subs	w28, w28, #1
	b.ne	LBB0_27
	b	LBB0_24
LBB0_28:
	stur	w26, [x29, #-100]
LBB0_29:
	mov	x0, x19
	bl	_slic_flush_write
	mov	w0, #10
	bl	_mdelay
	ldr	w1, [x25]
Lloh37:
	adrp	x8, _SLIC_WCS_START@GOTPAGE
Lloh38:
	ldr	x8, [x8, _SLIC_WCS_START@GOTPAGEOFF]
Lloh39:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	mov	w0, #20
	bl	_mdelay
	mov	w20, #0
	b	LBB0_12
LBB0_30:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh15
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_FIRMWARE_MAX_SECTIONS,4,2 ; @SLIC_FIRMWARE_MAX_SECTIONS
	.comm	_SLIC_MODEL_OASIS,8,3           ; @SLIC_MODEL_OASIS
	.comm	_SLIC_FIRMWARE_OASIS,8,3        ; @SLIC_FIRMWARE_OASIS
	.comm	_SLIC_FIRMWARE_MOJAVE,8,3       ; @SLIC_FIRMWARE_MOJAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load firmware %s\n"

	.comm	_SLIC_FIRMWARE_MIN_SIZE,4,2     ; @SLIC_FIRMWARE_MIN_SIZE
l_.str.1:                               ; @.str.1
	.asciz	"invalid firmware size %zu (min is %u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"invalid number of sections in firmware: %u"

l_.str.3:                               ; @.str.3
	.asciz	"invalid firmware size %zu (expected >= %u)\n"

	.comm	_SLIC_REG_WCS,4,2               ; @SLIC_REG_WCS
	.comm	_SLIC_WCS_COMPARE,4,2           ; @SLIC_WCS_COMPARE
	.comm	_SLIC_WCS_START,4,2             ; @SLIC_WCS_START
	.no_dead_strip	_slic_load_firmware
.subsections_via_symbols
