	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_hw_enable
_emac_hw_enable:                        ## @emac_hw_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_EMAC_SOFTRESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	$1, %esi
	callq	_emac_write
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	callq	_emac_read
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_emac_int_disable
	movq	_EMAC_DEF_TXPRIO_FIXED@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %eax
	je	LBB0_5
## %bb.4:
	movq	_EMAC_MACCONTROL_TXPTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	cmpl	$1000, (%r15)                   ## imm = 0x3E8
	movl	$0, %esi
	jne	LBB0_7
## %bb.6:
	movq	_EMAC_MACCONTROL_GIGABITEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_7:
	orl	%eax, %esi
	movq	_EMAC_DEF_TXPACING_EN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %eax
	je	LBB0_9
## %bb.8:
	movq	_EMAC_MACCONTROL_TXPACEEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movq	8(%r15), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	cmpq	(%rdx), %rcx
	sete	%dil
	orl	%eax, %edi
	orl	%edi, %esi
	movq	_EMAC_MACCONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_emac_write
	movq	_EMAC_DEF_PASS_CRC@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %ecx
	je	LBB0_11
## %bb.10:
	movq	_EMAC_RXMBP_PASSCRC_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_11:
	movq	_EMAC_DEF_QOS_EN@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %eax
	je	LBB0_13
## %bb.12:
	movq	_EMAC_RXMBP_QOSEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	movq	_EMAC_DEF_NO_BUFF_CHAIN@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	movl	$0, %esi
	je	LBB0_15
## %bb.14:
	movq	_EMAC_RXMBP_NOCHAIN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
LBB0_15:
	movq	_EMAC_DEF_MACCTRL_FRAME_EN@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	movl	$0, %edi
	je	LBB0_17
## %bb.16:
	movq	_EMAC_RXMBP_CMFEN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
LBB0_17:
	movq	_EMAC_DEF_SHORT_FRAME_EN@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	movl	$0, %edx
	je	LBB0_19
## %bb.18:
	movq	_EMAC_RXMBP_CSFEN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_19:
	movq	_EMAC_DEF_ERROR_FRAME_EN@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	movl	$0, %ebx
	je	LBB0_21
## %bb.20:
	movq	_EMAC_RXMBP_CEFEN_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ebx
LBB0_21:
	orl	%ebx, %edx
	orl	%ecx, %eax
	orl	%edi, %esi
	movq	_EMAC_DEF_PROM_EN@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$0, %ecx
	je	LBB0_23
## %bb.22:
	movq	_EMAC_RXMBP_CAFEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_23:
	orl	%ecx, %edx
	orl	%esi, %eax
	movq	_EMAC_DEF_PROM_CH@GOTPCREL(%rip), %rcx
	movq	_EMAC_RXMBP_CHMASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	(%rcx), %edi
	andl	%esi, %edi
	movq	_EMAC_RXMBP_PROMCH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	movq	_EMAC_DEF_BCAST_EN@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$0, %ecx
	je	LBB0_25
## %bb.24:
	movq	_EMAC_RXMBP_BROADEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_25:
	orl	%ecx, %edi
	orl	%edx, %eax
	movq	_EMAC_DEF_BCAST_CH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%esi, %edx
	movq	_EMAC_RXMBP_BROADCH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%edi, %edx
	movq	_EMAC_DEF_MCAST_EN@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movl	$0, %ecx
	je	LBB0_27
## %bb.26:
	movq	_EMAC_RXMBP_MULTIEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_27:
	orl	%ecx, %edx
	movq	_EMAC_DEF_MCAST_CH@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_EMAC_RXMBP_MULTICH_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	orl	%edx, %eax
	orl	%eax, %esi
	movq	_EMAC_RXMBPENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_emac_write
	movq	_EMAC_RXMAXLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_DEF_MAX_FRAME_SIZE@GOTPCREL(%rip), %rax
	movq	_EMAC_RX_MAX_LEN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	callq	_emac_write
	movq	_EMAC_RXBUFFEROFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_DEF_BUFFER_OFFSET@GOTPCREL(%rip), %rax
	movq	_EMAC_RX_BUFFER_OFFSET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	callq	_emac_write
	movq	_EMAC_RXFILTERLOWTHRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_emac_write
	movq	_EMAC_RXUNICASTCLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_RX_UNICAST_CLEAR_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_emac_write
	movq	_EMAC_MACCONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_emac_read
	movzbl	%ah, %eax
	movl	%eax, 16(%r15)
	movq	_EMAC_MACINTMASKSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_MAC_HOST_ERR_INTMASK_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_emac_write
	movq	_EMAC_DEF_RX_CH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r15), %edx
	movq	%r15, %rdi
	callq	_emac_setmac
	movl	(%r14), %edi
	callq	_emac_read
	movq	_EMAC_MACCONTROL_GMIIEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_emac_write
	leaq	20(%r15), %rdi
	callq	_napi_enable
	movq	%r15, %rdi
	callq	_emac_int_enable
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EMAC_SOFTRESET,4,2             ## @EMAC_SOFTRESET
	.comm	_EMAC_DEF_TXPRIO_FIXED,8,3      ## @EMAC_DEF_TXPRIO_FIXED
	.comm	_EMAC_MACCONTROL_TXPTYPE,4,2    ## @EMAC_MACCONTROL_TXPTYPE
	.comm	_EMAC_MACCONTROL_GIGABITEN,4,2  ## @EMAC_MACCONTROL_GIGABITEN
	.comm	_EMAC_DEF_TXPACING_EN,8,3       ## @EMAC_DEF_TXPACING_EN
	.comm	_EMAC_MACCONTROL_TXPACEEN,4,2   ## @EMAC_MACCONTROL_TXPACEEN
	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_EMAC_MACCONTROL,4,2            ## @EMAC_MACCONTROL
	.comm	_EMAC_DEF_PASS_CRC,8,3          ## @EMAC_DEF_PASS_CRC
	.comm	_EMAC_RXMBP_PASSCRC_MASK,4,2    ## @EMAC_RXMBP_PASSCRC_MASK
	.comm	_EMAC_DEF_QOS_EN,8,3            ## @EMAC_DEF_QOS_EN
	.comm	_EMAC_RXMBP_QOSEN_MASK,4,2      ## @EMAC_RXMBP_QOSEN_MASK
	.comm	_EMAC_DEF_NO_BUFF_CHAIN,8,3     ## @EMAC_DEF_NO_BUFF_CHAIN
	.comm	_EMAC_RXMBP_NOCHAIN_MASK,4,2    ## @EMAC_RXMBP_NOCHAIN_MASK
	.comm	_EMAC_DEF_MACCTRL_FRAME_EN,8,3  ## @EMAC_DEF_MACCTRL_FRAME_EN
	.comm	_EMAC_RXMBP_CMFEN_MASK,4,2      ## @EMAC_RXMBP_CMFEN_MASK
	.comm	_EMAC_DEF_SHORT_FRAME_EN,8,3    ## @EMAC_DEF_SHORT_FRAME_EN
	.comm	_EMAC_RXMBP_CSFEN_MASK,4,2      ## @EMAC_RXMBP_CSFEN_MASK
	.comm	_EMAC_DEF_ERROR_FRAME_EN,8,3    ## @EMAC_DEF_ERROR_FRAME_EN
	.comm	_EMAC_RXMBP_CEFEN_MASK,4,2      ## @EMAC_RXMBP_CEFEN_MASK
	.comm	_EMAC_DEF_PROM_EN,8,3           ## @EMAC_DEF_PROM_EN
	.comm	_EMAC_RXMBP_CAFEN_MASK,4,2      ## @EMAC_RXMBP_CAFEN_MASK
	.comm	_EMAC_DEF_PROM_CH,4,2           ## @EMAC_DEF_PROM_CH
	.comm	_EMAC_RXMBP_CHMASK,4,2          ## @EMAC_RXMBP_CHMASK
	.comm	_EMAC_RXMBP_PROMCH_SHIFT,4,2    ## @EMAC_RXMBP_PROMCH_SHIFT
	.comm	_EMAC_DEF_BCAST_EN,8,3          ## @EMAC_DEF_BCAST_EN
	.comm	_EMAC_RXMBP_BROADEN_MASK,4,2    ## @EMAC_RXMBP_BROADEN_MASK
	.comm	_EMAC_DEF_BCAST_CH,4,2          ## @EMAC_DEF_BCAST_CH
	.comm	_EMAC_RXMBP_BROADCH_SHIFT,4,2   ## @EMAC_RXMBP_BROADCH_SHIFT
	.comm	_EMAC_DEF_MCAST_EN,8,3          ## @EMAC_DEF_MCAST_EN
	.comm	_EMAC_RXMBP_MULTIEN_MASK,4,2    ## @EMAC_RXMBP_MULTIEN_MASK
	.comm	_EMAC_DEF_MCAST_CH,4,2          ## @EMAC_DEF_MCAST_CH
	.comm	_EMAC_RXMBP_MULTICH_SHIFT,4,2   ## @EMAC_RXMBP_MULTICH_SHIFT
	.comm	_EMAC_RXMBPENABLE,4,2           ## @EMAC_RXMBPENABLE
	.comm	_EMAC_RXMAXLEN,4,2              ## @EMAC_RXMAXLEN
	.comm	_EMAC_DEF_MAX_FRAME_SIZE,4,2    ## @EMAC_DEF_MAX_FRAME_SIZE
	.comm	_EMAC_RX_MAX_LEN_MASK,4,2       ## @EMAC_RX_MAX_LEN_MASK
	.comm	_EMAC_RXBUFFEROFFSET,4,2        ## @EMAC_RXBUFFEROFFSET
	.comm	_EMAC_DEF_BUFFER_OFFSET,4,2     ## @EMAC_DEF_BUFFER_OFFSET
	.comm	_EMAC_RX_BUFFER_OFFSET_MASK,4,2 ## @EMAC_RX_BUFFER_OFFSET_MASK
	.comm	_EMAC_RXFILTERLOWTHRESH,4,2     ## @EMAC_RXFILTERLOWTHRESH
	.comm	_EMAC_RXUNICASTCLEAR,4,2        ## @EMAC_RXUNICASTCLEAR
	.comm	_EMAC_RX_UNICAST_CLEAR_ALL,4,2  ## @EMAC_RX_UNICAST_CLEAR_ALL
	.comm	_EMAC_MACCONFIG,4,2             ## @EMAC_MACCONFIG
	.comm	_EMAC_MACINTMASKSET,4,2         ## @EMAC_MACINTMASKSET
	.comm	_EMAC_MAC_HOST_ERR_INTMASK_VAL,4,2 ## @EMAC_MAC_HOST_ERR_INTMASK_VAL
	.comm	_EMAC_DEF_RX_CH,4,2             ## @EMAC_DEF_RX_CH
	.comm	_EMAC_MACCONTROL_GMIIEN,4,2     ## @EMAC_MACCONTROL_GMIIEN
	.no_dead_strip	_emac_hw_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_hw_enable
_emac_hw_enable:                        ; @emac_hw_enable
	.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
Lloh0:
	adrp	x20, _EMAC_SOFTRESET@GOTPAGE
Lloh1:
	ldr	x20, [x20, _EMAC_SOFTRESET@GOTPAGEOFF]
	ldr	w0, [x20]
	mov	w1, #1
	bl	_emac_write
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20]
	bl	_emac_read
	cbz	w0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_cpu_relax
	b	LBB0_1
LBB0_3:
	mov	x0, x19
	bl	_emac_int_disable
Lloh2:
	adrp	x8, _EMAC_DEF_TXPRIO_FIXED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EMAC_DEF_TXPRIO_FIXED@GOTPAGEOFF]
Lloh4:
	adrp	x9, _EMAC_MACCONTROL_TXPTYPE@GOTPAGE
Lloh5:
	ldr	x9, [x9, _EMAC_MACCONTROL_TXPTYPE@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
Lloh8:
	adrp	x9, _EMAC_MACCONTROL_GIGABITEN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EMAC_MACCONTROL_GIGABITEN@GOTPAGEOFF]
	ldr	w10, [x19]
Lloh10:
	ldr	w9, [x9]
	cmp	w10, #1000
	csel	w9, w9, wzr, eq
Lloh11:
	adrp	x10, _EMAC_DEF_TXPACING_EN@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EMAC_DEF_TXPACING_EN@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh13:
	ldr	x9, [x10]
Lloh14:
	adrp	x10, _EMAC_MACCONTROL_TXPACEEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _EMAC_MACCONTROL_TXPACEEN@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
Lloh17:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh18:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, eq
	orr	w1, w8, w9
Lloh20:
	adrp	x20, _EMAC_MACCONTROL@GOTPAGE
Lloh21:
	ldr	x20, [x20, _EMAC_MACCONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_emac_write
Lloh22:
	adrp	x8, _EMAC_DEF_PASS_CRC@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EMAC_DEF_PASS_CRC@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
Lloh25:
	adrp	x9, _EMAC_RXMBP_PASSCRC_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _EMAC_RXMBP_PASSCRC_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w8, wzr, w9, eq
Lloh28:
	adrp	x9, _EMAC_DEF_QOS_EN@GOTPAGE
Lloh29:
	ldr	x9, [x9, _EMAC_DEF_QOS_EN@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
Lloh31:
	adrp	x10, _EMAC_RXMBP_QOSEN_MASK@GOTPAGE
Lloh32:
	ldr	x10, [x10, _EMAC_RXMBP_QOSEN_MASK@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh34:
	adrp	x9, _EMAC_DEF_NO_BUFF_CHAIN@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EMAC_DEF_NO_BUFF_CHAIN@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
Lloh37:
	adrp	x10, _EMAC_RXMBP_NOCHAIN_MASK@GOTPAGE
Lloh38:
	ldr	x10, [x10, _EMAC_RXMBP_NOCHAIN_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _EMAC_DEF_MACCTRL_FRAME_EN@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EMAC_DEF_MACCTRL_FRAME_EN@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
Lloh43:
	adrp	x10, _EMAC_RXMBP_CMFEN_MASK@GOTPAGE
Lloh44:
	ldr	x10, [x10, _EMAC_RXMBP_CMFEN_MASK@GOTPAGEOFF]
Lloh45:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _EMAC_DEF_SHORT_FRAME_EN@GOTPAGE
Lloh47:
	ldr	x9, [x9, _EMAC_DEF_SHORT_FRAME_EN@GOTPAGEOFF]
Lloh48:
	ldr	x9, [x9]
Lloh49:
	adrp	x10, _EMAC_RXMBP_CSFEN_MASK@GOTPAGE
Lloh50:
	ldr	x10, [x10, _EMAC_RXMBP_CSFEN_MASK@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh52:
	adrp	x9, _EMAC_DEF_ERROR_FRAME_EN@GOTPAGE
Lloh53:
	ldr	x9, [x9, _EMAC_DEF_ERROR_FRAME_EN@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
Lloh55:
	adrp	x10, _EMAC_RXMBP_CEFEN_MASK@GOTPAGE
Lloh56:
	ldr	x10, [x10, _EMAC_RXMBP_CEFEN_MASK@GOTPAGEOFF]
Lloh57:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh58:
	adrp	x9, _EMAC_DEF_PROM_EN@GOTPAGE
Lloh59:
	ldr	x9, [x9, _EMAC_DEF_PROM_EN@GOTPAGEOFF]
Lloh60:
	ldr	x9, [x9]
Lloh61:
	adrp	x10, _EMAC_RXMBP_CAFEN_MASK@GOTPAGE
Lloh62:
	ldr	x10, [x10, _EMAC_RXMBP_CAFEN_MASK@GOTPAGEOFF]
Lloh63:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh64:
	adrp	x9, _EMAC_DEF_PROM_CH@GOTPAGE
Lloh65:
	ldr	x9, [x9, _EMAC_DEF_PROM_CH@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
Lloh67:
	adrp	x10, _EMAC_RXMBP_CHMASK@GOTPAGE
Lloh68:
	ldr	x10, [x10, _EMAC_RXMBP_CHMASK@GOTPAGEOFF]
Lloh69:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh70:
	adrp	x11, _EMAC_RXMBP_PROMCH_SHIFT@GOTPAGE
Lloh71:
	ldr	x11, [x11, _EMAC_RXMBP_PROMCH_SHIFT@GOTPAGEOFF]
Lloh72:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w8, w8, w9
Lloh73:
	adrp	x9, _EMAC_DEF_BCAST_EN@GOTPAGE
Lloh74:
	ldr	x9, [x9, _EMAC_DEF_BCAST_EN@GOTPAGEOFF]
Lloh75:
	ldr	x9, [x9]
Lloh76:
	adrp	x11, _EMAC_RXMBP_BROADEN_MASK@GOTPAGE
Lloh77:
	ldr	x11, [x11, _EMAC_RXMBP_BROADEN_MASK@GOTPAGEOFF]
Lloh78:
	ldr	w11, [x11]
	cmp	x9, #0
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh79:
	adrp	x9, _EMAC_DEF_BCAST_CH@GOTPAGE
Lloh80:
	ldr	x9, [x9, _EMAC_DEF_BCAST_CH@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh82:
	adrp	x11, _EMAC_RXMBP_BROADCH_SHIFT@GOTPAGE
Lloh83:
	ldr	x11, [x11, _EMAC_RXMBP_BROADCH_SHIFT@GOTPAGEOFF]
Lloh84:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w8, w8, w9
Lloh85:
	adrp	x9, _EMAC_DEF_MCAST_EN@GOTPAGE
Lloh86:
	ldr	x9, [x9, _EMAC_DEF_MCAST_EN@GOTPAGEOFF]
Lloh87:
	ldr	x9, [x9]
Lloh88:
	adrp	x11, _EMAC_RXMBP_MULTIEN_MASK@GOTPAGE
Lloh89:
	ldr	x11, [x11, _EMAC_RXMBP_MULTIEN_MASK@GOTPAGEOFF]
Lloh90:
	ldr	w11, [x11]
	cmp	x9, #0
	csel	w9, wzr, w11, eq
	orr	w8, w8, w9
Lloh91:
	adrp	x9, _EMAC_DEF_MCAST_CH@GOTPAGE
Lloh92:
	ldr	x9, [x9, _EMAC_DEF_MCAST_CH@GOTPAGEOFF]
Lloh93:
	ldr	w9, [x9]
	and	w9, w9, w10
Lloh94:
	adrp	x10, _EMAC_RXMBP_MULTICH_SHIFT@GOTPAGE
Lloh95:
	ldr	x10, [x10, _EMAC_RXMBP_MULTICH_SHIFT@GOTPAGEOFF]
Lloh96:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
Lloh97:
	adrp	x8, _EMAC_RXMBPENABLE@GOTPAGE
Lloh98:
	ldr	x8, [x8, _EMAC_RXMBPENABLE@GOTPAGEOFF]
Lloh99:
	ldr	w0, [x8]
	bl	_emac_write
Lloh100:
	adrp	x8, _EMAC_RXMAXLEN@GOTPAGE
Lloh101:
	ldr	x8, [x8, _EMAC_RXMAXLEN@GOTPAGEOFF]
Lloh102:
	adrp	x9, _EMAC_DEF_MAX_FRAME_SIZE@GOTPAGE
Lloh103:
	ldr	x9, [x9, _EMAC_DEF_MAX_FRAME_SIZE@GOTPAGEOFF]
Lloh104:
	ldr	w0, [x8]
Lloh105:
	ldr	w8, [x9]
Lloh106:
	adrp	x9, _EMAC_RX_MAX_LEN_MASK@GOTPAGE
Lloh107:
	ldr	x9, [x9, _EMAC_RX_MAX_LEN_MASK@GOTPAGEOFF]
Lloh108:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_emac_write
Lloh109:
	adrp	x8, _EMAC_RXBUFFEROFFSET@GOTPAGE
Lloh110:
	ldr	x8, [x8, _EMAC_RXBUFFEROFFSET@GOTPAGEOFF]
Lloh111:
	adrp	x9, _EMAC_DEF_BUFFER_OFFSET@GOTPAGE
Lloh112:
	ldr	x9, [x9, _EMAC_DEF_BUFFER_OFFSET@GOTPAGEOFF]
Lloh113:
	ldr	w0, [x8]
Lloh114:
	ldr	w8, [x9]
Lloh115:
	adrp	x9, _EMAC_RX_BUFFER_OFFSET_MASK@GOTPAGE
Lloh116:
	ldr	x9, [x9, _EMAC_RX_BUFFER_OFFSET_MASK@GOTPAGEOFF]
Lloh117:
	ldr	w9, [x9]
	and	w1, w9, w8
	bl	_emac_write
Lloh118:
	adrp	x8, _EMAC_RXFILTERLOWTHRESH@GOTPAGE
Lloh119:
	ldr	x8, [x8, _EMAC_RXFILTERLOWTHRESH@GOTPAGEOFF]
Lloh120:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_emac_write
Lloh121:
	adrp	x8, _EMAC_RXUNICASTCLEAR@GOTPAGE
Lloh122:
	ldr	x8, [x8, _EMAC_RXUNICASTCLEAR@GOTPAGEOFF]
Lloh123:
	ldr	w0, [x8]
Lloh124:
	adrp	x8, _EMAC_RX_UNICAST_CLEAR_ALL@GOTPAGE
Lloh125:
	ldr	x8, [x8, _EMAC_RX_UNICAST_CLEAR_ALL@GOTPAGEOFF]
Lloh126:
	ldr	w1, [x8]
	bl	_emac_write
Lloh127:
	adrp	x8, _EMAC_MACCONFIG@GOTPAGE
Lloh128:
	ldr	x8, [x8, _EMAC_MACCONFIG@GOTPAGEOFF]
Lloh129:
	ldr	w0, [x8]
	bl	_emac_read
	ubfx	w8, w0, #8, #8
	str	w8, [x19, #16]
Lloh130:
	adrp	x8, _EMAC_MACINTMASKSET@GOTPAGE
Lloh131:
	ldr	x8, [x8, _EMAC_MACINTMASKSET@GOTPAGEOFF]
Lloh132:
	ldr	w0, [x8]
Lloh133:
	adrp	x8, _EMAC_MAC_HOST_ERR_INTMASK_VAL@GOTPAGE
Lloh134:
	ldr	x8, [x8, _EMAC_MAC_HOST_ERR_INTMASK_VAL@GOTPAGEOFF]
Lloh135:
	ldr	w1, [x8]
	bl	_emac_write
Lloh136:
	adrp	x8, _EMAC_DEF_RX_CH@GOTPAGE
Lloh137:
	ldr	x8, [x8, _EMAC_DEF_RX_CH@GOTPAGEOFF]
Lloh138:
	ldr	w1, [x8]
	ldr	w2, [x19, #24]
	mov	x0, x19
	bl	_emac_setmac
	ldr	w0, [x20]
	bl	_emac_read
Lloh139:
	adrp	x8, _EMAC_MACCONTROL_GMIIEN@GOTPAGE
Lloh140:
	ldr	x8, [x8, _EMAC_MACCONTROL_GMIIEN@GOTPAGEOFF]
Lloh141:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w0, [x20]
	bl	_emac_write
	add	x0, x19, #20
	bl	_napi_enable
	mov	x0, x19
	bl	_emac_int_enable
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh139, Lloh140, Lloh141
	.loh AdrpLdrGotLdr	Lloh136, Lloh137, Lloh138
	.loh AdrpLdrGotLdr	Lloh133, Lloh134, Lloh135
	.loh AdrpLdrGotLdr	Lloh130, Lloh131, Lloh132
	.loh AdrpLdrGotLdr	Lloh127, Lloh128, Lloh129
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh114
	.loh AdrpLdrGotLdr	Lloh109, Lloh110, Lloh113
	.loh AdrpLdrGotLdr	Lloh106, Lloh107, Lloh108
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh105
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh104
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh91, Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EMAC_SOFTRESET,4,2             ; @EMAC_SOFTRESET
	.comm	_EMAC_DEF_TXPRIO_FIXED,8,3      ; @EMAC_DEF_TXPRIO_FIXED
	.comm	_EMAC_MACCONTROL_TXPTYPE,4,2    ; @EMAC_MACCONTROL_TXPTYPE
	.comm	_EMAC_MACCONTROL_GIGABITEN,4,2  ; @EMAC_MACCONTROL_GIGABITEN
	.comm	_EMAC_DEF_TXPACING_EN,8,3       ; @EMAC_DEF_TXPACING_EN
	.comm	_EMAC_MACCONTROL_TXPACEEN,4,2   ; @EMAC_MACCONTROL_TXPACEEN
	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_EMAC_MACCONTROL,4,2            ; @EMAC_MACCONTROL
	.comm	_EMAC_DEF_PASS_CRC,8,3          ; @EMAC_DEF_PASS_CRC
	.comm	_EMAC_RXMBP_PASSCRC_MASK,4,2    ; @EMAC_RXMBP_PASSCRC_MASK
	.comm	_EMAC_DEF_QOS_EN,8,3            ; @EMAC_DEF_QOS_EN
	.comm	_EMAC_RXMBP_QOSEN_MASK,4,2      ; @EMAC_RXMBP_QOSEN_MASK
	.comm	_EMAC_DEF_NO_BUFF_CHAIN,8,3     ; @EMAC_DEF_NO_BUFF_CHAIN
	.comm	_EMAC_RXMBP_NOCHAIN_MASK,4,2    ; @EMAC_RXMBP_NOCHAIN_MASK
	.comm	_EMAC_DEF_MACCTRL_FRAME_EN,8,3  ; @EMAC_DEF_MACCTRL_FRAME_EN
	.comm	_EMAC_RXMBP_CMFEN_MASK,4,2      ; @EMAC_RXMBP_CMFEN_MASK
	.comm	_EMAC_DEF_SHORT_FRAME_EN,8,3    ; @EMAC_DEF_SHORT_FRAME_EN
	.comm	_EMAC_RXMBP_CSFEN_MASK,4,2      ; @EMAC_RXMBP_CSFEN_MASK
	.comm	_EMAC_DEF_ERROR_FRAME_EN,8,3    ; @EMAC_DEF_ERROR_FRAME_EN
	.comm	_EMAC_RXMBP_CEFEN_MASK,4,2      ; @EMAC_RXMBP_CEFEN_MASK
	.comm	_EMAC_DEF_PROM_EN,8,3           ; @EMAC_DEF_PROM_EN
	.comm	_EMAC_RXMBP_CAFEN_MASK,4,2      ; @EMAC_RXMBP_CAFEN_MASK
	.comm	_EMAC_DEF_PROM_CH,4,2           ; @EMAC_DEF_PROM_CH
	.comm	_EMAC_RXMBP_CHMASK,4,2          ; @EMAC_RXMBP_CHMASK
	.comm	_EMAC_RXMBP_PROMCH_SHIFT,4,2    ; @EMAC_RXMBP_PROMCH_SHIFT
	.comm	_EMAC_DEF_BCAST_EN,8,3          ; @EMAC_DEF_BCAST_EN
	.comm	_EMAC_RXMBP_BROADEN_MASK,4,2    ; @EMAC_RXMBP_BROADEN_MASK
	.comm	_EMAC_DEF_BCAST_CH,4,2          ; @EMAC_DEF_BCAST_CH
	.comm	_EMAC_RXMBP_BROADCH_SHIFT,4,2   ; @EMAC_RXMBP_BROADCH_SHIFT
	.comm	_EMAC_DEF_MCAST_EN,8,3          ; @EMAC_DEF_MCAST_EN
	.comm	_EMAC_RXMBP_MULTIEN_MASK,4,2    ; @EMAC_RXMBP_MULTIEN_MASK
	.comm	_EMAC_DEF_MCAST_CH,4,2          ; @EMAC_DEF_MCAST_CH
	.comm	_EMAC_RXMBP_MULTICH_SHIFT,4,2   ; @EMAC_RXMBP_MULTICH_SHIFT
	.comm	_EMAC_RXMBPENABLE,4,2           ; @EMAC_RXMBPENABLE
	.comm	_EMAC_RXMAXLEN,4,2              ; @EMAC_RXMAXLEN
	.comm	_EMAC_DEF_MAX_FRAME_SIZE,4,2    ; @EMAC_DEF_MAX_FRAME_SIZE
	.comm	_EMAC_RX_MAX_LEN_MASK,4,2       ; @EMAC_RX_MAX_LEN_MASK
	.comm	_EMAC_RXBUFFEROFFSET,4,2        ; @EMAC_RXBUFFEROFFSET
	.comm	_EMAC_DEF_BUFFER_OFFSET,4,2     ; @EMAC_DEF_BUFFER_OFFSET
	.comm	_EMAC_RX_BUFFER_OFFSET_MASK,4,2 ; @EMAC_RX_BUFFER_OFFSET_MASK
	.comm	_EMAC_RXFILTERLOWTHRESH,4,2     ; @EMAC_RXFILTERLOWTHRESH
	.comm	_EMAC_RXUNICASTCLEAR,4,2        ; @EMAC_RXUNICASTCLEAR
	.comm	_EMAC_RX_UNICAST_CLEAR_ALL,4,2  ; @EMAC_RX_UNICAST_CLEAR_ALL
	.comm	_EMAC_MACCONFIG,4,2             ; @EMAC_MACCONFIG
	.comm	_EMAC_MACINTMASKSET,4,2         ; @EMAC_MACINTMASKSET
	.comm	_EMAC_MAC_HOST_ERR_INTMASK_VAL,4,2 ; @EMAC_MAC_HOST_ERR_INTMASK_VAL
	.comm	_EMAC_DEF_RX_CH,4,2             ; @EMAC_DEF_RX_CH
	.comm	_EMAC_MACCONTROL_GMIIEN,4,2     ; @EMAC_MACCONTROL_GMIIEN
	.no_dead_strip	_emac_hw_enable
.subsections_via_symbols
