	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function config_counter_groups
_config_counter_groups:                 ## @config_counter_groups
	.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
	subq	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-1072(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movq	_cg0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_cg1@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movslq	(%rbx), %rax
	movq	%r12, %rbx
	movq	-1072(%rbp), %rcx
	movq	%rax, (%rcx)
	movslq	(%r13), %rax
	movq	%rax, 8(%rcx)
	movq	_srcport@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_IB_MLX_VENDOR_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IB_MAD_METHOD_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IB_MLX_IS4_CONFIG_COUNTER_GROUP@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %r9d
	callq	_do_vendor
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_memset
	movl	(%r12), %esi
	movq	_IB_MLX_VENDOR_CLASS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IB_MAD_METHOD_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r14, (%rsp)
	movq	%rbx, %rdi
	movl	%r15d, %r9d
	callq	_do_vendor
	testq	%rax, %rax
	movl	$0, %eax
	je	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fprintf
	movl	$-1, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"counter_groups_config: configuring group0 %d group1 %d\n"

	.comm	_cg0,4,2                        ## @cg0
	.comm	_cg1,4,2                        ## @cg1
	.comm	_srcport,4,2                    ## @srcport
	.comm	_IB_MLX_VENDOR_CLASS,4,2        ## @IB_MLX_VENDOR_CLASS
	.comm	_IB_MAD_METHOD_SET,4,2          ## @IB_MAD_METHOD_SET
	.comm	_IB_MLX_IS4_CONFIG_COUNTER_GROUP,4,2 ## @IB_MLX_IS4_CONFIG_COUNTER_GROUP
	.comm	_stderr,4,2                     ## @stderr
L_.str.1:                               ## @.str.1
	.asciz	"config counter group set failure\n"

	.comm	_IB_MAD_METHOD_GET,4,2          ## @IB_MAD_METHOD_GET
L_.str.2:                               ## @.str.2
	.asciz	"config counter group query failure\n"

	.no_dead_strip	_config_counter_groups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function config_counter_groups
_config_counter_groups:                 ; @config_counter_groups
	.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
	sub	sp, sp, #1040
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
Lloh3:
	adrp	x21, _cg0@GOTPAGE
Lloh4:
	ldr	x21, [x21, _cg0@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh5:
	adrp	x22, _cg1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _cg1@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldrsw	x8, [x21]
	ldr	x9, [sp, #8]
	str	x8, [x9]
	ldrsw	x8, [x22]
	str	x8, [x9, #8]
Lloh9:
	adrp	x21, _srcport@GOTPAGE
Lloh10:
	ldr	x21, [x21, _srcport@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh11:
	adrp	x22, _IB_MLX_VENDOR_CLASS@GOTPAGE
Lloh12:
	ldr	x22, [x22, _IB_MLX_VENDOR_CLASS@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh13:
	adrp	x8, _IB_MAD_METHOD_SET@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IB_MAD_METHOD_SET@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
Lloh16:
	adrp	x23, _IB_MLX_IS4_CONFIG_COUNTER_GROUP@GOTPAGE
Lloh17:
	ldr	x23, [x23, _IB_MLX_IS4_CONFIG_COUNTER_GROUP@GOTPAGEOFF]
	ldr	w4, [x23]
	add	x6, sp, #8
	mov	x0, x20
	mov	x5, x19
	bl	_do_vendor
	cbz	x0, LBB0_2
; %bb.1:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #1024
	bl	_memset
	ldr	w1, [x21]
	ldr	w2, [x22]
Lloh20:
	adrp	x8, _IB_MAD_METHOD_GET@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IB_MAD_METHOD_GET@GOTPAGEOFF]
Lloh22:
	ldr	w3, [x8]
	ldr	w4, [x23]
	add	x6, sp, #8
	mov	x0, x20
	mov	x5, x19
	bl	_do_vendor
	cbz	x0, LBB0_5
; %bb.3:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
Lloh25:
	adrp	x8, _stderr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	bl	_fprintf
	mov	w0, #-1
LBB0_5:
	ldur	x8, [x29, #-56]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	add	sp, sp, #1040
	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_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"counter_groups_config: configuring group0 %d group1 %d\n"

	.comm	_cg0,4,2                        ; @cg0
	.comm	_cg1,4,2                        ; @cg1
	.comm	_srcport,4,2                    ; @srcport
	.comm	_IB_MLX_VENDOR_CLASS,4,2        ; @IB_MLX_VENDOR_CLASS
	.comm	_IB_MAD_METHOD_SET,4,2          ; @IB_MAD_METHOD_SET
	.comm	_IB_MLX_IS4_CONFIG_COUNTER_GROUP,4,2 ; @IB_MLX_IS4_CONFIG_COUNTER_GROUP
	.comm	_stderr,4,2                     ; @stderr
l_.str.1:                               ; @.str.1
	.asciz	"config counter group set failure\n"

	.comm	_IB_MAD_METHOD_GET,4,2          ; @IB_MAD_METHOD_GET
l_.str.2:                               ; @.str.2
	.asciz	"config counter group query failure\n"

	.no_dead_strip	_config_counter_groups
.subsections_via_symbols
