	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ionic_set_ringparam
_ionic_set_ringparam:                   ## @ionic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	cmpq	$0, 24(%r15)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 16(%r15)
	je	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movq	%rbx, %rdi
	callq	_netdev_info
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %r14
	movq	(%r15), %rdi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movq	8(%r15), %rdi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%r15), %rax
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.8:
	movq	8(%r15), %rcx
	xorl	%eax, %eax
	cmpq	8(%r14), %rcx
	je	LBB0_16
LBB0_9:
	movq	_IONIC_LIF_QUEUE_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_ionic_wait_for_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.12:
	movq	_IONIC_LIF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%r14), %esi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movq	%rbx, %rdi
	callq	_ionic_stop
	movups	(%r15), %xmm0
	movups	%xmm0, (%r14)
	movq	%rbx, %rdi
	callq	_ionic_open
	jmp	LBB0_15
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_3
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_14:
	movups	(%r15), %xmm0
	movups	%xmm0, (%r14)
LBB0_15:
	movl	(%r12), %edi
	movl	16(%r14), %esi
	callq	_clear_bit
	xorl	%eax, %eax
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Changing jumbo or mini descriptors not supported\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Descriptor count must be a power of 2\n"

	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ## @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_IONIC_LIF_UP,4,2               ## @IONIC_LIF_UP
	.no_dead_strip	_ionic_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ionic_set_ringparam
_ionic_set_ringparam:                   ; @ionic_set_ringparam
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_6
LBB0_2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x19
	bl	_netdev_info
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x20, x0
	ldr	x0, [x21]
	bl	_is_power_of_2
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x0, [x21, #8]
	bl	_is_power_of_2
	cbz	w0, LBB0_13
; %bb.8:
	ldr	x8, [x21]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x21, #8]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.eq	LBB0_17
LBB0_10:
Lloh4:
	adrp	x22, _IONIC_LIF_QUEUE_RESET@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IONIC_LIF_QUEUE_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ionic_wait_for_bit
	cbz	w0, LBB0_14
; %bb.11:
Lloh6:
	adrp	x8, _IONIC_LIF_UP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IONIC_LIF_UP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	w1, [x20, #16]
	bl	_test_bit
	cbz	w0, LBB0_15
; %bb.12:
	mov	x0, x19
	bl	_ionic_stop
	ldr	q0, [x21]
	str	q0, [x20]
	mov	x0, x19
	bl	_ionic_open
	b	LBB0_16
LBB0_13:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_14:
Lloh11:
	adrp	x8, _EBUSY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_4
LBB0_15:
	ldr	q0, [x21]
	str	q0, [x20]
LBB0_16:
	ldr	w0, [x22]
	ldr	w1, [x20, #16]
	bl	_clear_bit
LBB0_17:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Changing jumbo or mini descriptors not supported\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Descriptor count must be a power of 2\n"

	.comm	_IONIC_LIF_QUEUE_RESET,4,2      ; @IONIC_LIF_QUEUE_RESET
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_IONIC_LIF_UP,4,2               ; @IONIC_LIF_UP
	.no_dead_strip	_ionic_set_ringparam
.subsections_via_symbols
