	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_get_regs
_pch_gbe_get_regs:                      ## @pch_gbe_get_regs
	.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	%rdx, %r14
	movq	%rsi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	8(%rax), %rax
	movl	8(%rax), %ecx
	shll	$16, %ecx
	orl	(%rax), %ecx
	orl	$16777216, %ecx                 ## imm = 0x1000000
	movl	%ecx, (%rbx)
	movq	_PCH_GBE_MAC_REGS_LEN@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	addq	%rbx, %rdi
	callq	_ioread32
	movl	%eax, (%r14,%rbx)
	incq	%r13
	addq	$4, %rbx
	cmpq	(%r12), %r13
	jl	LBB0_2
## %bb.3:
	addq	%rbx, %r14
LBB0_4:
	movq	_PCH_GBE_PHY_REGS_LEN@GOTPCREL(%rip), %r13
	cmpq	$0, (%r13)
	jle	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_pch_gbe_phy_read_reg_miic
	movl	-48(%rbp), %eax
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	cmpq	(%r13), %rbx
	jl	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCH_GBE_MAC_REGS_LEN,8,3       ## @PCH_GBE_MAC_REGS_LEN
	.comm	_PCH_GBE_PHY_REGS_LEN,8,3       ## @PCH_GBE_PHY_REGS_LEN
	.no_dead_strip	_pch_gbe_get_regs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_get_regs
_pch_gbe_get_regs:                      ; @pch_gbe_get_regs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x21, x1
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	w9, [x8, #8]
	ldr	w8, [x8]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, #0x1000000
	str	w8, [x21]
Lloh0:
	adrp	x21, _PCH_GBE_MAC_REGS_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PCH_GBE_MAC_REGS_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22
	bl	_ioread32
	str	w0, [x19, x22]
	add	x23, x23, #1
	ldr	x8, [x21]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_2
; %bb.3:
	add	x19, x19, x22
LBB0_4:
Lloh2:
	adrp	x22, _PCH_GBE_PHY_REGS_LEN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _PCH_GBE_PHY_REGS_LEN@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_pch_gbe_phy_read_reg_miic
	ldr	x8, [sp, #8]
	str	w8, [x19, x21, lsl #2]
	add	x21, x21, #1
	ldr	x8, [x22]
	cmp	x21, x8
	b.lt	LBB0_6
LBB0_7:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_PCH_GBE_MAC_REGS_LEN,8,3       ; @PCH_GBE_MAC_REGS_LEN
	.comm	_PCH_GBE_PHY_REGS_LEN,8,3       ; @PCH_GBE_PHY_REGS_LEN
	.no_dead_strip	_pch_gbe_get_regs
.subsections_via_symbols
