	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_configure_rx
_pch_gbe_configure_rx:                  ## @pch_gbe_configure_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	16(%rdi), %r14
	movl	8(%rdi), %edi
	movq	(%rbx), %rax
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	leaq	L_.str(%rip), %rsi
	callq	_netdev_dbg
	movq	%r14, %rdi
	callq	_pch_gbe_mac_force_mac_fc
	movq	%r14, %rdi
	callq	_pch_gbe_disable_mac_rx
	movq	16(%rbx), %rdi
	addq	$12, %rdi
	callq	_ioread32
	movq	_PCH_GBE_RX_DMA_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	notq	%rdi
	andq	%rax, %rdi
	movq	16(%rbx), %rsi
	addq	$12, %rsi
	callq	_iowrite32
	movl	8(%rbx), %r14d
	movq	16(%rbx), %rdi
	addq	$16, %rdi
	callq	_ioread32
	movq	%rax, %r15
	movq	16(%rbx), %rdi
	addq	$12, %rdi
	callq	_ioread32
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movq	%r15, %rdx
	movq	%rax, %rcx
	callq	_netdev_dbg
	movq	(%rbx), %rax
	movq	16(%rbx), %rsi
	movq	(%rax), %r14
	movq	8(%rax), %r12
	leaq	-16(%r12), %r15
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_iowrite32
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	movq	%r15, %rdi
	callq	_iowrite32
	leaq	(%r12,%r14), %rdi
	addq	$-16, %rdi
	movq	16(%rbx), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dma adr = 0x%08llx  size = 0x%08x\n"

	.comm	_PCH_GBE_RX_DMA_EN,8,3          ## @PCH_GBE_RX_DMA_EN
L_.str.1:                               ## @.str.1
	.asciz	"MAC_RX_EN reg = 0x%08x  DMA_CTRL reg = 0x%08x\n"

	.no_dead_strip	_pch_gbe_configure_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_configure_rx
_pch_gbe_configure_rx:                  ; @pch_gbe_configure_rx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	add	x20, x0, #16
	ldr	w0, [x0, #8]
	ldr	x8, [x19]
	ldp	x2, x3, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_dbg
	mov	x0, x20
	bl	_pch_gbe_mac_force_mac_fc
	mov	x0, x20
	bl	_pch_gbe_disable_mac_rx
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	bl	_ioread32
Lloh2:
	adrp	x8, _PCH_GBE_RX_DMA_EN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PCH_GBE_RX_DMA_EN@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	bic	x0, x0, x8
	ldr	x8, [x19, #16]
	add	x1, x8, #12
	bl	_iowrite32
	ldr	w20, [x19, #8]
	ldr	x8, [x19, #16]
	add	x0, x8, #16
	bl	_ioread32
	mov	x21, x0
	ldr	x8, [x19, #16]
	add	x0, x8, #12
	bl	_ioread32
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_netdev_dbg
	ldr	x8, [x19]
	ldp	x20, x8, [x8]
	sub	x21, x8, #16
	ldr	x8, [x19, #16]
	add	x1, x8, #8
	mov	x0, x20
	bl	_iowrite32
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	mov	x0, x21
	bl	_iowrite32
	add	x0, x21, x20
	ldr	x1, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dma adr = 0x%08llx  size = 0x%08x\n"

	.comm	_PCH_GBE_RX_DMA_EN,8,3          ; @PCH_GBE_RX_DMA_EN
l_.str.1:                               ; @.str.1
	.asciz	"MAC_RX_EN reg = 0x%08x  DMA_CTRL reg = 0x%08x\n"

	.no_dead_strip	_pch_gbe_configure_rx
.subsections_via_symbols
