	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ravb_emac_init
_ravb_emac_init:                        ## @ravb_emac_init
	.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
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	(%rdi), %esi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %esi
	movq	_RFLR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_ravb_write
	movq	_ECMR_ZPF@GOTPCREL(%rip), %rax
	movq	_ECMR_DM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	je	LBB0_2
## %bb.1:
	movq	_ECMR_RCSC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movq	_ECMR_TE@GOTPCREL(%rip), %rcx
	movq	_ECMR_RE@GOTPCREL(%rip), %rdx
	orl	(%rcx), %esi
	orl	%eax, %esi
	orl	(%rdx), %esi
	movq	_ECMR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movq	%rbx, %rdi
	callq	_ravb_set_rate
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	shll	$24, %ecx
	shll	$16, %edx
	orl	%ecx, %edx
	movl	8(%rax), %esi
	shll	$8, %esi
	orl	%edx, %esi
	orl	12(%rax), %esi
	movq	_MAHR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movq	8(%rbx), %rax
	movl	16(%rax), %esi
	shll	$8, %esi
	orl	20(%rax), %esi
	movq	_MALR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movq	_ECSR_ICD@GOTPCREL(%rip), %rax
	movq	_ECSR_MPD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ECSR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_ravb_write
	movq	_ECSIPR_ICDIP@GOTPCREL(%rip), %rax
	movq	_ECSIPR_MPDIP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_ECSIPR_LCHNGIP@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	_ECSIPR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_ravb_write                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_RFLR,4,2                       ## @RFLR
	.comm	_ECMR_ZPF,4,2                   ## @ECMR_ZPF
	.comm	_ECMR_DM,4,2                    ## @ECMR_DM
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_ECMR_RCSC,4,2                  ## @ECMR_RCSC
	.comm	_ECMR_TE,4,2                    ## @ECMR_TE
	.comm	_ECMR_RE,4,2                    ## @ECMR_RE
	.comm	_ECMR,4,2                       ## @ECMR
	.comm	_MAHR,4,2                       ## @MAHR
	.comm	_MALR,4,2                       ## @MALR
	.comm	_ECSR_ICD,4,2                   ## @ECSR_ICD
	.comm	_ECSR_MPD,4,2                   ## @ECSR_MPD
	.comm	_ECSR,4,2                       ## @ECSR
	.comm	_ECSIPR_ICDIP,4,2               ## @ECSIPR_ICDIP
	.comm	_ECSIPR_MPDIP,4,2               ## @ECSIPR_MPDIP
	.comm	_ECSIPR_LCHNGIP,4,2             ## @ECSIPR_LCHNGIP
	.comm	_ECSIPR,4,2                     ## @ECSIPR
	.no_dead_strip	_ravb_emac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ravb_emac_init
_ravb_emac_init:                        ; @ravb_emac_init
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _VLAN_HLEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _VLAN_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ETH_FCS_LEN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ETH_FCS_LEN@GOTPAGEOFF]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh8:
	ldr	w9, [x11]
	add	w1, w8, w9
Lloh9:
	adrp	x8, _RFLR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RFLR@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_ravb_write
Lloh12:
	adrp	x8, _ECMR_ZPF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ECMR_ZPF@GOTPAGEOFF]
Lloh14:
	adrp	x9, _ECMR_DM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ECMR_DM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x19, #4]
Lloh18:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh19:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
Lloh21:
	adrp	x11, _ECMR_RCSC@GOTPAGE
Lloh22:
	ldr	x11, [x11, _ECMR_RCSC@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, wzr, w11, eq
Lloh24:
	adrp	x10, _ECMR_TE@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ECMR_TE@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
Lloh27:
	adrp	x11, _ECMR_RE@GOTPAGE
Lloh28:
	ldr	x11, [x11, _ECMR_RE@GOTPAGEOFF]
Lloh29:
	ldr	w11, [x11]
	orr	w8, w8, w10
	orr	w8, w8, w9
	orr	w1, w8, w11
Lloh30:
	adrp	x8, _ECMR@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ECMR@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
	mov	x0, x19
	bl	_ravb_set_rate
	ldr	x8, [x19, #8]
	ldp	w9, w10, [x8]
	lsl	w10, w10, #16
	orr	w9, w10, w9, lsl #24
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #8
	orr	w1, w9, w8
Lloh33:
	adrp	x8, _MAHR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _MAHR@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8, #16]
	orr	w1, w8, w9, lsl #8
Lloh36:
	adrp	x8, _MALR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _MALR@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh39:
	adrp	x8, _ECSR_ICD@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ECSR_ICD@GOTPAGEOFF]
Lloh41:
	adrp	x9, _ECSR_MPD@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ECSR_MPD@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
Lloh44:
	ldr	w9, [x9]
	orr	w1, w9, w8
Lloh45:
	adrp	x8, _ECSR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ECSR@GOTPAGEOFF]
Lloh47:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_ravb_write
Lloh48:
	adrp	x8, _ECSIPR_ICDIP@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ECSIPR_ICDIP@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x9, _ECSIPR_MPDIP@GOTPAGE
Lloh52:
	ldr	x9, [x9, _ECSIPR_MPDIP@GOTPAGEOFF]
Lloh53:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh54:
	adrp	x9, _ECSIPR_LCHNGIP@GOTPAGE
Lloh55:
	ldr	x9, [x9, _ECSIPR_LCHNGIP@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w1, w8, w9
Lloh57:
	adrp	x8, _ECSIPR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _ECSIPR@GOTPAGEOFF]
Lloh59:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ravb_write
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh43
	.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	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_RFLR,4,2                       ; @RFLR
	.comm	_ECMR_ZPF,4,2                   ; @ECMR_ZPF
	.comm	_ECMR_DM,4,2                    ; @ECMR_DM
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_ECMR_RCSC,4,2                  ; @ECMR_RCSC
	.comm	_ECMR_TE,4,2                    ; @ECMR_TE
	.comm	_ECMR_RE,4,2                    ; @ECMR_RE
	.comm	_ECMR,4,2                       ; @ECMR
	.comm	_MAHR,4,2                       ; @MAHR
	.comm	_MALR,4,2                       ; @MALR
	.comm	_ECSR_ICD,4,2                   ; @ECSR_ICD
	.comm	_ECSR_MPD,4,2                   ; @ECSR_MPD
	.comm	_ECSR,4,2                       ; @ECSR
	.comm	_ECSIPR_ICDIP,4,2               ; @ECSIPR_ICDIP
	.comm	_ECSIPR_MPDIP,4,2               ; @ECSIPR_MPDIP
	.comm	_ECSIPR_LCHNGIP,4,2             ; @ECSIPR_LCHNGIP
	.comm	_ECSIPR,4,2                     ; @ECSIPR
	.no_dead_strip	_ravb_emac_init
.subsections_via_symbols
