	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	cmpq	$0, 16(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_32:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r15
	movq	%rax, %r13
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rbx), %esi
	movq	_E1000_MIN_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_E1000_MAX_RXD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	movq	_REQ_RX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, %r12
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_E1000_MIN_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_E1000_MAX_TXD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_t
	movq	_REQ_TX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	(%r15), %rax
	movq	%r12, %rax
	jne	LBB0_5
## %bb.4:
	xorl	%r12d, %r12d
	cmpq	8(%r13), %rax
	je	LBB0_32
LBB0_5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	addq	$16, %r15
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1000, %edi                     ## imm = 0x3E8
	movl	$2000, %esi                     ## imm = 0x7D0
	callq	_usleep_range
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	40(%rbx), %edi
	callq	_netif_running
	testl	%eax, %eax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_9
## %bb.10:
	movq	(%rbx), %rax
	movq	8(%rbx), %r13
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %r12
	jne	LBB0_22
## %bb.11:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_9:
	movq	32(%rbx), %rax
	movq	%r12, (%rax)
	movq	24(%rbx), %rax
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, (%rax)
	movq	%r12, (%rbx)
	movq	%r13, 8(%rbx)
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_22:
	movl	$8, %edi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_23
LBB0_12:
	cmpq	%r13, -56(%rbp)                 ## 8-byte Folded Reload
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jne	LBB0_24
## %bb.13:
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_14
LBB0_24:
	movl	$8, %edi
	callq	_vmalloc
	movq	%rax, %rcx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_25
LBB0_14:
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_pm_runtime_get_sync
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_e1000e_down
	cmpq	-80(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_16
## %bb.15:
	movq	%rbx, %r13
	movq	32(%rbx), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, (%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_setup_tx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_29
LBB0_16:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r13, %rcx
	je	LBB0_18
## %bb.17:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rsi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_e1000e_setup_rx_resources
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, %eax
	je	LBB0_18
## %bb.26:
	movl	%eax, %r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_28
## %bb.27:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_e1000e_free_tx_resources
	jmp	LBB0_28
LBB0_18:
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	cmpq	-80(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	32(%r12), %rdi
	callq	_e1000e_free_tx_resources
	movq	32(%r12), %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%r12)
LBB0_20:
	xorl	%r12d, %r12d
	cmpq	%r13, %rcx
	jne	LBB0_21
LBB0_28:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_23:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_30
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_30
LBB0_21:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	24(%r13), %rdi
	movq	%rcx, %rbx
	callq	_e1000e_free_rx_resources
	movq	24(%r13), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	$8, %edx
	callq	_memcpy
	movq	%rbx, 8(%r13)
LBB0_29:
	movq	%r13, %rdi
	callq	_e1000e_up
	movl	(%r14), %edi
	callq	_pm_runtime_put_sync
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_30:
	callq	_vfree
	movq	%rbx, %rdi
	callq	_vfree
LBB0_31:
	movq	___E1000_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_clear_bit
	jmp	LBB0_32
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_u32,4,2                        ## @u32
	.comm	_E1000_MIN_RXD,4,2              ## @E1000_MIN_RXD
	.comm	_E1000_MAX_RXD,4,2              ## @E1000_MAX_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_E1000_MIN_TXD,4,2              ## @E1000_MIN_TXD
	.comm	_E1000_MAX_TXD,4,2              ## @E1000_MAX_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_TX_DESCRIPTOR_MULTIPLE
	.comm	___E1000_RESETTING,4,2          ## @__E1000_RESETTING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #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, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	mov	x20, x0
Lloh3:
	adrp	x23, _u32@GOTPAGE
Lloh4:
	ldr	x23, [x23, _u32@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w1, [x21, #4]
Lloh5:
	adrp	x8, _E1000_MIN_RXD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _E1000_MIN_RXD@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _E1000_MAX_RXD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _E1000_MAX_RXD@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	bl	_clamp_t
Lloh11:
	adrp	x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x22, x0
	ldr	w0, [x23]
	ldr	w1, [x21]
Lloh14:
	adrp	x8, _E1000_MIN_TXD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _E1000_MIN_TXD@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _E1000_MAX_TXD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E1000_MAX_TXD@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	bl	_clamp_t
Lloh20:
	adrp	x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x24, x0
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x20, #8]
	cmp	x22, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w26, #0
	b	LBB0_3
LBB0_7:
	add	x21, x20, #16
Lloh23:
	adrp	x27, ___E1000_RESETTING@GOTPAGE
Lloh24:
	ldr	x27, [x27, ___E1000_RESETTING@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_and_set_bit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1000
	mov	w1, #2000
	bl	_usleep_range
	b	LBB0_8
LBB0_10:
	ldr	w0, [x20, #40]
	bl	_netif_running
	cbz	w0, LBB0_13
; %bb.11:
	ldp	x25, x28, [x20]
	cmp	x24, x25
	b.ne	LBB0_14
; %bb.12:
	mov	x23, #0
	b	LBB0_15
LBB0_13:
	mov	w26, #0
	ldp	x9, x8, [x20, #24]
	str	x24, [x8]
	str	x22, [x9]
	stp	x24, x22, [x20]
	b	LBB0_32
LBB0_14:
	mov	w0, #8
	bl	_vmalloc
	mov	x23, x0
	cbz	x0, LBB0_24
LBB0_15:
	cmp	x22, x28
	b.ne	LBB0_17
; %bb.16:
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_18
LBB0_17:
	mov	w0, #8
	bl	_vmalloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cbz	x0, LBB0_24
LBB0_18:
	ldr	w0, [x19]
	bl	_pm_runtime_get_sync
	mov	x0, x20
	mov	w1, #1
	bl	_e1000e_down
	cmp	x24, x25
	b.eq	LBB0_20
; %bb.19:
	ldr	x1, [x20, #32]
	mov	x0, x23
	mov	w2, #8
	bl	_memcpy
	str	x24, [x23]
	mov	x0, x23
	bl	_e1000e_setup_tx_resources
	mov	x26, x0
	cbnz	w0, LBB0_30
LBB0_20:
	cmp	x22, x28
	b.eq	LBB0_25
; %bb.21:
	ldr	x1, [x20, #24]
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x26
	mov	w2, #8
	bl	_memcpy
	str	x22, [x26]
	mov	x0, x26
	bl	_e1000e_setup_rx_resources
	cbz	w0, LBB0_25
; %bb.22:
	mov	x26, x0
	cmp	x24, x25
	b.eq	LBB0_30
; %bb.23:
	mov	x0, x23
	bl	_e1000e_free_tx_resources
	b	LBB0_30
LBB0_24:
	mov	x19, #0
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_31
LBB0_25:
	cmp	x24, x25
	b.eq	LBB0_27
; %bb.26:
	ldr	x0, [x20, #32]
	bl	_e1000e_free_tx_resources
	ldr	x0, [x20, #32]
	mov	x1, x23
	mov	w2, #8
	bl	_memcpy
	str	x24, [x20]
LBB0_27:
	cmp	x22, x28
	b.ne	LBB0_29
; %bb.28:
	mov	w26, #0
	b	LBB0_30
LBB0_29:
	ldr	x0, [x20, #24]
	bl	_e1000e_free_rx_resources
	ldr	x0, [x20, #24]
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	w2, #8
	bl	_memcpy
	mov	w26, #0
	str	x22, [x20, #8]
LBB0_30:
	mov	x0, x20
	bl	_e1000e_up
	ldr	w0, [x19]
	bl	_pm_runtime_put_sync
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
LBB0_31:
	mov	x0, x23
	bl	_vfree
	mov	x0, x19
	bl	_vfree
LBB0_32:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_clear_bit
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_u32,4,2                        ; @u32
	.comm	_E1000_MIN_RXD,4,2              ; @E1000_MIN_RXD
	.comm	_E1000_MAX_RXD,4,2              ; @E1000_MAX_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_E1000_MIN_TXD,4,2              ; @E1000_MIN_TXD
	.comm	_E1000_MAX_TXD,4,2              ; @E1000_MAX_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_TX_DESCRIPTOR_MULTIPLE
	.comm	___E1000_RESETTING,4,2          ; @__E1000_RESETTING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_e1000_set_ringparam
.subsections_via_symbols
