	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qcaspi_set_ringparam
_qcaspi_set_ringparam:                  ## @qcaspi_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, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %r12
	callq	_netdev_priv
	cmpq	$0, 24(%rbx)
	jne	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_3
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	callq	*8(%r12)
LBB0_6:
	movq	_u32@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_TX_RING_MIN_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_max_t
	movl	%eax, (%r14)
	movq	_u16@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_TX_RING_MAX_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_min_t
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_netif_running
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	*(%r12)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_u32,4,2                        ## @u32
	.comm	_TX_RING_MIN_LEN,4,2            ## @TX_RING_MIN_LEN
	.comm	_u16,4,2                        ## @u16
	.comm	_TX_RING_MAX_LEN,4,2            ## @TX_RING_MAX_LEN
	.no_dead_strip	_qcaspi_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qcaspi_set_ringparam
_qcaspi_set_ringparam:                  ; @qcaspi_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
	ldr	x22, [x0]
	bl	_netdev_priv
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x20, x0
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x8, [x22, #8]
	mov	x0, x19
	blr	x8
LBB0_7:
Lloh3:
	adrp	x8, _u32@GOTPAGE
Lloh4:
	ldr	x8, [x8, _u32@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x21]
Lloh6:
	adrp	x8, _TX_RING_MIN_LEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_RING_MIN_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	bl	_max_t
	mov	x1, x0
	str	w0, [x20]
Lloh9:
	adrp	x8, _u16@GOTPAGE
Lloh10:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _TX_RING_MAX_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_RING_MAX_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_min_t
	str	w0, [x20]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_4
; %bb.8:
	ldr	x8, [x22]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_u32,4,2                        ; @u32
	.comm	_TX_RING_MIN_LEN,4,2            ; @TX_RING_MIN_LEN
	.comm	_u16,4,2                        ; @u16
	.comm	_TX_RING_MAX_LEN,4,2            ; @TX_RING_MAX_LEN
	.no_dead_strip	_qcaspi_set_ringparam
.subsections_via_symbols
