	.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, %rbx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	(%rbx), %rdi
	movq	_GFAR_RX_MAX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_8
## %bb.1:
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	8(%rbx), %rdi
	movq	_GFAR_TX_MAX_RING_SIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jg	LBB0_8
## %bb.3:
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.5:
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %r13
	addq	$28, %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	%r14, %rdi
	callq	_gfar_halt
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_gfar_clean_rx_ring
	movq	%r14, %rdi
	callq	_stop_gfar
	movq	_IFF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movdqu	(%rbx), %xmm0
	andl	(%r14), %eax
	movdqu	%xmm0, (%r15)
	pextrq	$1, %xmm0, 16(%r15)
	je	LBB0_11
## %bb.6:
	movq	%r14, %rdi
	callq	_startup_gfar
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_netif_wake_queue
	movl	%ebx, %eax
	jmp	LBB0_9
LBB0_7:
	movl	4(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movdqu	(%rbx), %xmm0
	movdqu	%xmm0, (%r15)
	pextrq	$1, %xmm0, 16(%r15)
LBB0_11:
	xorl	%eax, %eax
	jmp	LBB0_9
	.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	"%s: Ring sizes must be a power of 2\n"

	.comm	_GFAR_TX_MAX_RING_SIZE,8,3      ## @GFAR_TX_MAX_RING_SIZE
	.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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	x0, [x20]
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, [x20, #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:
	ldr	w8, [x19]
Lloh6:
	adrp	x24, _IFF_UP@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IFF_UP@GOTPAGEOFF]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.5:
	add	x22, x21, #24
	mov	x0, x22
	bl	_spin_lock_irqsave
	add	x23, x21, #28
	mov	x0, x23
	bl	_spin_lock
	mov	x0, x19
	bl	_gfar_halt
	mov	x0, x23
	bl	_spin_unlock
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	ldr	x1, [x21]
	mov	x0, x19
	bl	_gfar_clean_rx_ring
	mov	x0, x19
	bl	_stop_gfar
	ldr	w8, [x19]
	ldr	w9, [x24]
	ldp	x10, x11, [x20]
	stp	x10, x11, [x21]
	str	x11, [x21, #16]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.6:
	mov	x0, x19
	bl	_startup_gfar
	mov	x20, x0
	mov	x0, x19
	bl	_netif_wake_queue
	mov	x0, x20
	b	LBB0_9
LBB0_7:
	ldr	w1, [x19, #4]
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_8:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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:
	mov	w0, #0
	ldp	x8, x9, [x20]
	stp	x8, x9, [x21]
	str	x9, [x21, #16]
	b	LBB0_9
LBB0_11:
	mov	w0, #0
	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
	.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	"%s: Ring sizes must be a power of 2\n"

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