	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collect_adapter_stats
_collect_adapter_stats:                 ## @collect_adapter_stats
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	12(%rbx), %eax
	movl	%eax, 24(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 16(%r14)
	movl	(%rbx), %edi
	callq	_is_t4
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	_SGE_STAT_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_t4_read_reg
	movl	%eax, %edi
	callq	_STATSOURCE_T5_G
	cmpl	$7, %eax
	jne	LBB0_3
## %bb.2:
	movq	_SGE_STAT_MATCH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_t4_read_reg
	movq	%rax, %r15
	movq	_SGE_STAT_TOTAL_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_t4_read_reg
	subq	%r15, %rax
	movq	%rax, 8(%r14)
	movq	%r15, (%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SGE_STAT_CFG_A,4,2             ## @SGE_STAT_CFG_A
	.comm	_SGE_STAT_MATCH_A,4,2           ## @SGE_STAT_MATCH_A
	.comm	_SGE_STAT_TOTAL_A,4,2           ## @SGE_STAT_TOTAL_A
	.no_dead_strip	_collect_adapter_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collect_adapter_stats
_collect_adapter_stats:                 ; @collect_adapter_stats
	.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, x1
	mov	x20, x0
	mov	x0, x1
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x20, #12]
	str	w8, [x19, #24]
	ldur	d0, [x20, #4]
	str	d0, [x19, #16]
	ldr	w0, [x20]
	bl	_is_t4
	cbnz	w0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _SGE_STAT_CFG_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SGE_STAT_CFG_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_STATSOURCE_T5_G
	cmp	w0, #7
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _SGE_STAT_MATCH_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SGE_STAT_MATCH_A@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	mov	x21, x0
Lloh6:
	adrp	x8, _SGE_STAT_TOTAL_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SGE_STAT_TOTAL_A@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_t4_read_reg
	sub	x8, x0, x21
	stp	x21, x8, [x19]
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SGE_STAT_CFG_A,4,2             ; @SGE_STAT_CFG_A
	.comm	_SGE_STAT_MATCH_A,4,2           ; @SGE_STAT_MATCH_A
	.comm	_SGE_STAT_TOTAL_A,4,2           ; @SGE_STAT_TOTAL_A
	.no_dead_strip	_collect_adapter_stats
.subsections_via_symbols
