	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_saturn_firmware_load
_cas_saturn_firmware_load:              ## @cas_saturn_firmware_load
	.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
	cmpq	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r13
	callq	_cas_phy_powerdown
	movq	_DP83065_MII_MEM@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cas_phy_write
	movq	_DP83065_MII_REGE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$36857, %edx                    ## imm = 0x8FF9
	callq	_cas_phy_write
	movq	_DP83065_MII_REGD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$189, %edx
	callq	_cas_phy_write
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$36858, %edx                    ## imm = 0x8FFA
	callq	_cas_phy_write
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$130, %edx
	callq	_cas_phy_write
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$36859, %edx                    ## imm = 0x8FFB
	callq	_cas_phy_write
	movl	(%r15), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cas_phy_write
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$36860, %edx                    ## imm = 0x8FFC
	callq	_cas_phy_write
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$57, %edx
	callq	_cas_phy_write
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_cas_phy_write
	movl	(%r14), %esi
	movl	8(%r13), %edx
	movq	%r13, %rdi
	callq	_cas_phy_write
	cmpl	$0, 12(%r13)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r13, %rdi
	callq	_cas_phy_write
	incq	%rbx
	movslq	12(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	movl	(%r14), %esi
	movq	%r13, %rdi
	movl	$36856, %edx                    ## imm = 0x8FF8
	callq	_cas_phy_write
	movl	(%r15), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cas_phy_write                  ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DP83065_MII_MEM,4,2            ## @DP83065_MII_MEM
	.comm	_DP83065_MII_REGE,4,2           ## @DP83065_MII_REGE
	.comm	_DP83065_MII_REGD,4,2           ## @DP83065_MII_REGD
	.no_dead_strip	_cas_saturn_firmware_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_saturn_firmware_load
_cas_saturn_firmware_load:              ; @cas_saturn_firmware_load
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_cas_phy_powerdown
Lloh0:
	adrp	x22, _DP83065_MII_MEM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DP83065_MII_MEM@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_cas_phy_write
Lloh2:
	adrp	x20, _DP83065_MII_REGE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DP83065_MII_REGE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #36857
	bl	_cas_phy_write
Lloh4:
	adrp	x21, _DP83065_MII_REGD@GOTPAGE
Lloh5:
	ldr	x21, [x21, _DP83065_MII_REGD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #189
	bl	_cas_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #36858
	bl	_cas_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #130
	bl	_cas_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #36859
	bl	_cas_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	bl	_cas_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #36860
	bl	_cas_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #57
	bl	_cas_phy_write
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_cas_phy_write
	ldr	w1, [x20]
	ldr	w2, [x19, #8]
	mov	x0, x19
	bl	_cas_phy_write
	ldr	w8, [x19, #12]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	ldr	x8, [x19]
	ldr	w2, [x8, x22, lsl #2]
	mov	x0, x19
	bl	_cas_phy_write
	add	x22, x22, #1
	ldrsw	x8, [x19, #12]
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #36856
	bl	_cas_phy_write
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cas_phy_write
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DP83065_MII_MEM,4,2            ; @DP83065_MII_MEM
	.comm	_DP83065_MII_REGE,4,2           ; @DP83065_MII_REGE
	.comm	_DP83065_MII_REGD,4,2           ; @DP83065_MII_REGD
	.no_dead_strip	_cas_saturn_firmware_load
.subsections_via_symbols
