	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function slic_load_rcvseq_firmware
_slic_load_rcvseq_firmware:             ## @slic_load_rcvseq_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	movq	_SLIC_MODEL_OASIS@GOTPCREL(%rip), %rax
	movq	(%rdi), %rcx
	movq	8(%rdi), %rdx
	cmpq	(%rax), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_SLIC_RCV_FIRMWARE_OASIS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SLIC_RCV_FIRMWARE_MOJAVE@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rbx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_request_firmware
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r15d
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_5:
	movq	-56(%rbp), %rdi
	movq	(%rdi), %rdx
	movq	_SLIC_FIRMWARE_MIN_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_8
## %bb.6:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_8:
	leaq	-44(%rbp), %rsi
	callq	_slic_read_dword_from_firmware
	movq	%rax, %r15
	addq	$4, %rax
	movq	-56(%rbp), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, %rax
	jbe	LBB0_10
## %bb.9:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_10:
	movq	_SLIC_REG_RCV_WCS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_SLIC_RCVWCS_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_slic_write
	testq	%r15, %r15
	je	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_slic_write
	movq	-56(%rbp), %rdi
	movq	%r12, %rsi
	callq	_slic_read_dword_from_firmware
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_slic_write
	movq	-56(%rbp), %rax
	movq	8(%rax), %rax
	movslq	-44(%rbp), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_le32_to_cpu
	incl	-44(%rbp)
	movl	(%r13), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_slic_write
	incq	%rbx
	decq	%r15
	jne	LBB0_12
LBB0_13:
	movl	(%r13), %esi
	movq	_SLIC_RCVWCS_FINISH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	callq	_slic_write
	movq	%r14, %rdi
	callq	_slic_flush_write
	xorl	%r15d, %r15d
LBB0_14:
	movq	-56(%rbp), %rdi
	callq	_release_firmware
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SLIC_MODEL_OASIS,8,3           ## @SLIC_MODEL_OASIS
	.comm	_SLIC_RCV_FIRMWARE_OASIS,8,3    ## @SLIC_RCV_FIRMWARE_OASIS
	.comm	_SLIC_RCV_FIRMWARE_MOJAVE,8,3   ## @SLIC_RCV_FIRMWARE_MOJAVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to load receive sequencer firmware %s\n"

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

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"invalid rcv-sequencer firmware size %zu\n"

	.comm	_SLIC_REG_RCV_WCS,4,2           ## @SLIC_REG_RCV_WCS
	.comm	_SLIC_RCVWCS_BEGIN,8,3          ## @SLIC_RCVWCS_BEGIN
	.comm	_SLIC_RCVWCS_FINISH,8,3         ## @SLIC_RCVWCS_FINISH
	.no_dead_strip	_slic_load_rcvseq_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_rcvseq_firmware
_slic_load_rcvseq_firmware:             ; @slic_load_rcvseq_firmware
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #20]
Lloh0:
	adrp	x8, _SLIC_MODEL_OASIS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SLIC_MODEL_OASIS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SLIC_RCV_FIRMWARE_OASIS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SLIC_RCV_FIRMWARE_OASIS@GOTPAGEOFF]
Lloh4:
	adrp	x10, _SLIC_RCV_FIRMWARE_MOJAVE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _SLIC_RCV_FIRMWARE_MOJAVE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldp	x11, x2, [x0]
	cmp	x11, x8
	csel	x8, x9, x10, eq
	ldr	x21, [x8]
	add	x0, sp, #24
	mov	x1, x21
	bl	_request_firmware
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	b	LBB0_12
LBB0_2:
	ldr	x0, [sp, #24]
	ldr	x2, [x0]
Lloh9:
	adrp	x8, _SLIC_FIRMWARE_MIN_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SLIC_FIRMWARE_MIN_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x2, x8
	b.hs	LBB0_4
; %bb.3:
	ldr	x0, [x19, #8]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	add	x1, sp, #20
	bl	_slic_read_dword_from_firmware
	add	x8, x0, #4
	ldr	x9, [sp, #24]
	ldr	x2, [x9]
	cmp	x8, x2
	b.ls	LBB0_7
; %bb.5:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	bl	_dev_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_11
LBB0_7:
	mov	x20, x0
Lloh19:
	adrp	x22, _SLIC_REG_RCV_WCS@GOTPAGE
Lloh20:
	ldr	x22, [x22, _SLIC_REG_RCV_WCS@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh21:
	adrp	x8, _SLIC_RCVWCS_BEGIN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SLIC_RCVWCS_BEGIN@GOTPAGEOFF]
Lloh23:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_slic_write
	cbz	x20, LBB0_10
; %bb.8:
	mov	x21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_slic_write
	ldr	x0, [sp, #24]
	add	x1, sp, #20
	bl	_slic_read_dword_from_firmware
	mov	x2, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_slic_write
	ldr	x8, [sp, #24]
	ldr	x8, [x8, #8]
	ldrsw	x9, [sp, #20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_le32_to_cpu
	mov	x2, x0
	ldr	w8, [sp, #20]
	add	w8, w8, #1
	str	w8, [sp, #20]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_slic_write
	add	x21, x21, #1
	subs	x20, x20, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w1, [x22]
Lloh24:
	adrp	x8, _SLIC_RCVWCS_FINISH@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SLIC_RCVWCS_FINISH@GOTPAGEOFF]
Lloh26:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_slic_write
	mov	x0, x19
	bl	_slic_flush_write
	mov	w20, #0
LBB0_11:
	ldr	x0, [sp, #24]
	bl	_release_firmware
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SLIC_MODEL_OASIS,8,3           ; @SLIC_MODEL_OASIS
	.comm	_SLIC_RCV_FIRMWARE_OASIS,8,3    ; @SLIC_RCV_FIRMWARE_OASIS
	.comm	_SLIC_RCV_FIRMWARE_MOJAVE,8,3   ; @SLIC_RCV_FIRMWARE_MOJAVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to load receive sequencer firmware %s\n"

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

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"invalid rcv-sequencer firmware size %zu\n"

	.comm	_SLIC_REG_RCV_WCS,4,2           ; @SLIC_REG_RCV_WCS
	.comm	_SLIC_RCVWCS_BEGIN,8,3          ; @SLIC_RCVWCS_BEGIN
	.comm	_SLIC_RCVWCS_FINISH,8,3         ; @SLIC_RCVWCS_FINISH
	.no_dead_strip	_slic_load_rcvseq_firmware
.subsections_via_symbols
