	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_init_hw
_cas_init_hw:                           ## @cas_init_hw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_1
## %bb.3:
	callq	_cas_phy_init
	movq	%rbx, %rdi
	callq	_cas_init_pause_thresholds
	movq	%rbx, %rdi
	callq	_cas_init_mac
	movq	%rbx, %rdi
	callq	_cas_init_dma
	movq	$0, 16(%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_cas_begin_auto_negotiation     ## TAILCALL
LBB0_1:
	callq	_cas_init_pause_thresholds
	movq	%rbx, %rdi
	callq	_cas_init_mac
	movq	%rbx, %rdi
	callq	_cas_init_dma
	movq	(%rbx), %rax
	movq	_link_up@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.4:
	movq	%rbx, %rdi
	callq	_cas_set_link_modes
	movl	8(%rbx), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_netif_carrier_on               ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_link_up,8,3                    ## @link_up
	.no_dead_strip	_cas_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_init_hw
_cas_init_hw:                           ; @cas_init_hw
	.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
	cbz	w1, LBB0_2
; %bb.1:
	bl	_cas_phy_init
	mov	x0, x19
	bl	_cas_init_pause_thresholds
	mov	x0, x19
	bl	_cas_init_mac
	mov	x0, x19
	bl	_cas_init_dma
	str	xzr, [x19, #16]
	mov	x0, x19
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cas_begin_auto_negotiation
LBB0_2:
	bl	_cas_init_pause_thresholds
	mov	x0, x19
	bl	_cas_init_mac
	mov	x0, x19
	bl	_cas_init_dma
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _link_up@GOTPAGE
Lloh1:
	ldr	x9, [x9, _link_up@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_cas_set_link_modes
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netif_carrier_on
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_link_up,8,3                    ; @link_up
	.no_dead_strip	_cas_init_hw
.subsections_via_symbols
