	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emac_mac_config
_emac_mac_config:                       ## @emac_mac_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	4(%r14), %esi
	callq	_emac_set_mac_address
	movl	(%r14), %edi
	movq	_EMAC_DEF_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edi
	jbe	LBB0_2
## %bb.1:
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movl	$8, %esi
	callq	_ALIGN
LBB0_2:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_emac_mac_dma_rings_config
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	(%r14), %edi
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %edi
	movq	_EMAC_MAX_FRAM_LEN_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	callq	_emac_mac_tx_config
	movq	%rbx, %rdi
	callq	_emac_mac_rx_config
	movq	%rbx, %rdi
	callq	_emac_mac_dma_config
	movq	_EMAC_AXI_MAST_CTRL@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_DATA_BYTE_SWAP@GOTPCREL(%rip), %rcx
	movq	_MAX_BOUND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	_MAX_BTYPE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_EMAC_CLK_GATE_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_RX_UNCPL_INT_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EMAC_MISC_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_EMAC_DEF_RX_BUF_SIZE,4,2       ## @EMAC_DEF_RX_BUF_SIZE
	.comm	_EMAC_MAX_FRAM_LEN_CTRL,8,3     ## @EMAC_MAX_FRAM_LEN_CTRL
	.comm	_EMAC_AXI_MAST_CTRL,8,3         ## @EMAC_AXI_MAST_CTRL
	.comm	_DATA_BYTE_SWAP,4,2             ## @DATA_BYTE_SWAP
	.comm	_MAX_BOUND,4,2                  ## @MAX_BOUND
	.comm	_MAX_BTYPE,4,2                  ## @MAX_BTYPE
	.comm	_EMAC_CLK_GATE_CTRL,8,3         ## @EMAC_CLK_GATE_CTRL
	.comm	_RX_UNCPL_INT_EN,4,2            ## @RX_UNCPL_INT_EN
	.comm	_EMAC_MISC_CTRL,8,3             ## @EMAC_MISC_CTRL
	.no_dead_strip	_emac_mac_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emac_mac_config
_emac_mac_config:                       ; @emac_mac_config
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldr	w1, [x20, #4]
	bl	_emac_set_mac_address
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _EMAC_DEF_RX_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EMAC_DEF_RX_BUF_SIZE@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ETH_HLEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ETH_HLEN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
Lloh5:
	adrp	x21, _ETH_FCS_LEN@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh7:
	adrp	x23, _VLAN_HLEN@GOTPAGE
Lloh8:
	ldr	x23, [x23, _VLAN_HLEN@GOTPAGEOFF]
	cmp	w8, w0
	b.ls	LBB0_2
; %bb.1:
	ldr	w9, [x22]
	ldr	w10, [x21]
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x23]
	add	w0, w8, w9
	mov	w1, #8
	bl	_ALIGN
LBB0_2:
	str	w0, [x19]
	mov	x0, x19
	bl	_emac_mac_dma_rings_config
	ldr	w8, [x20]
	ldr	w9, [x22]
	ldr	w10, [x23]
	add	w8, w9, w8
	add	w8, w8, w10
	ldr	w9, [x21]
	add	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh9:
	adrp	x9, _EMAC_MAX_FRAM_LEN_CTRL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EMAC_MAX_FRAM_LEN_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_emac_mac_tx_config
	mov	x0, x19
	bl	_emac_mac_rx_config
	mov	x0, x19
	bl	_emac_mac_dma_config
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x20, _EMAC_AXI_MAST_CTRL@GOTPAGE
Lloh13:
	ldr	x20, [x20, _EMAC_AXI_MAST_CTRL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh14:
	adrp	x8, _DATA_BYTE_SWAP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DATA_BYTE_SWAP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _MAX_BOUND@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MAX_BOUND@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh20:
	adrp	x9, _MAX_BTYPE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAX_BTYPE@GOTPAGEOFF]
	bic	w8, w0, w8
Lloh22:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _EMAC_CLK_GATE_CTRL@GOTPAGE
Lloh24:
	ldr	x9, [x9, _EMAC_CLK_GATE_CTRL@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh26:
	adrp	x8, _RX_UNCPL_INT_EN@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_UNCPL_INT_EN@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh29:
	adrp	x9, _EMAC_MISC_CTRL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _EMAC_MISC_CTRL@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_EMAC_DEF_RX_BUF_SIZE,4,2       ; @EMAC_DEF_RX_BUF_SIZE
	.comm	_EMAC_MAX_FRAM_LEN_CTRL,8,3     ; @EMAC_MAX_FRAM_LEN_CTRL
	.comm	_EMAC_AXI_MAST_CTRL,8,3         ; @EMAC_AXI_MAST_CTRL
	.comm	_DATA_BYTE_SWAP,4,2             ; @DATA_BYTE_SWAP
	.comm	_MAX_BOUND,4,2                  ; @MAX_BOUND
	.comm	_MAX_BTYPE,4,2                  ; @MAX_BTYPE
	.comm	_EMAC_CLK_GATE_CTRL,8,3         ; @EMAC_CLK_GATE_CTRL
	.comm	_RX_UNCPL_INT_EN,4,2            ; @RX_UNCPL_INT_EN
	.comm	_EMAC_MISC_CTRL,8,3             ; @EMAC_MISC_CTRL
	.no_dead_strip	_emac_mac_config
.subsections_via_symbols
