	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function xlgmac_enable_rx
LCPI0_0:
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	6                               ## 0x6
LCPI0_1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_5:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_xlgmac_enable_rx:                      ## @xlgmac_enable_rx
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rbx
	xorl	%r12d, %r12d
	movq	_DMA_CH_RCR@GOTPCREL(%rip), %r13
	movq	_DMA_CH_RCR_SR_LEN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movq	%rax, %rdi
	callq	_readl
	movq	_DMA_CH_RCR_SR_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r14), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movl	%eax, %r15d
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_XLGMAC_DMA_REG
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_writel
	incl	%r12d
	addq	$4, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	(%rax), %r12d
	jb	LBB0_2
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	xorl	%ecx, %ecx
	movl	$0, %edi
	cmpl	$8, %eax
	jb	LBB0_15
## %bb.7:
	movl	%eax, %ecx
	andl	$-8, %ecx
	leal	-8(%rcx), %esi
	movl	%esi, %edx
	shrl	$3, %edx
	incl	%edx
	testl	%esi, %esi
	je	LBB0_8
## %bb.9:
	movl	%edx, %esi
	andl	$-2, %esi
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	movdqa	LCPI0_2(%rip), %xmm8            ## xmm8 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_4(%rip), %xmm5            ## xmm5 = [16,16,16,16]
	movdqa	LCPI0_5(%rip), %xmm9            ## xmm9 = [24,24,24,24]
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm3
	paddd	%xmm1, %xmm3
	movdqa	%xmm3, %xmm6
	paddd	%xmm8, %xmm6
	movdqa	%xmm3, %xmm7
	pslld	$23, %xmm7
	paddd	%xmm4, %xmm7
	cvttps2dq	%xmm7, %xmm7
	paddd	%xmm7, %xmm7
	por	%xmm0, %xmm7
	pslld	$23, %xmm6
	paddd	%xmm4, %xmm6
	cvttps2dq	%xmm6, %xmm6
	paddd	%xmm6, %xmm6
	por	%xmm2, %xmm6
	movdqa	%xmm3, %xmm0
	paddd	%xmm5, %xmm0
	paddd	%xmm9, %xmm3
	pslld	$23, %xmm0
	paddd	%xmm4, %xmm0
	cvttps2dq	%xmm0, %xmm0
	paddd	%xmm0, %xmm0
	por	%xmm7, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm2
	paddd	%xmm2, %xmm2
	por	%xmm6, %xmm2
	paddd	%xmm5, %xmm1
	addl	$-2, %esi
	jne	LBB0_10
## %bb.11:
	paddd	%xmm1, %xmm1
	testb	$1, %dl
	je	LBB0_14
LBB0_13:
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [8,8,8,8]
	paddd	%xmm1, %xmm3
	pslld	$23, %xmm1
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm1
	cvttps2dq	%xmm1, %xmm1
	paddd	%xmm1, %xmm1
	por	%xmm1, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm1
	paddd	%xmm1, %xmm1
	por	%xmm1, %xmm2
LBB0_14:
	por	%xmm2, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpl	%ecx, %eax
	je	LBB0_17
LBB0_15:
	subl	%ecx, %eax
	addl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	$2, %edx
	shll	%cl, %edx
	orl	%edx, %edi
	addl	$2, %ecx
	decl	%eax
	jne	LBB0_16
	jmp	LBB0_17
LBB0_5:
	xorl	%edi, %edi
LBB0_17:
	movq	_MAC_RQC0R@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	8(%rbx), %rsi
	callq	_writel
	movq	_MAC_RCR@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MAC_RCR_DCRCC_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RCR_DCRCC_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_RCR_CST_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RCR_CST_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_RCR_ACS_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RCR_ACS_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	_MAC_RCR_RE_POS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_MAC_RCR_RE_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movl	$1, %ecx
	callq	_XLGMAC_SET_REG_BITS
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
LBB0_8:
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,2,4,6]
	pxor	%xmm2, %xmm2
	testb	$1, %dl
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_CH_RCR,4,2                 ## @DMA_CH_RCR
	.comm	_DMA_CH_RCR_SR_POS,4,2          ## @DMA_CH_RCR_SR_POS
	.comm	_DMA_CH_RCR_SR_LEN,4,2          ## @DMA_CH_RCR_SR_LEN
	.comm	_MAC_RQC0R,8,3                  ## @MAC_RQC0R
	.comm	_MAC_RCR,8,3                    ## @MAC_RCR
	.comm	_MAC_RCR_DCRCC_POS,4,2          ## @MAC_RCR_DCRCC_POS
	.comm	_MAC_RCR_DCRCC_LEN,4,2          ## @MAC_RCR_DCRCC_LEN
	.comm	_MAC_RCR_CST_POS,4,2            ## @MAC_RCR_CST_POS
	.comm	_MAC_RCR_CST_LEN,4,2            ## @MAC_RCR_CST_LEN
	.comm	_MAC_RCR_ACS_POS,4,2            ## @MAC_RCR_ACS_POS
	.comm	_MAC_RCR_ACS_LEN,4,2            ## @MAC_RCR_ACS_LEN
	.comm	_MAC_RCR_RE_POS,4,2             ## @MAC_RCR_RE_POS
	.comm	_MAC_RCR_RE_LEN,4,2             ## @MAC_RCR_RE_LEN
	.no_dead_strip	_xlgmac_enable_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function xlgmac_enable_rx
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_xlgmac_enable_rx:                      ; @xlgmac_enable_rx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	w22, #0
	ldr	x20, [x19, #16]
Lloh0:
	adrp	x23, _DMA_CH_RCR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DMA_CH_RCR@GOTPAGEOFF]
Lloh2:
	adrp	x24, _DMA_CH_RCR_SR_POS@GOTPAGE
Lloh3:
	ldr	x24, [x24, _DMA_CH_RCR_SR_POS@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_CH_RCR_SR_LEN@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_CH_RCR_SR_LEN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	bl	_readl
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
	mov	x21, x0
	ldr	w1, [x23]
	mov	x0, x20
	bl	_XLGMAC_DMA_REG
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	add	w22, w22, #1
	add	x20, x20, #4
	ldr	w8, [x19]
	cmp	w22, w8
	b.lo	LBB0_2
LBB0_4:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
; %bb.5:
	cmp	w8, #16
	b.hs	LBB0_8
; %bb.6:
	mov	w9, #0
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	mov	w0, #0
	b	LBB0_13
LBB0_8:
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #8
Lloh6:
	adrp	x9, lCPI0_0@PAGE
Lloh7:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	and	w9, w8, #0xfffffff0
	movi.4s	v3, #16
	movi.4s	v4, #24
	movi.4s	v5, #2
	mov	x10, x9
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	shl.4s	v17, v2, #1
	add.4s	v18, v17, v1
	add.4s	v19, v17, v3
	add.4s	v20, v17, v4
	ushl.4s	v17, v5, v17
	ushl.4s	v18, v5, v18
	ushl.4s	v19, v5, v19
	ushl.4s	v20, v5, v20
	orr.16b	v0, v17, v0
	orr.16b	v6, v18, v6
	orr.16b	v7, v19, v7
	orr.16b	v16, v20, v16
	add.4s	v2, v2, v3
	subs	w10, w10, #16
	b.ne	LBB0_9
; %bb.10:
	orr.16b	v0, v6, v0
	orr.16b	v0, v7, v0
	orr.16b	v0, v16, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w10, s0
	mov.s	w11, v0[1]
	orr	w0, w10, w11
	cmp	w8, w9
	b.eq	LBB0_13
LBB0_11:
	sub	w8, w8, w9
	lsl	w9, w9, #1
	mov	w10, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	lsl	w11, w10, w9
	orr	w0, w11, w0
	add	w9, w9, #2
	subs	w8, w8, #1
	b.ne	LBB0_12
LBB0_13:
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _MAC_RQC0R@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAC_RQC0R@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x20, _MAC_RCR@GOTPAGE
Lloh12:
	ldr	x20, [x20, _MAC_RCR@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh13:
	adrp	x8, _MAC_RCR_DCRCC_POS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MAC_RCR_DCRCC_POS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _MAC_RCR_DCRCC_LEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MAC_RCR_DCRCC_LEN@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
Lloh19:
	adrp	x8, _MAC_RCR_CST_POS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAC_RCR_CST_POS@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MAC_RCR_CST_LEN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MAC_RCR_CST_LEN@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
Lloh25:
	adrp	x8, _MAC_RCR_ACS_POS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MAC_RCR_ACS_POS@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _MAC_RCR_ACS_LEN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MAC_RCR_ACS_LEN@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
Lloh31:
	adrp	x8, _MAC_RCR_RE_POS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MAC_RCR_RE_POS@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
Lloh34:
	adrp	x8, _MAC_RCR_RE_LEN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MAC_RCR_RE_LEN@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_XLGMAC_SET_REG_BITS
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdr	Lloh6, Lloh7
	.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 AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_CH_RCR,4,2                 ; @DMA_CH_RCR
	.comm	_DMA_CH_RCR_SR_POS,4,2          ; @DMA_CH_RCR_SR_POS
	.comm	_DMA_CH_RCR_SR_LEN,4,2          ; @DMA_CH_RCR_SR_LEN
	.comm	_MAC_RQC0R,8,3                  ; @MAC_RQC0R
	.comm	_MAC_RCR,8,3                    ; @MAC_RCR
	.comm	_MAC_RCR_DCRCC_POS,4,2          ; @MAC_RCR_DCRCC_POS
	.comm	_MAC_RCR_DCRCC_LEN,4,2          ; @MAC_RCR_DCRCC_LEN
	.comm	_MAC_RCR_CST_POS,4,2            ; @MAC_RCR_CST_POS
	.comm	_MAC_RCR_CST_LEN,4,2            ; @MAC_RCR_CST_LEN
	.comm	_MAC_RCR_ACS_POS,4,2            ; @MAC_RCR_ACS_POS
	.comm	_MAC_RCR_ACS_LEN,4,2            ; @MAC_RCR_ACS_LEN
	.comm	_MAC_RCR_RE_POS,4,2             ; @MAC_RCR_RE_POS
	.comm	_MAC_RCR_RE_LEN,4,2             ; @MAC_RCR_RE_LEN
	.no_dead_strip	_xlgmac_enable_rx
.subsections_via_symbols
