	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extended_speeds_query
_extended_speeds_query:                 ## @extended_speeds_query
	.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
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_reset_only@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%ecx, %edx
	callq	_is_rsfec_mode_active
	testq	%rax, %rax
	movq	_IB_GSI_PORT_EXT_SPEEDS_COUNTERS@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str(%rip), %r9
	cmoveq	%rcx, %r9
	movq	_mad_dump_port_ext_speeds_counters_rsfec_active@GOTPCREL(%rip), %rcx
	cmoveq	_mad_dump_port_ext_speeds_counters@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_common_func
	addq	$16, %rsp
LBB0_2:
	movq	(%r12), %rax
	movq	_reset@GOTPCREL(%rip), %rcx
	orq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	_pc@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ibd_timeout@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_srcport@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_ext_speeds_reset_via
	testl	%eax, %eax
	je	LBB0_5
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IBEXIT                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_reset_only,8,3                 ## @reset_only
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PortExtendedSpeedsCounters with RS-FEC Active"

	.comm	_IB_GSI_PORT_EXT_SPEEDS_COUNTERS,4,2 ## @IB_GSI_PORT_EXT_SPEEDS_COUNTERS
	.comm	_mad_dump_port_ext_speeds_counters_rsfec_active,4,2 ## @mad_dump_port_ext_speeds_counters_rsfec_active
L_.str.1:                               ## @.str.1
	.asciz	"PortExtendedSpeedsCounters"

	.comm	_mad_dump_port_ext_speeds_counters,4,2 ## @mad_dump_port_ext_speeds_counters
	.comm	_reset,8,3                      ## @reset
	.comm	_pc,4,2                         ## @pc
	.comm	_ibd_timeout,4,2                ## @ibd_timeout
	.comm	_srcport,4,2                    ## @srcport
L_.str.2:                               ## @.str.2
	.asciz	"cannot reset PortExtendedSpeedsCounters"

	.no_dead_strip	_extended_speeds_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extended_speeds_query
_extended_speeds_query:                 ; @extended_speeds_query
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _reset_only@GOTPAGE
Lloh1:
	ldr	x22, [x22, _reset_only@GOTPAGEOFF]
	ldr	x8, [x22]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x3
	bl	_is_rsfec_mode_active
Lloh2:
	adrp	x8, _IB_GSI_PORT_EXT_SPEEDS_COUNTERS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_GSI_PORT_EXT_SPEEDS_COUNTERS@GOTPAGEOFF]
Lloh4:
	ldr	w6, [x8]
Lloh5:
	adrp	x8, l_.str@PAGE
Lloh6:
	add	x8, x8, l_.str@PAGEOFF
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x5, x9, x8, eq
Lloh9:
	adrp	x8, _mad_dump_port_ext_speeds_counters@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mad_dump_port_ext_speeds_counters@GOTPAGEOFF]
Lloh11:
	adrp	x9, _mad_dump_port_ext_speeds_counters_rsfec_active@GOTPAGE
Lloh12:
	ldr	x9, [x9, _mad_dump_port_ext_speeds_counters_rsfec_active@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w7, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	mov	w4, #0
	bl	_common_func
LBB0_2:
	ldr	x8, [x22]
Lloh13:
	adrp	x9, _reset@GOTPAGE
Lloh14:
	ldr	x9, [x9, _reset@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	orr	x8, x8, x9
	cbz	x8, LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _pc@GOTPAGE
Lloh17:
	ldr	x8, [x8, _pc@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x8, _ibd_timeout@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ibd_timeout@GOTPAGEOFF]
Lloh21:
	ldr	w4, [x8]
Lloh22:
	adrp	x8, _srcport@GOTPAGE
Lloh23:
	ldr	x8, [x8, _srcport@GOTPAGEOFF]
Lloh24:
	ldr	w5, [x8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_ext_speeds_reset_via
	cbz	w0, LBB0_5
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:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	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
	b	_IBEXIT
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_reset_only,8,3                 ; @reset_only
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PortExtendedSpeedsCounters with RS-FEC Active"

	.comm	_IB_GSI_PORT_EXT_SPEEDS_COUNTERS,4,2 ; @IB_GSI_PORT_EXT_SPEEDS_COUNTERS
	.comm	_mad_dump_port_ext_speeds_counters_rsfec_active,4,2 ; @mad_dump_port_ext_speeds_counters_rsfec_active
l_.str.1:                               ; @.str.1
	.asciz	"PortExtendedSpeedsCounters"

	.comm	_mad_dump_port_ext_speeds_counters,4,2 ; @mad_dump_port_ext_speeds_counters
	.comm	_reset,8,3                      ; @reset
	.comm	_pc,4,2                         ; @pc
	.comm	_ibd_timeout,4,2                ; @ibd_timeout
	.comm	_srcport,4,2                    ; @srcport
l_.str.2:                               ; @.str.2
	.asciz	"cannot reset PortExtendedSpeedsCounters"

	.no_dead_strip	_extended_speeds_query
.subsections_via_symbols
