	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_flow_ctrl_old
_set_flow_ctrl_old:                     ## @set_flow_ctrl_old
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	12(%rdi), %ecx
	leal	15(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$4, %eax
	cmpl	$3, %eax
	movl	$2, %r14d
	cmovll	%r14d, %eax
	leal	(,%rcx,8), %edx
	subl	%ecx, %edx
	leal	7(%rdx), %edi
	testl	%edx, %edx
	cmovnsl	%edx, %edi
	sarl	$3, %edi
	movq	_RXQ_RXF_PAUSE_TH_HI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RXQ_RXF_PAUSE_TH_HI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RXQ_RXF_PAUSE_TH_LO_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_RXQ_RXF_PAUSE_TH_LO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%eax, %edi
	movq	_REG_RXQ_RXF_PAUSE_THRESH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_iowrite32
	movl	8(%rbx), %eax
	leal	15(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$4, %edi
	leal	(,%rax,8), %ecx
	subl	%eax, %ecx
	leal	7(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$3, %eax
	cmpl	$3, %edi
	cmovll	%r14d, %edi
	movq	_RXQ_RRD_PAUSE_TH_HI_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_RXQ_RRD_PAUSE_TH_HI_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_RXQ_RRD_PAUSE_TH_LO_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edi
	movq	_RXQ_RRD_PAUSE_TH_LO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%eax, %edi
	movq	_REG_RXQ_RRD_PAUSE_THRESH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iowrite32                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RXQ_RXF_PAUSE_TH_HI_MASK,4,2   ## @RXQ_RXF_PAUSE_TH_HI_MASK
	.comm	_RXQ_RXF_PAUSE_TH_HI_SHIFT,4,2  ## @RXQ_RXF_PAUSE_TH_HI_SHIFT
	.comm	_RXQ_RXF_PAUSE_TH_LO_MASK,4,2   ## @RXQ_RXF_PAUSE_TH_LO_MASK
	.comm	_RXQ_RXF_PAUSE_TH_LO_SHIFT,4,2  ## @RXQ_RXF_PAUSE_TH_LO_SHIFT
	.comm	_REG_RXQ_RXF_PAUSE_THRESH,8,3   ## @REG_RXQ_RXF_PAUSE_THRESH
	.comm	_RXQ_RRD_PAUSE_TH_HI_MASK,4,2   ## @RXQ_RRD_PAUSE_TH_HI_MASK
	.comm	_RXQ_RRD_PAUSE_TH_HI_SHIFT,4,2  ## @RXQ_RRD_PAUSE_TH_HI_SHIFT
	.comm	_RXQ_RRD_PAUSE_TH_LO_MASK,4,2   ## @RXQ_RRD_PAUSE_TH_LO_MASK
	.comm	_RXQ_RRD_PAUSE_TH_LO_SHIFT,4,2  ## @RXQ_RRD_PAUSE_TH_LO_SHIFT
	.comm	_REG_RXQ_RRD_PAUSE_THRESH,8,3   ## @REG_RXQ_RRD_PAUSE_THRESH
	.no_dead_strip	_set_flow_ctrl_old
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_flow_ctrl_old
_set_flow_ctrl_old:                     ; @set_flow_ctrl_old
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0, #12]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #4
	mov	w20, #2
	cmp	w9, #2
	csel	w9, w9, w20, gt
	lsl	w10, w8, #3
	sub	w8, w10, w8
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
Lloh0:
	adrp	x10, _RXQ_RXF_PAUSE_TH_HI_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _RXQ_RXF_PAUSE_TH_HI_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w9, w9, w10
Lloh3:
	adrp	x10, _RXQ_RXF_PAUSE_TH_HI_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RXQ_RXF_PAUSE_TH_HI_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh6:
	adrp	x10, _RXQ_RXF_PAUSE_TH_LO_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RXQ_RXF_PAUSE_TH_LO_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w8, w10, w8, asr #3
Lloh9:
	adrp	x10, _RXQ_RXF_PAUSE_TH_LO_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RXQ_RXF_PAUSE_TH_LO_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w8, w8, w10
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _REG_RXQ_RXF_PAUSE_THRESH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _REG_RXQ_RXF_PAUSE_THRESH@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_iowrite32
	ldr	w8, [x19, #8]
	add	w9, w8, #15
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w9, w9, #4
	lsl	w10, w8, #3
	sub	w8, w10, w8
	add	w10, w8, #7
	cmp	w8, #0
	csel	w8, w10, w8, lt
	cmp	w9, #2
	csel	w9, w9, w20, gt
Lloh15:
	adrp	x10, _RXQ_RRD_PAUSE_TH_HI_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RXQ_RRD_PAUSE_TH_HI_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w8, w10, w8, asr #3
Lloh18:
	adrp	x10, _RXQ_RRD_PAUSE_TH_HI_SHIFT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RXQ_RRD_PAUSE_TH_HI_SHIFT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w8, w8, w10
Lloh21:
	adrp	x10, _RXQ_RRD_PAUSE_TH_LO_MASK@GOTPAGE
Lloh22:
	ldr	x10, [x10, _RXQ_RRD_PAUSE_TH_LO_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	and	w9, w10, w9
Lloh24:
	adrp	x10, _RXQ_RRD_PAUSE_TH_LO_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _RXQ_RRD_PAUSE_TH_LO_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	ldr	x8, [x19]
Lloh27:
	adrp	x9, _REG_RXQ_RRD_PAUSE_THRESH@GOTPAGE
Lloh28:
	ldr	x9, [x9, _REG_RXQ_RRD_PAUSE_THRESH@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iowrite32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RXQ_RXF_PAUSE_TH_HI_MASK,4,2   ; @RXQ_RXF_PAUSE_TH_HI_MASK
	.comm	_RXQ_RXF_PAUSE_TH_HI_SHIFT,4,2  ; @RXQ_RXF_PAUSE_TH_HI_SHIFT
	.comm	_RXQ_RXF_PAUSE_TH_LO_MASK,4,2   ; @RXQ_RXF_PAUSE_TH_LO_MASK
	.comm	_RXQ_RXF_PAUSE_TH_LO_SHIFT,4,2  ; @RXQ_RXF_PAUSE_TH_LO_SHIFT
	.comm	_REG_RXQ_RXF_PAUSE_THRESH,8,3   ; @REG_RXQ_RXF_PAUSE_THRESH
	.comm	_RXQ_RRD_PAUSE_TH_HI_MASK,4,2   ; @RXQ_RRD_PAUSE_TH_HI_MASK
	.comm	_RXQ_RRD_PAUSE_TH_HI_SHIFT,4,2  ; @RXQ_RRD_PAUSE_TH_HI_SHIFT
	.comm	_RXQ_RRD_PAUSE_TH_LO_MASK,4,2   ; @RXQ_RRD_PAUSE_TH_LO_MASK
	.comm	_RXQ_RRD_PAUSE_TH_LO_SHIFT,4,2  ; @RXQ_RRD_PAUSE_TH_LO_SHIFT
	.comm	_REG_RXQ_RRD_PAUSE_THRESH,8,3   ; @REG_RXQ_RRD_PAUSE_THRESH
	.no_dead_strip	_set_flow_ctrl_old
.subsections_via_symbols
