	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_up                     ## -- Begin function pch_gbe_up
	.p2align	4, 0x90
_pch_gbe_up:                            ## @pch_gbe_up
	.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, %rbx
	movq	(%rdi), %r14
	movq	32(%rdi), %r12
	movq	24(%rdi), %r15
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	16(%rdi), %edi
	callq	_is_valid_ether_addr
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r14, %rdi
	callq	_pch_gbe_set_multi
	movq	%rbx, %rdi
	callq	_pch_gbe_setup_tctl
	movq	%rbx, %rdi
	callq	_pch_gbe_configure_tx
	movq	%rbx, %rdi
	callq	_pch_gbe_setup_rctl
	movq	%rbx, %rdi
	callq	_pch_gbe_configure_rx
	movq	%rbx, %rdi
	callq	_pch_gbe_request_irq
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_1:
	negl	%r13d
	leaq	L_.str(%rip), %rsi
LBB0_2:
	movq	%r14, %rdi
	callq	_netdev_err
LBB0_8:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pch_gbe_alloc_rx_buffers_pool
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r13d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_err
	movq	%rbx, %rdi
	callq	_pch_gbe_free_irq
	jmp	LBB0_8
LBB0_7:
	leaq	16(%rbx), %r13
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pch_gbe_alloc_tx_buffers
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pch_gbe_alloc_rx_buffers
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movq	%r13, %rdi
	callq	_pch_gbe_enable_dma_rx
	movq	%r13, %rdi
	callq	_pch_gbe_enable_mac_rx
	leaq	12(%rbx), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mod_timer
	leaq	8(%rbx), %rdi
	callq	_napi_enable
	movq	%rbx, %rdi
	callq	_pch_gbe_irq_enable
	movq	(%rbx), %rdi
	callq	_netif_start_queue
	xorl	%r13d, %r13d
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error: Invalid MAC address\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error: can't bring device up - irq request failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Error: can't bring device up - alloc rx buffers pool failed\n"

	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pch_gbe_up                     ; -- Begin function pch_gbe_up
	.p2align	2
_pch_gbe_up:                            ; @pch_gbe_up
	.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]
	ldp	x22, x23, [x0, #24]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x21, x0
	ldr	w0, [x21, #16]!
	bl	_is_valid_ether_addr
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_pch_gbe_set_multi
	mov	x0, x19
	bl	_pch_gbe_setup_tctl
	mov	x0, x19
	bl	_pch_gbe_configure_tx
	mov	x0, x19
	bl	_pch_gbe_setup_rctl
	mov	x0, x19
	bl	_pch_gbe_configure_rx
	mov	x0, x19
	bl	_pch_gbe_request_irq
	cbz	w0, LBB0_6
; %bb.2:
	mov	x24, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
	neg	w24, w24
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	mov	x0, x20
	bl	_netdev_err
LBB0_5:
	mov	x0, x24
	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
	ret
LBB0_6:
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_pch_gbe_alloc_rx_buffers_pool
	mov	x24, x0
	cbz	w0, LBB0_8
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_netdev_err
	mov	x0, x19
	bl	_pch_gbe_free_irq
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	mov	x1, x23
	bl	_pch_gbe_alloc_tx_buffers
	ldr	w2, [x22]
	mov	x0, x19
	mov	x1, x22
	bl	_pch_gbe_alloc_rx_buffers
	ldr	w8, [x20]
	str	w8, [x19, #20]
	mov	x0, x21
	bl	_pch_gbe_enable_dma_rx
	mov	x0, x21
	bl	_pch_gbe_enable_mac_rx
	add	x0, x19, #12
Lloh9:
	adrp	x8, _jiffies@GOTPAGE
Lloh10:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_mod_timer
	add	x0, x19, #8
	bl	_napi_enable
	mov	x0, x19
	bl	_pch_gbe_irq_enable
	ldr	x0, [x19]
	bl	_netif_start_queue
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error: Invalid MAC address\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error: can't bring device up - irq request failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Error: can't bring device up - alloc rx buffers pool failed\n"

	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
