	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_set_ringparam
_bdx_set_ringparam:                     ## @bdx_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, %r15
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%edi, %edi
	callq	_bdx_rx_fifo_size_to_packets
	movl	$0, %r14d
	movl	$0, %r13d
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.1:
	movl	$1, %r13d
	movl	$1, %edi
	callq	_bdx_rx_fifo_size_to_packets
	movl	$0, %r14d
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.2:
	movl	$2, %r13d
	movl	$2, %edi
	callq	_bdx_rx_fifo_size_to_packets
	movl	$-1, %r14d
	cmpq	(%r15), %rax
	jge	LBB0_4
## %bb.3:
	movl	$3, %r13d
	movl	$3, %edi
	callq	_bdx_rx_fifo_size_to_packets
LBB0_4:
	xorl	%edi, %edi
	callq	_bdx_tx_fifo_size_to_packets
	cmpq	8(%r15), %rax
	jge	LBB0_8
## %bb.5:
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$1, %edi
	callq	_bdx_tx_fifo_size_to_packets
	cmpq	8(%r15), %rax
	jge	LBB0_8
## %bb.6:
	movl	$2, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$2, %edi
	callq	_bdx_tx_fifo_size_to_packets
	cmpq	8(%r15), %rax
	jge	LBB0_8
## %bb.7:
	movl	$3, -44(%rbp)                   ## 4-byte Folded Spill
	movl	$3, %edi
	callq	_bdx_tx_fifo_size_to_packets
LBB0_8:
	cmpl	(%r12), %r13d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	cmpl	4(%r12), %eax
	je	LBB0_12
LBB0_10:
	movl	%r13d, (%r12)
	addl	%r13d, %r14d
	movl	%r14d, 8(%r12)
	movl	%eax, 4(%r12)
	movl	%eax, 12(%r12)
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_bdx_close
	movq	%rbx, %rdi
	callq	_bdx_open
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bdx_set_ringparam
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_set_ringparam
_bdx_set_ringparam:                     ; @bdx_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	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	mov	w0, #0
	bl	_bdx_rx_fifo_size_to_packets
	mov	w23, #0
	mov	w22, #0
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.1:
	mov	w22, #1
	mov	w0, #1
	bl	_bdx_rx_fifo_size_to_packets
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.2:
	mov	w22, #2
	mov	w0, #2
	bl	_bdx_rx_fifo_size_to_packets
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
	mov	w22, #3
	mov	w0, #3
	bl	_bdx_rx_fifo_size_to_packets
LBB0_4:
	mov	w23, #-1
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	mov	w0, #0
	bl	_bdx_tx_fifo_size_to_packets
	mov	w24, #0
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.7:
	mov	w24, #1
	mov	w0, #1
	bl	_bdx_tx_fifo_size_to_packets
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.8:
	mov	w24, #2
	mov	w0, #2
	bl	_bdx_tx_fifo_size_to_packets
	ldr	x8, [x21, #8]
	cmp	x0, x8
	b.ge	LBB0_10
; %bb.9:
	mov	w24, #3
	mov	w0, #3
	bl	_bdx_tx_fifo_size_to_packets
LBB0_10:
	ldr	w8, [x20]
	cmp	w22, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	w8, [x20, #4]
	cmp	w24, w8
	b.eq	LBB0_14
LBB0_12:
	add	w8, w22, w23
	stp	w22, w24, [x20]
	stp	w8, w24, [x20, #8]
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_14
; %bb.13:
	mov	x0, x19
	bl	_bdx_close
	mov	x0, x19
	bl	_bdx_open
LBB0_14:
	mov	w0, #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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bdx_set_ringparam
.subsections_via_symbols
