	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_open
_pch_gbe_open:                          ## @pch_gbe_open
	.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, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %r15
	movl	(%rax), %esi
	movq	%rax, %rdi
	callq	_pch_gbe_setup_tx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.1:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_pch_gbe_setup_rx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	addq	$12, %rbx
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_power_up
	movq	%r15, %rdi
	callq	_pch_gbe_up
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r12d
	cmpl	$0, 8(%r15)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_pch_gbe_phy_power_down
LBB0_6:
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_pch_gbe_free_rx_resources
LBB0_7:
	movl	(%r15), %esi
	movq	%r15, %rdi
	callq	_pch_gbe_free_tx_resources
LBB0_8:
	movq	%r15, %rdi
	callq	_pch_gbe_reset
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_9:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_dbg
	xorl	%r12d, %r12d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Success End\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error End\n"

	.no_dead_strip	_pch_gbe_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_open
_pch_gbe_open:                          ; @pch_gbe_open
	.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
	bl	_netdev_priv
	mov	x20, x0
	mov	x22, x0
	ldr	w1, [x22], #12
	bl	_pch_gbe_setup_tx_resources
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_pch_gbe_setup_rx_resources
	mov	x21, x0
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x22
	bl	_pch_gbe_phy_power_up
	mov	x0, x20
	bl	_pch_gbe_up
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w8, [x20, #8]
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x22
	bl	_pch_gbe_phy_power_down
LBB0_5:
	ldr	w1, [x20, #4]
	mov	x0, x20
	bl	_pch_gbe_free_rx_resources
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x20
	bl	_pch_gbe_free_tx_resources
LBB0_7:
	mov	x0, x20
	bl	_pch_gbe_reset
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_8:
	mov	x0, x21
	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
	ret
LBB0_9:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_dbg
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Success End\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error End\n"

	.no_dead_strip	_pch_gbe_open
.subsections_via_symbols
