	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pch_gbe_set_ringparam
_pch_gbe_set_ringparam:                 ## @pch_gbe_set_ringparam
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_netdev_priv
	cmpq	$0, 16(%r15)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r15)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r12
	movl	(%rax), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_pch_gbe_down
LBB0_5:
	movq	8(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %r13
	movq	%r14, 8(%r12)
	movq	%rax, 16(%r12)
	movl	4(%r15), %edi
	movq	_PCH_GBE_MIN_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PCH_GBE_MAX_RXD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	_clamp_val
	movq	%rax, (%r13)
	movq	_PCH_GBE_RX_DESC_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_roundup
	movq	%rax, (%r13)
	movl	(%r15), %edi
	movq	_PCH_GBE_MIN_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	callq	_clamp_val
	movq	%rax, (%r14)
	movq	_PCH_GBE_TX_DESC_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_roundup
	movq	%rax, (%r14)
	movl	(%r12), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_pch_gbe_setup_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movq	8(%r12), %rsi
	movq	%r12, %rdi
	callq	_pch_gbe_setup_tx_resources
	testl	%eax, %eax
	je	LBB0_19
## %bb.13:
	movl	%eax, %ebx
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_pch_gbe_free_rx_resources
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_15
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_kfree
LBB0_16:
	movl	(%r12), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_pch_gbe_up
	jmp	LBB0_18
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_19:
	movq	%r12, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_pch_gbe_free_rx_resources
	movq	%r12, %rdi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_pch_gbe_free_tx_resources
	movq	%rbx, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_kfree
	movq	%r13, 16(%r12)
	movq	%r14, 8(%r12)
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pch_gbe_up                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCH_GBE_MIN_RXD,4,2            ## @PCH_GBE_MIN_RXD
	.comm	_PCH_GBE_MAX_RXD,4,2            ## @PCH_GBE_MAX_RXD
	.comm	_PCH_GBE_RX_DESC_MULTIPLE,4,2   ## @PCH_GBE_RX_DESC_MULTIPLE
	.comm	_PCH_GBE_TX_DESC_MULTIPLE,4,2   ## @PCH_GBE_TX_DESC_MULTIPLE
	.no_dead_strip	_pch_gbe_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pch_gbe_set_ringparam
_pch_gbe_set_ringparam:                 ; @pch_gbe_set_ringparam
	.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	x24, x1
	bl	_netdev_priv
	ldr	x8, [x24, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_3:
	mov	x0, x24
	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
	ret
LBB0_4:
	mov	x19, x0
	ldr	w0, [x0]
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_pch_gbe_down
LBB0_6:
	ldp	x22, x21, [x19, #8]
Lloh3:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_13
; %bb.7:
	mov	x20, x0
	ldr	w1, [x23]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_14
; %bb.8:
	mov	x23, x0
	stp	x20, x0, [x19, #8]
	ldr	w0, [x24, #4]
Lloh5:
	adrp	x25, _PCH_GBE_MIN_RXD@GOTPAGE
Lloh6:
	ldr	x25, [x25, _PCH_GBE_MIN_RXD@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh7:
	adrp	x26, _PCH_GBE_MAX_RXD@GOTPAGE
Lloh8:
	ldr	x26, [x26, _PCH_GBE_MAX_RXD@GOTPAGEOFF]
	ldr	w2, [x26]
	bl	_clamp_val
	str	x0, [x23]
Lloh9:
	adrp	x8, _PCH_GBE_RX_DESC_MULTIPLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCH_GBE_RX_DESC_MULTIPLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_roundup
	str	x0, [x23]
	ldr	w0, [x24]
	ldr	w1, [x25]
	ldr	w2, [x26]
	bl	_clamp_val
	str	x0, [x20]
Lloh12:
	adrp	x8, _PCH_GBE_TX_DESC_MULTIPLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PCH_GBE_TX_DESC_MULTIPLE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_roundup
	str	x0, [x20]
	ldr	w0, [x19]
	bl	_netif_running
	cbz	x0, LBB0_18
; %bb.9:
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_pch_gbe_setup_rx_resources
	mov	x24, x0
	cbnz	w0, LBB0_12
; %bb.10:
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_pch_gbe_setup_tx_resources
	cbz	w0, LBB0_19
; %bb.11:
	mov	x24, x0
	ldr	x1, [x19, #16]
	mov	x0, x19
	bl	_pch_gbe_free_rx_resources
LBB0_12:
	stp	x22, x21, [x19, #8]
	mov	x0, x23
	bl	_kfree
	b	LBB0_15
LBB0_13:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_16
LBB0_14:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w24, w8
LBB0_15:
	mov	x0, x20
	bl	_kfree
LBB0_16:
	ldr	w0, [x19]
	bl	_netif_running
	cbz	x0, LBB0_3
; %bb.17:
	mov	x0, x19
	bl	_pch_gbe_up
	b	LBB0_3
LBB0_18:
	mov	w24, #0
	b	LBB0_3
LBB0_19:
	mov	x0, x19
	mov	x1, x21
	bl	_pch_gbe_free_rx_resources
	mov	x0, x19
	mov	x1, x22
	bl	_pch_gbe_free_tx_resources
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
	stp	x20, x23, [x19, #8]
	mov	x0, x19
	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	_pch_gbe_up
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCH_GBE_MIN_RXD,4,2            ; @PCH_GBE_MIN_RXD
	.comm	_PCH_GBE_MAX_RXD,4,2            ; @PCH_GBE_MAX_RXD
	.comm	_PCH_GBE_RX_DESC_MULTIPLE,4,2   ; @PCH_GBE_RX_DESC_MULTIPLE
	.comm	_PCH_GBE_TX_DESC_MULTIPLE,4,2   ; @PCH_GBE_TX_DESC_MULTIPLE
	.no_dead_strip	_pch_gbe_set_ringparam
.subsections_via_symbols
