	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igbvf_set_ringparam
_igbvf_set_ringparam:                   ## @igbvf_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	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	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%rax, %r13
	movl	4(%rbx), %edi
	movq	_IGBVF_MIN_RXD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_max
	movq	_IGBVF_MAX_RXD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_min
	movq	_REQ_RX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, %r15
	movl	(%rbx), %edi
	movq	_IGBVF_MIN_TXD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_max
	movq	_IGBVF_MAX_TXD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	%rax, %rdi
	callq	_min
	movq	_REQ_TX_DESCRIPTOR_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, %r12
	movq	16(%r13), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.4:
	movq	8(%r13), %rax
	xorl	%ebx, %ebx
	cmpq	(%rax), %r15
	je	LBB0_20
LBB0_5:
	movq	___IGBVF_RESETTING@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	$1, %edi
	callq	_msleep
	jmp	LBB0_7
LBB0_8:
	movl	24(%r13), %edi
	callq	_netif_running
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	$8, %edi
	callq	_vmalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_igbvf_down
	movq	16(%r13), %rsi
	cmpq	(%rsi), %r12
	je	LBB0_15
## %bb.13:
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, (%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_igbvf_setup_tx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:
	movq	16(%r13), %rdi
	callq	_igbvf_free_tx_resources
	movq	16(%r13), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
LBB0_15:
	movq	8(%r13), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpq	(%rsi), %r12
	je	LBB0_18
## %bb.16:
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%r12, (%r15)
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_igbvf_setup_rx_resources
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	8(%r13), %rdi
	callq	_igbvf_free_rx_resources
	movq	8(%r13), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r13, %rdi
	callq	_igbvf_up
	movq	%r15, %rdi
	callq	_vfree
	jmp	LBB0_19
LBB0_9:
	movq	16(%r13), %rax
	movq	%r12, (%rax)
	movq	8(%r13), %rax
	movq	%r15, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	(%r14), %edi
	movq	%r13, %rsi
	callq	_clear_bit
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IGBVF_MIN_RXD,8,3              ## @IGBVF_MIN_RXD
	.comm	_IGBVF_MAX_RXD,8,3              ## @IGBVF_MAX_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_IGBVF_MIN_TXD,8,3              ## @IGBVF_MIN_TXD
	.comm	_IGBVF_MAX_TXD,8,3              ## @IGBVF_MAX_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ## @REQ_TX_DESCRIPTOR_MULTIPLE
	.comm	___IGBVF_RESETTING,4,2          ## @__IGBVF_RESETTING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_igbvf_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igbvf_set_ringparam
_igbvf_set_ringparam:                   ; @igbvf_set_ringparam
	.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	x21, x1
	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	w23, w8
LBB0_3:
	mov	x0, x23
	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_4:
	mov	x19, x0
	ldr	w0, [x21, #4]
Lloh3:
	adrp	x8, _IGBVF_MIN_RXD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IGBVF_MIN_RXD@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_max
Lloh6:
	adrp	x8, _IGBVF_MAX_RXD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IGBVF_MAX_RXD@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x8]
	bl	_min
Lloh9:
	adrp	x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REQ_RX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x20, x0
	ldr	w0, [x21]
Lloh12:
	adrp	x8, _IGBVF_MIN_TXD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IGBVF_MIN_TXD@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	bl	_max
Lloh15:
	adrp	x8, _IGBVF_MAX_TXD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IGBVF_MAX_TXD@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	bl	_min
Lloh18:
	adrp	x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REQ_TX_DESCRIPTOR_MULTIPLE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_ALIGN
	mov	x22, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cmp	x20, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w23, #0
	b	LBB0_3
LBB0_7:
Lloh21:
	adrp	x24, ___IGBVF_RESETTING@GOTPAGE
Lloh22:
	ldr	x24, [x24, ___IGBVF_RESETTING@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	mov	x1, x19
	bl	_test_and_set_bit
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	bl	_msleep
	b	LBB0_8
LBB0_10:
	ldr	w0, [x19, #24]
	bl	_netif_running
	cbz	w0, LBB0_17
; %bb.11:
	mov	w0, #8
	bl	_vmalloc
	cbz	x0, LBB0_18
; %bb.12:
	mov	x21, x0
	mov	x0, x19
	bl	_igbvf_down
	ldr	x1, [x19, #16]
	ldr	x8, [x1]
	cmp	x22, x8
	b.eq	LBB0_15
; %bb.13:
	mov	x0, x21
	mov	w2, #8
	bl	_memcpy
	str	x22, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_igbvf_setup_tx_resources
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.14:
	ldr	x0, [x19, #16]
	bl	_igbvf_free_tx_resources
	ldr	x0, [x19, #16]
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
LBB0_15:
	ldr	x1, [x19, #8]
	ldr	x8, [x1]
	cmp	x20, x8
	b.ne	LBB0_19
; %bb.16:
	mov	w23, #0
	b	LBB0_21
LBB0_17:
	mov	w23, #0
	ldp	x9, x8, [x19, #8]
	str	x22, [x8]
	str	x20, [x9]
	b	LBB0_22
LBB0_18:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_22
LBB0_19:
	mov	x0, x21
	mov	w2, #8
	bl	_memcpy
	str	x20, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_igbvf_setup_rx_resources
	mov	x23, x0
	cbnz	w0, LBB0_21
; %bb.20:
	ldr	x0, [x19, #8]
	bl	_igbvf_free_rx_resources
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	w2, #8
	bl	_memcpy
LBB0_21:
	mov	x0, x19
	bl	_igbvf_up
	mov	x0, x21
	bl	_vfree
LBB0_22:
	ldr	w0, [x24]
	mov	x1, x19
	bl	_clear_bit
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IGBVF_MIN_RXD,8,3              ; @IGBVF_MIN_RXD
	.comm	_IGBVF_MAX_RXD,8,3              ; @IGBVF_MAX_RXD
	.comm	_REQ_RX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_RX_DESCRIPTOR_MULTIPLE
	.comm	_IGBVF_MIN_TXD,8,3              ; @IGBVF_MIN_TXD
	.comm	_IGBVF_MAX_TXD,8,3              ; @IGBVF_MAX_TXD
	.comm	_REQ_TX_DESCRIPTOR_MULTIPLE,4,2 ; @REQ_TX_DESCRIPTOR_MULTIPLE
	.comm	___IGBVF_RESETTING,4,2          ; @__IGBVF_RESETTING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_igbvf_set_ringparam
.subsections_via_symbols
