	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_set_ringparam
_aq_set_ringparam:                      ## @aq_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, %r13
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_aq_nic_get_cfg
	cmpq	$0, 16(%r13)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r13)
	je	LBB0_4
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%rax, %r15
	movq	24(%rax), %r12
	movq	%r14, %rdi
	callq	_netif_running
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_dev_close
LBB0_6:
	movq	%rbx, %rdi
	callq	_aq_nic_free_vectors
	movl	4(%r13), %edi
	movl	12(%r12), %esi
	callq	_max
	movq	%rax, 16(%r15)
	movl	8(%r12), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, 16(%r15)
	movq	_AQ_HW_RXD_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, 16(%r15)
	movl	(%r13), %edi
	movl	4(%r12), %esi
	callq	_max
	movq	%rax, 8(%r15)
	movl	(%r12), %esi
	movq	%rax, %rdi
	callq	_min
	movq	%rax, 8(%r15)
	movq	_AQ_HW_TXD_MULTIPLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_ALIGN
	movq	%rax, 8(%r15)
	movq	$0, (%rbx)
	cmpq	$0, (%r15)
	je	LBB0_11
## %bb.7:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_aq_vec_alloc
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movl	%eax, (%rdx,%rcx,4)
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rbx), %rsi
	incq	%rsi
	movq	%rsi, (%rbx)
	cmpq	(%r15), %rsi
	jb	LBB0_8
LBB0_11:
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.14:
	movq	%r14, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_open                       ## TAILCALL
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_AQ_HW_RXD_MULTIPLE,4,2         ## @AQ_HW_RXD_MULTIPLE
	.comm	_AQ_HW_TXD_MULTIPLE,4,2         ## @AQ_HW_TXD_MULTIPLE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_aq_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_set_ringparam
_aq_set_ringparam:                      ; @aq_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	x23, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	bl	_aq_nic_get_cfg
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	mov	x21, x0
	ldr	x24, [x0, #24]
	mov	x0, x19
	bl	_netif_running
	mov	x22, x0
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_dev_close
LBB0_7:
	mov	x0, x20
	bl	_aq_nic_free_vectors
	ldr	w0, [x23, #4]
	ldr	w1, [x24, #12]
	bl	_max
	str	x0, [x21, #16]
	ldr	w1, [x24, #8]
	bl	_min
	str	x0, [x21, #16]
Lloh2:
	adrp	x8, _AQ_HW_RXD_MULTIPLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AQ_HW_RXD_MULTIPLE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x21, #16]
	ldr	w0, [x23]
	ldr	w1, [x24, #4]
	bl	_max
	str	x0, [x21, #8]
	ldr	w1, [x24]
	bl	_min
	str	x0, [x21, #8]
Lloh5:
	adrp	x8, _AQ_HW_TXD_MULTIPLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AQ_HW_TXD_MULTIPLE@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ALIGN
	str	x0, [x21, #8]
	str	xzr, [x20]
	ldr	x8, [x21]
	cbz	x8, LBB0_11
; %bb.8:
	mov	x1, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x2, x21
	bl	_aq_vec_alloc
	ldp	x9, x8, [x20]
	str	w0, [x8, x9, lsl #2]
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	add	x1, x8, #1
	str	x1, [x20]
	ldr	x8, [x21]
	cmp	x1, x8
	b.lo	LBB0_9
LBB0_11:
	cbz	x22, LBB0_14
; %bb.12:
	mov	x0, x19
	mov	x1, #0
	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
	b	_dev_open
LBB0_13:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_3
LBB0_14:
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_AQ_HW_RXD_MULTIPLE,4,2         ; @AQ_HW_RXD_MULTIPLE
	.comm	_AQ_HW_TXD_MULTIPLE,4,2         ; @AQ_HW_TXD_MULTIPLE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_aq_set_ringparam
.subsections_via_symbols
