	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_load_firmware
_cas_load_firmware:                     ## @cas_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r12
	cmpq	$0, 48(%rsi)
	je	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REG_HP_INSTR_RAM_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel
	movq	_HP_INSTR_RAM_HI_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_CAS_BASE
	movl	%eax, %ebx
	movq	_HP_INSTR_RAM_HI_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %ebx
	movq	_REG_HP_INSTR_RAM_DATA_HI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_HP_INSTR_RAM_MID_OUTARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	sarl	$10, %esi
	callq	_CAS_BASE
	movl	%eax, %r13d
	movq	_HP_INSTR_RAM_MID_OUTOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %r13d
	movq	_HP_INSTR_RAM_MID_FNEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r12), %esi
	callq	_CAS_BASE
	movl	%eax, %r14d
	movq	_HP_INSTR_RAM_MID_FOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %r14d
	orl	%r13d, %r14d
	movq	_HP_INSTR_RAM_MID_SNEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%r12), %esi
	callq	_CAS_BASE
	movl	%eax, %ebx
	movq	_HP_INSTR_RAM_MID_SOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %ebx
	movq	_HP_INSTR_RAM_MID_OP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_REG_HP_INSTR_RAM_DATA_MID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_HP_INSTR_RAM_LOW_OUTMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	36(%r12), %esi
	callq	_CAS_BASE
	movl	%eax, %r14d
	movq	_HP_INSTR_RAM_LOW_OUTSHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	40(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %r14d
	movq	_HP_INSTR_RAM_LOW_OUTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	44(%r12), %esi
	callq	_CAS_BASE
	movl	%eax, %ebx
	movq	_HP_INSTR_RAM_LOW_OUTARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %esi
	callq	_CAS_BASE
	orl	%eax, %ebx
	orl	%r14d, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_REG_HP_INSTR_RAM_DATA_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	incl	%r15d
	cmpq	$0, 104(%r12)
	leaq	56(%r12), %r12
	jne	LBB0_3
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_HP_INSTR_RAM_ADDR,8,3      ## @REG_HP_INSTR_RAM_ADDR
	.comm	_HP_INSTR_RAM_HI_VAL,4,2        ## @HP_INSTR_RAM_HI_VAL
	.comm	_HP_INSTR_RAM_HI_MASK,4,2       ## @HP_INSTR_RAM_HI_MASK
	.comm	_REG_HP_INSTR_RAM_DATA_HI,8,3   ## @REG_HP_INSTR_RAM_DATA_HI
	.comm	_HP_INSTR_RAM_MID_OUTARG,4,2    ## @HP_INSTR_RAM_MID_OUTARG
	.comm	_HP_INSTR_RAM_MID_OUTOP,4,2     ## @HP_INSTR_RAM_MID_OUTOP
	.comm	_HP_INSTR_RAM_MID_FNEXT,4,2     ## @HP_INSTR_RAM_MID_FNEXT
	.comm	_HP_INSTR_RAM_MID_FOFF,4,2      ## @HP_INSTR_RAM_MID_FOFF
	.comm	_HP_INSTR_RAM_MID_SNEXT,4,2     ## @HP_INSTR_RAM_MID_SNEXT
	.comm	_HP_INSTR_RAM_MID_SOFF,4,2      ## @HP_INSTR_RAM_MID_SOFF
	.comm	_HP_INSTR_RAM_MID_OP,4,2        ## @HP_INSTR_RAM_MID_OP
	.comm	_REG_HP_INSTR_RAM_DATA_MID,8,3  ## @REG_HP_INSTR_RAM_DATA_MID
	.comm	_HP_INSTR_RAM_LOW_OUTMASK,4,2   ## @HP_INSTR_RAM_LOW_OUTMASK
	.comm	_HP_INSTR_RAM_LOW_OUTSHIFT,4,2  ## @HP_INSTR_RAM_LOW_OUTSHIFT
	.comm	_HP_INSTR_RAM_LOW_OUTEN,4,2     ## @HP_INSTR_RAM_LOW_OUTEN
	.comm	_HP_INSTR_RAM_LOW_OUTARG,4,2    ## @HP_INSTR_RAM_LOW_OUTARG
	.comm	_REG_HP_INSTR_RAM_DATA_LOW,8,3  ## @REG_HP_INSTR_RAM_DATA_LOW
	.no_dead_strip	_cas_load_firmware
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_load_firmware
_cas_load_firmware:                     ; @cas_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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1, #48]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x20, x0
	mov	w21, #0
Lloh0:
	adrp	x28, _REG_HP_INSTR_RAM_DATA_MID@GOTPAGE
Lloh1:
	ldr	x28, [x28, _REG_HP_INSTR_RAM_DATA_MID@GOTPAGEOFF]
Lloh2:
	adrp	x23, _HP_INSTR_RAM_LOW_OUTMASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _HP_INSTR_RAM_LOW_OUTMASK@GOTPAGEOFF]
Lloh4:
	adrp	x24, _HP_INSTR_RAM_LOW_OUTSHIFT@GOTPAGE
Lloh5:
	ldr	x24, [x24, _HP_INSTR_RAM_LOW_OUTSHIFT@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HP_INSTR_RAM_LOW_OUTEN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HP_INSTR_RAM_LOW_OUTEN@GOTPAGEOFF]
Lloh8:
	adrp	x26, _HP_INSTR_RAM_LOW_OUTARG@GOTPAGE
Lloh9:
	ldr	x26, [x26, _HP_INSTR_RAM_LOW_OUTARG@GOTPAGEOFF]
Lloh10:
	adrp	x27, _REG_HP_INSTR_RAM_DATA_LOW@GOTPAGE
Lloh11:
	ldr	x27, [x27, _REG_HP_INSTR_RAM_DATA_LOW@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
Lloh12:
	adrp	x9, _REG_HP_INSTR_RAM_ADDR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REG_HP_INSTR_RAM_ADDR@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
Lloh15:
	adrp	x8, _HP_INSTR_RAM_HI_VAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HP_INSTR_RAM_HI_VAL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_CAS_BASE
	mov	x22, x0
Lloh18:
	adrp	x8, _HP_INSTR_RAM_HI_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HP_INSTR_RAM_HI_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_CAS_BASE
	orr	w0, w0, w22
	ldr	x8, [x20]
Lloh21:
	adrp	x9, _REG_HP_INSTR_RAM_DATA_HI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _REG_HP_INSTR_RAM_DATA_HI@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh24:
	adrp	x8, _HP_INSTR_RAM_MID_OUTARG@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_OUTARG@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	asr	w1, w8, #10
	bl	_CAS_BASE
	mov	x22, x0
Lloh27:
	adrp	x8, _HP_INSTR_RAM_MID_OUTOP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_OUTOP@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x19, #12]
	bl	_CAS_BASE
	orr	w22, w0, w22
Lloh30:
	adrp	x8, _HP_INSTR_RAM_MID_FNEXT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_FNEXT@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x19, #16]
	bl	_CAS_BASE
	orr	w22, w22, w0
Lloh33:
	adrp	x8, _HP_INSTR_RAM_MID_FOFF@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_FOFF@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x19, #20]
	bl	_CAS_BASE
	orr	w22, w22, w0
Lloh36:
	adrp	x8, _HP_INSTR_RAM_MID_SNEXT@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_SNEXT@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_CAS_BASE
	orr	w22, w22, w0
Lloh39:
	adrp	x8, _HP_INSTR_RAM_MID_SOFF@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_SOFF@GOTPAGEOFF]
Lloh41:
	ldr	w0, [x8]
	ldr	w1, [x19, #28]
	bl	_CAS_BASE
	orr	w22, w22, w0
Lloh42:
	adrp	x8, _HP_INSTR_RAM_MID_OP@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HP_INSTR_RAM_MID_OP@GOTPAGEOFF]
Lloh44:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_CAS_BASE
	orr	w0, w22, w0
	ldr	x8, [x20]
	ldr	x9, [x28]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x23]
	ldr	w1, [x19, #36]
	bl	_CAS_BASE
	mov	x22, x0
	ldr	w0, [x24]
	ldr	w1, [x19, #40]
	bl	_CAS_BASE
	orr	w22, w0, w22
	ldr	w0, [x25]
	ldr	w1, [x19, #44]
	bl	_CAS_BASE
	orr	w22, w22, w0
	ldr	w0, [x26]
	ldr	w1, [x19, #8]
	bl	_CAS_BASE
	orr	w0, w22, w0
	ldr	x8, [x20]
	ldr	x9, [x27]
	add	x1, x9, x8
	bl	_writel
	add	w21, w21, #1
	ldr	x8, [x19, #104]
	add	x19, x19, #56
	cbnz	x8, LBB0_3
LBB0_4:
	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
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_HP_INSTR_RAM_ADDR,8,3      ; @REG_HP_INSTR_RAM_ADDR
	.comm	_HP_INSTR_RAM_HI_VAL,4,2        ; @HP_INSTR_RAM_HI_VAL
	.comm	_HP_INSTR_RAM_HI_MASK,4,2       ; @HP_INSTR_RAM_HI_MASK
	.comm	_REG_HP_INSTR_RAM_DATA_HI,8,3   ; @REG_HP_INSTR_RAM_DATA_HI
	.comm	_HP_INSTR_RAM_MID_OUTARG,4,2    ; @HP_INSTR_RAM_MID_OUTARG
	.comm	_HP_INSTR_RAM_MID_OUTOP,4,2     ; @HP_INSTR_RAM_MID_OUTOP
	.comm	_HP_INSTR_RAM_MID_FNEXT,4,2     ; @HP_INSTR_RAM_MID_FNEXT
	.comm	_HP_INSTR_RAM_MID_FOFF,4,2      ; @HP_INSTR_RAM_MID_FOFF
	.comm	_HP_INSTR_RAM_MID_SNEXT,4,2     ; @HP_INSTR_RAM_MID_SNEXT
	.comm	_HP_INSTR_RAM_MID_SOFF,4,2      ; @HP_INSTR_RAM_MID_SOFF
	.comm	_HP_INSTR_RAM_MID_OP,4,2        ; @HP_INSTR_RAM_MID_OP
	.comm	_REG_HP_INSTR_RAM_DATA_MID,8,3  ; @REG_HP_INSTR_RAM_DATA_MID
	.comm	_HP_INSTR_RAM_LOW_OUTMASK,4,2   ; @HP_INSTR_RAM_LOW_OUTMASK
	.comm	_HP_INSTR_RAM_LOW_OUTSHIFT,4,2  ; @HP_INSTR_RAM_LOW_OUTSHIFT
	.comm	_HP_INSTR_RAM_LOW_OUTEN,4,2     ; @HP_INSTR_RAM_LOW_OUTEN
	.comm	_HP_INSTR_RAM_LOW_OUTARG,4,2    ; @HP_INSTR_RAM_LOW_OUTARG
	.comm	_REG_HP_INSTR_RAM_DATA_LOW,8,3  ; @REG_HP_INSTR_RAM_DATA_LOW
	.no_dead_strip	_cas_load_firmware
.subsections_via_symbols
