	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_sringparam
_gfar_sringparam:                       ## @gfar_sringparam
	.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, %r13
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %r12
	movq	(%r13), %rdi
	movq	_GFAR_RX_MAX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_1
## %bb.2:
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r13), %rdi
	movq	_GFAR_TX_MAX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_1
## %bb.5:
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	leaq	8(%r12), %r14
	movq	_GFAR_RESETTING@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_test_and_set_bit_lock
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_netdev_err
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_31:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_IFF_UP@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	testl	%eax, (%r15)
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	movq	%r8, %rbx
	callq	_stop_gfar
	movq	%rbx, %r8
LBB0_11:
	movl	(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_17
## %bb.12:
	movq	(%r13), %rax
	movq	24(%r12), %rdx
	leaq	-1(%rsi), %rdi
	movl	%esi, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdi
	jae	LBB0_20
## %bb.13:
	xorl	%edi, %edi
	jmp	LBB0_14
LBB0_20:
	andl	$-8, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	8(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	16(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	24(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	32(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	40(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	48(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	56(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	addq	$8, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_21
LBB0_14:
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.15:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movq	%rax, (%rdi)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_16
LBB0_17:
	movl	4(%r12), %esi
	testl	%esi, %esi
	jle	LBB0_27
## %bb.18:
	movq	8(%r13), %rax
	movq	16(%r12), %rdx
	leaq	-1(%rsi), %rdi
	movl	%esi, %ecx
	andl	$7, %ecx
	cmpq	$7, %rdi
	jae	LBB0_22
## %bb.19:
	xorl	%edi, %edi
	jmp	LBB0_24
LBB0_22:
	andl	$-8, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	8(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	16(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	24(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	32(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	40(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	48(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	movq	56(%rdx,%rdi,8), %rbx
	movq	%rax, (%rbx)
	addq	$8, %rdi
	cmpq	%rdi, %rsi
	jne	LBB0_23
LBB0_24:
	testq	%rcx, %rcx
	je	LBB0_27
## %bb.25:
	leaq	(%rdx,%rdi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rdi
	movq	%rax, (%rdi)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_26
LBB0_27:
	movl	(%r8), %eax
	testl	%eax, (%r15)
	je	LBB0_28
## %bb.29:
	movq	%r15, %rdi
	callq	_startup_gfar
	movl	%eax, %ebx
	jmp	LBB0_30
LBB0_28:
	xorl	%ebx, %ebx
LBB0_30:
	movq	_GFAR_RESETTING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit_unlock
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_GFAR_RX_MAX_RING_SIZE,8,3      ## @GFAR_RX_MAX_RING_SIZE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ring sizes must be a power of 2\n"

	.comm	_GFAR_TX_MAX_RING_SIZE,8,3      ## @GFAR_TX_MAX_RING_SIZE
	.comm	_GFAR_RESETTING,4,2             ## @GFAR_RESETTING
	.comm	_IFF_UP,4,2                     ## @IFF_UP
	.no_dead_strip	_gfar_sringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_sringparam
_gfar_sringparam:                       ; @gfar_sringparam
	.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
	mov	x19, x0
	bl	_netdev_priv
	mov	x22, x0
	ldr	x0, [x21]
Lloh0:
	adrp	x8, _GFAR_RX_MAX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFAR_RX_MAX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_8
; %bb.1:
	bl	_is_power_of_2
	cbz	w0, LBB0_7
; %bb.2:
	ldr	x0, [x21, #8]
Lloh3:
	adrp	x8, _GFAR_TX_MAX_RING_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFAR_TX_MAX_RING_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.gt	LBB0_8
; %bb.3:
	bl	_is_power_of_2
	cbz	w0, LBB0_7
; %bb.4:
	add	x20, x22, #8
Lloh6:
	adrp	x23, _GFAR_RESETTING@GOTPAGE
Lloh7:
	ldr	x23, [x23, _GFAR_RESETTING@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	mov	x1, x20
	bl	_test_and_set_bit_lock
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	bl	_cpu_relax
	b	LBB0_5
LBB0_7:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_9:
	mov	x0, x19
	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_10:
	ldr	w8, [x19]
Lloh13:
	adrp	x24, _IFF_UP@GOTPAGE
Lloh14:
	ldr	x24, [x24, _IFF_UP@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x19
	bl	_stop_gfar
LBB0_12:
	ldr	w9, [x22]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.13:
	ldr	x8, [x21]
	ldr	x10, [x22, #24]
	cmp	w9, #4
	b.hs	LBB0_15
; %bb.14:
	mov	x11, #0
	b	LBB0_18
LBB0_15:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #16
	mov	x13, x11
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldp	x14, x15, [x12, #-16]
	ldp	x16, x17, [x12], #32
	str	x8, [x14]
	str	x8, [x15]
	str	x8, [x16]
	str	x8, [x17]
	subs	x13, x13, #4
	b.ne	LBB0_16
; %bb.17:
	cmp	x11, x9
	b.eq	LBB0_20
LBB0_18:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	x8, [x11]
	subs	x9, x9, #1
	b.ne	LBB0_19
LBB0_20:
	ldr	w9, [x22, #4]
	cmp	w9, #1
	b.lt	LBB0_28
; %bb.21:
	ldr	x8, [x21, #8]
	ldr	x10, [x22, #16]
	cmp	w9, #4
	b.hs	LBB0_23
; %bb.22:
	mov	x11, #0
	b	LBB0_26
LBB0_23:
	and	x11, x9, #0xfffffffc
	add	x12, x10, #16
	mov	x13, x11
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	ldp	x14, x15, [x12, #-16]
	ldp	x16, x17, [x12], #32
	str	x8, [x14]
	str	x8, [x15]
	str	x8, [x16]
	str	x8, [x17]
	subs	x13, x13, #4
	b.ne	LBB0_24
; %bb.25:
	cmp	x11, x9
	b.eq	LBB0_28
LBB0_26:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_27:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	str	x8, [x11]
	subs	x9, x9, #1
	b.ne	LBB0_27
LBB0_28:
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_startup_gfar
	mov	x19, x0
	b	LBB0_31
LBB0_30:
	mov	w19, #0
LBB0_31:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_clear_bit_unlock
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_GFAR_RX_MAX_RING_SIZE,8,3      ; @GFAR_RX_MAX_RING_SIZE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ring sizes must be a power of 2\n"

	.comm	_GFAR_TX_MAX_RING_SIZE,8,3      ; @GFAR_TX_MAX_RING_SIZE
	.comm	_GFAR_RESETTING,4,2             ; @GFAR_RESETTING
	.comm	_IFF_UP,4,2                     ; @IFF_UP
	.no_dead_strip	_gfar_sringparam
.subsections_via_symbols
