	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_ringparam
_e1000_set_ringparam:                   ## @e1000_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	callq	_netdev_priv
	cmpq	$0, 16(%r12)
	jne	LBB0_47
## %bb.1:
	cmpq	$0, 8(%r12)
	je	LBB0_2
LBB0_47:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_46:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rax, %r15
	movq	32(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	addq	$8, %r13
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_5:
	movl	12(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_e1000_down
LBB0_7:
	movq	16(%r15), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	movq	24(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rax, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	movl	(%r15), %edx
	movl	$8, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_41
## %bb.10:
	movq	%rax, %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, 16(%rax)
	movq	%r15, 24(%rax)
	movl	4(%r12), %edi
	movq	_E1000_MIN_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movq	%rax, (%r15)
	movq	_e1000_82544@GOTPCREL(%rip), %r14
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%r14), %rcx
	jge	LBB0_11
## %bb.12:
	movq	_E1000_MAX_RXD@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_11:
	movq	_E1000_MAX_82544_RXD@GOTPCREL(%rip), %rcx
LBB0_13:
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, (%r15)
	movq	_REQ_RX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, (%r15)
	movl	(%r12), %edi
	movq	_E1000_MIN_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_max
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%r14), %rcx
	jge	LBB0_14
## %bb.15:
	movq	_E1000_MAX_TXD@GOTPCREL(%rip), %rcx
	jmp	LBB0_16
LBB0_14:
	movq	_E1000_MAX_82544_TXD@GOTPCREL(%rip), %rcx
LBB0_16:
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, (%rbx)
	movq	_REQ_TX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, (%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %esi
	testl	%esi, %esi
	jle	LBB0_25
## %bb.17:
	movq	%rax, (%rbx)
	cmpl	$1, %esi
	je	LBB0_25
## %bb.18:
	leaq	-1(%rsi), %rcx
	addq	$-2, %rsi
	movl	%ecx, %eax
	andl	$3, %eax
	movl	$1, %edx
	cmpq	$3, %rsi
	jb	LBB0_22
## %bb.19:
	andq	$-4, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%rsi, 8(%rbx,%rdx,8)
	movq	%rsi, 16(%rbx,%rdx,8)
	movq	(%rbx), %rsi
	movq	%rsi, 24(%rbx,%rdx,8)
	movq	(%rbx), %rsi
	movq	%rsi, 32(%rbx,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_20
## %bb.21:
	incq	%rdx
LBB0_22:
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	leaq	(%rbx,%rdx,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_24
LBB0_25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_33
## %bb.26:
	leaq	-1(%rcx), %rdx
	movl	%ecx, %eax
	andl	$3, %eax
	cmpq	$3, %rdx
	jae	LBB0_28
## %bb.27:
	xorl	%edx, %edx
	jmp	LBB0_30
LBB0_28:
	andl	$-4, %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%rsi, (%r15,%rdx,8)
	movq	(%r15), %rsi
	movq	%rsi, 8(%r15,%rdx,8)
	movq	(%r15), %rsi
	movq	%rsi, 16(%r15,%rdx,8)
	movq	(%r15), %rsi
	movq	%rsi, 24(%r15,%rdx,8)
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_29
LBB0_30:
	testq	%rax, %rax
	je	LBB0_33
## %bb.31:
	leaq	(%r15,%rdx,8), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rsi
	movq	%rsi, (%rcx,%rdx,8)
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_32
LBB0_33:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_34
## %bb.35:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_e1000_setup_all_rx_resources
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_40
## %bb.36:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_e1000_setup_all_tx_resources
	testl	%eax, %eax
	je	LBB0_37
## %bb.39:
	movl	%eax, %r14d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_e1000_free_all_rx_resources
LBB0_40:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 24(%rcx)
	movq	%r12, 16(%rcx)
	movq	%r15, %rdi
	callq	_kfree
LBB0_41:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_kfree
LBB0_42:
	movl	12(%r15), %edi
	callq	_netif_running
	testq	%rax, %rax
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rbx
	je	LBB0_44
## %bb.43:
	movq	%r15, %rdi
	callq	_e1000_up
LBB0_44:
	movl	(%rbx), %edi
LBB0_45:
	movq	%r13, %rsi
	callq	_clear_bit
	jmp	LBB0_46
LBB0_34:
	xorl	%r14d, %r14d
	jmp	LBB0_38
LBB0_37:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%rax, 24(%r14)
	movq	%r12, 16(%r14)
	movq	%r14, %rdi
	callq	_e1000_free_all_rx_resources
	movq	%r14, %rdi
	callq	_e1000_free_all_tx_resources
	movq	%r15, 24(%r14)
	movq	%rbx, 16(%r14)
	movq	%r14, %rdi
	callq	_e1000_up
	movl	%eax, %r14d
LBB0_38:
	movq	%r12, %rdi
	callq	_kfree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_45
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	___E1000_RESETTING,4,2          ## @__E1000_RESETTING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_E1000_MIN_RXD,8,3              ## @E1000_MIN_RXD
	.comm	_e1000_82544,8,3                ## @e1000_82544
	.comm	_E1000_MAX_RXD,8,3              ## @E1000_MAX_RXD
	.comm	_E1000_MAX_82544_RXD,8,3        ## @E1000_MAX_82544_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_E1000_MIN_TXD,8,3              ## @E1000_MIN_TXD
	.comm	_E1000_MAX_TXD,8,3              ## @E1000_MAX_TXD
	.comm	_E1000_MAX_82544_TXD,8,3        ## @E1000_MAX_82544_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_TX_DESCRIPTOR_MULTIPLE
	.no_dead_strip	_e1000_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_ringparam
_e1000_set_ringparam:                   ; @e1000_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x1
	bl	_netdev_priv
	ldr	x8, [x25, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_3:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x20, x0
	ldr	x28, [x0, #32]
	add	x19, x0, #8
Lloh3:
	adrp	x27, ___E1000_RESETTING@GOTPAGE
Lloh4:
	ldr	x27, [x27, ___E1000_RESETTING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_5
LBB0_7:
	ldr	w0, [x20, #12]
	bl	_netif_running
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_e1000_down
LBB0_9:
	ldp	x22, x21, [x20, #16]
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w26, w8
	ldr	w0, [x20]
Lloh8:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_24
; %bb.10:
	mov	x23, x0
	ldr	w0, [x20, #4]
	ldr	w2, [x24]
	mov	w1, #8
	bl	_kcalloc
	cbz	x0, LBB0_23
; %bb.11:
	mov	x24, x0
	stp	x23, x0, [x20, #16]
	ldr	w0, [x25, #4]
Lloh10:
	adrp	x8, _E1000_MIN_RXD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _E1000_MIN_RXD@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_max
	str	x0, [x24]
Lloh13:
	adrp	x26, _e1000_82544@GOTPAGE
Lloh14:
	ldr	x26, [x26, _e1000_82544@GOTPAGEOFF]
Lloh15:
	adrp	x8, _E1000_MAX_RXD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E1000_MAX_RXD@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh17:
	adrp	x10, _E1000_MAX_82544_RXD@GOTPAGE
Lloh18:
	ldr	x10, [x10, _E1000_MAX_82544_RXD@GOTPAGEOFF]
	cmp	x28, x9
	csel	x8, x8, x10, lt
	ldr	w1, [x8]
	bl	_min
	str	x0, [x24]
Lloh19:
	adrp	x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x24]
	ldr	w0, [x25]
Lloh22:
	adrp	x8, _E1000_MIN_TXD@GOTPAGE
Lloh23:
	ldr	x8, [x8, _E1000_MIN_TXD@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_max
	str	x0, [x23]
Lloh25:
	adrp	x8, _E1000_MAX_TXD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _E1000_MAX_TXD@GOTPAGEOFF]
	ldr	x9, [x26]
Lloh27:
	adrp	x10, _E1000_MAX_82544_TXD@GOTPAGE
Lloh28:
	ldr	x10, [x10, _E1000_MAX_82544_TXD@GOTPAGEOFF]
	cmp	x28, x9
	csel	x8, x8, x10, lt
	ldr	w1, [x8]
	bl	_min
	str	x0, [x23]
Lloh29:
	adrp	x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x23]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.12:
	str	x0, [x23]
	cmp	w8, #1
	b.eq	LBB0_15
; %bb.13:
	sub	x8, x8, #1
	add	x9, x23, #8
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_14
LBB0_15:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:
	mov	x9, x24
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x24]
	str	x10, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_17
LBB0_18:
	ldr	w0, [x20, #12]
	bl	_netif_running
	cbz	x0, LBB0_26
; %bb.19:
	mov	x0, x20
	bl	_e1000_setup_all_rx_resources
	mov	x26, x0
	cbnz	w0, LBB0_22
; %bb.20:
	mov	x0, x20
	bl	_e1000_setup_all_tx_resources
	cbz	w0, LBB0_27
; %bb.21:
	mov	x26, x0
	mov	x0, x20
	bl	_e1000_free_all_rx_resources
LBB0_22:
	stp	x22, x21, [x20, #16]
	mov	x0, x24
	bl	_kfree
LBB0_23:
	mov	x0, x23
	bl	_kfree
LBB0_24:
	ldr	w0, [x20, #12]
	bl	_netif_running
	cbz	x0, LBB0_29
; %bb.25:
	mov	x0, x20
	bl	_e1000_up
	b	LBB0_29
LBB0_26:
	mov	w26, #0
	b	LBB0_28
LBB0_27:
	stp	x22, x21, [x20, #16]
	mov	x0, x20
	bl	_e1000_free_all_rx_resources
	mov	x0, x20
	bl	_e1000_free_all_tx_resources
	stp	x23, x24, [x20, #16]
	mov	x0, x20
	bl	_e1000_up
	mov	x26, x0
LBB0_28:
	mov	x0, x22
	bl	_kfree
	mov	x0, x21
	bl	_kfree
LBB0_29:
	ldr	w0, [x27]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	___E1000_RESETTING,4,2          ; @__E1000_RESETTING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_E1000_MIN_RXD,8,3              ; @E1000_MIN_RXD
	.comm	_e1000_82544,8,3                ; @e1000_82544
	.comm	_E1000_MAX_RXD,8,3              ; @E1000_MAX_RXD
	.comm	_E1000_MAX_82544_RXD,8,3        ; @E1000_MAX_82544_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_E1000_MIN_TXD,8,3              ; @E1000_MIN_TXD
	.comm	_E1000_MAX_TXD,8,3              ; @E1000_MAX_TXD
	.comm	_E1000_MAX_82544_TXD,8,3        ; @E1000_MAX_82544_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_TX_DESCRIPTOR_MULTIPLE
	.no_dead_strip	_e1000_set_ringparam
.subsections_via_symbols
