	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cntr_files
_add_cntr_files:                        ## @add_cntr_files
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %ecx
	leaq	L_.str(%rip), %rdx
	leaq	-58(%rbp), %r15
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_snprintf
	movq	_S_IFDIR@GOTPCREL(%rip), %rax
	movq	_S_IRUGO@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	orl	(%rax), %esi
	movq	_S_IXUGO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	(%rbx), %rdx
	movq	_simple_dir_operations@GOTPCREL(%rip), %r8
	leaq	-104(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_18
LBB0_2:
	movq	_S_IFREG@GOTPCREL(%rip), %r13
	movl	(%r12), %esi
	orl	(%r13), %esi
	movq	-104(%rbp), %rdx
	movq	_cntr_ops@GOTPCREL(%rip), %r15
	movq	(%r15), %r8
	leaq	L_.str.2(%rip), %rdi
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_18
LBB0_4:
	movl	(%r12), %esi
	orl	(%r13), %esi
	movq	-104(%rbp), %rdx
	movq	(%r15), %r8
	addq	$4, %r8
	leaq	L_.str.4(%rip), %rdi
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rdi
LBB0_18:
	leaq	-58(%rbp), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.20:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %esi
	orl	(%r13), %esi
	movq	-104(%rbp), %rdx
	movq	_portcntr_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str.6(%rip), %rdi
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_7
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	leaq	L_.str.6(%rip), %rdx
	leaq	-58(%rbp), %rsi
LBB0_13:
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_19
LBB0_7:
	cmpl	$0, 4(%r14)
	jle	LBB0_15
## %bb.8:
	movl	$4, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movslq	4(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incq	%r15
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.8(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
	movl	(%r12), %esi
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-104(%rbp), %rdx
	movq	_portcntr_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	addq	%r13, %r8
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	_QIB_HAS_QSFP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	leaq	-96(%rbp), %rbx
	movq	%rbx, %rdi
	leaq	L_.str.9(%rip), %rsi
	movl	%r15d, %edx
	callq	_sprintf
	movl	(%r12), %esi
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	-104(%rbp), %rdx
	movq	_qsfp_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r13), %r8
	addq	$-4, %r8
	movq	%rbx, %rdi
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_14
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	leaq	-58(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	jmp	LBB0_13
LBB0_15:
	movq	_S_IWUSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_S_IFREG@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	orl	(%r12), %esi
	movq	-104(%rbp), %rdx
	leaq	L_.str.10(%rip), %rdi
	movq	_flash_ops@GOTPCREL(%rip), %r8
	leaq	-112(%rbp), %rcx
	movq	%r14, %r9
	callq	_create_file
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rdi
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u"

	.comm	_S_IFDIR,4,2                    ## @S_IFDIR
	.comm	_S_IRUGO,4,2                    ## @S_IRUGO
	.comm	_S_IXUGO,4,2                    ## @S_IXUGO
	.comm	_simple_dir_operations,4,2      ## @simple_dir_operations
L_.str.1:                               ## @.str.1
	.asciz	"create_file(%s) failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"counters"

	.comm	_S_IFREG,4,2                    ## @S_IFREG
	.comm	_cntr_ops,8,3                   ## @cntr_ops
L_.str.3:                               ## @.str.3
	.asciz	"create_file(%s/counters) failed: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"counter_names"

L_.str.5:                               ## @.str.5
	.asciz	"create_file(%s/counter_names) failed: %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"portcounter_names"

	.comm	_portcntr_ops,8,3               ## @portcntr_ops
L_.str.7:                               ## @.str.7
	.asciz	"create_file(%s/%s) failed: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"port%dcounters"

	.comm	_QIB_HAS_QSFP,4,2               ## @QIB_HAS_QSFP
L_.str.9:                               ## @.str.9
	.asciz	"qsfp%d"

	.comm	_qsfp_ops,8,3                   ## @qsfp_ops
L_.str.10:                              ## @.str.10
	.asciz	"flash"

	.comm	_S_IWUSR,4,2                    ## @S_IWUSR
	.comm	_flash_ops,4,2                  ## @flash_ops
L_.str.11:                              ## @.str.11
	.asciz	"create_file(%s/flash) failed: %d\n"

	.no_dead_strip	_add_cntr_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cntr_files
_add_cntr_files:                        ; @add_cntr_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	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]
	str	x8, [sp, #72]
	ldr	w3, [x1]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #62
	mov	w1, #10
	bl	_snprintf
Lloh5:
	adrp	x8, _S_IFDIR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _S_IFDIR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x24, _S_IRUGO@GOTPAGE
Lloh9:
	ldr	x24, [x24, _S_IRUGO@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w9, w8
Lloh10:
	adrp	x9, _S_IXUGO@GOTPAGE
Lloh11:
	ldr	x9, [x9, _S_IXUGO@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w1, w8, w9
	ldr	x2, [x20]
Lloh13:
	adrp	x4, _simple_dir_operations@GOTPAGE
Lloh14:
	ldr	x4, [x4, _simple_dir_operations@GOTPAGEOFF]
	add	x0, sp, #62
	add	x3, sp, #24
	mov	x5, x19
	bl	_create_file
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	str	x22, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_2:
Lloh17:
	adrp	x25, _S_IFREG@GOTPAGE
Lloh18:
	ldr	x25, [x25, _S_IFREG@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]
Lloh19:
	adrp	x20, _cntr_ops@GOTPAGE
Lloh20:
	ldr	x20, [x20, _cntr_ops@GOTPAGEOFF]
	ldr	x4, [x20]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	add	x3, sp, #16
	mov	x5, x19
	bl	_create_file
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
	str	x22, [sp]
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]
	ldr	x8, [x20]
	add	x4, x8, #4
Lloh25:
	adrp	x0, l_.str.4@PAGE
Lloh26:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x3, sp, #16
	mov	x5, x19
	bl	_create_file
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh27:
	adrp	x0, l_.str.5@PAGE
Lloh28:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]
Lloh29:
	adrp	x26, _portcntr_ops@GOTPAGE
Lloh30:
	ldr	x26, [x26, _portcntr_ops@GOTPAGEOFF]
	ldr	x4, [x26]
Lloh31:
	adrp	x20, l_.str.6@PAGE
Lloh32:
	add	x20, x20, l_.str.6@PAGEOFF
	add	x3, sp, #16
	mov	x0, x20
	mov	x5, x19
	bl	_create_file
	cbz	w0, LBB0_11
; %bb.7:
	mov	x22, x0
	stp	x20, x22, [sp]
Lloh33:
	adrp	x0, l_.str.7@PAGE
Lloh34:
	add	x0, x0, l_.str.7@PAGEOFF
LBB0_8:
	add	x1, sp, #62
	bl	_pr_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
LBB0_9:
	ldr	x8, [sp, #72]
Lloh35:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh36:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.10:
	mov	x0, x22
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_11:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.12:
	mov	x27, #0
	mov	w28, #4
Lloh38:
	adrp	x20, l_.str.8@PAGE
Lloh39:
	add	x20, x20, l_.str.8@PAGEOFF
Lloh40:
	adrp	x21, _QIB_HAS_QSFP@GOTPAGE
Lloh41:
	ldr	x21, [x21, _QIB_HAS_QSFP@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldrsw	x8, [x19, #4]
	add	x27, x27, #1
	add	x28, x28, #4
	cmp	x27, x8
	b.ge	LBB0_18
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	add	x23, x27, #1
	add	x0, sp, #38
	mov	x1, x20
	mov	x2, x23
	bl	_sprintf
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]
	ldr	x8, [x26]
	add	x4, x8, x28
	add	x0, sp, #38
	add	x3, sp, #16
	mov	x5, x19
	bl	_create_file
	cbnz	w0, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x0, sp, #38
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x2, x23
	bl	_sprintf
	ldr	w8, [x25]
	ldr	w9, [x24]
	orr	w1, w9, w8
	ldr	x2, [sp, #24]
Lloh44:
	adrp	x8, _qsfp_ops@GOTPAGE
Lloh45:
	ldr	x8, [x8, _qsfp_ops@GOTPAGEOFF]
Lloh46:
	ldr	x8, [x8]
	add	x8, x8, x28
	sub	x4, x8, #4
	add	x0, sp, #38
	add	x3, sp, #16
	mov	x5, x19
	bl	_create_file
	cbz	w0, LBB0_13
LBB0_17:
	mov	x22, x0
	add	x8, sp, #38
	stp	x8, x22, [sp]
Lloh47:
	adrp	x0, l_.str.7@PAGE
Lloh48:
	add	x0, x0, l_.str.7@PAGEOFF
	add	x1, sp, #62
	bl	_pr_err
	b	LBB0_9
LBB0_18:
Lloh49:
	adrp	x8, _S_IWUSR@GOTPAGE
Lloh50:
	ldr	x8, [x8, _S_IWUSR@GOTPAGEOFF]
	ldr	w9, [x25]
Lloh51:
	ldr	w8, [x8]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w1, w8, w9
	ldr	x2, [sp, #24]
Lloh52:
	adrp	x0, l_.str.10@PAGE
Lloh53:
	add	x0, x0, l_.str.10@PAGEOFF
Lloh54:
	adrp	x4, _flash_ops@GOTPAGE
Lloh55:
	ldr	x4, [x4, _flash_ops@GOTPAGEOFF]
	add	x3, sp, #16
	mov	x5, x19
	bl	_create_file
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.19:
	str	x22, [sp]
Lloh56:
	adrp	x0, l_.str.11@PAGE
Lloh57:
	add	x0, x0, l_.str.11@PAGEOFF
	b	LBB0_8
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpAdd	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u"

	.comm	_S_IFDIR,4,2                    ; @S_IFDIR
	.comm	_S_IRUGO,4,2                    ; @S_IRUGO
	.comm	_S_IXUGO,4,2                    ; @S_IXUGO
	.comm	_simple_dir_operations,4,2      ; @simple_dir_operations
l_.str.1:                               ; @.str.1
	.asciz	"create_file(%s) failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"counters"

	.comm	_S_IFREG,4,2                    ; @S_IFREG
	.comm	_cntr_ops,8,3                   ; @cntr_ops
l_.str.3:                               ; @.str.3
	.asciz	"create_file(%s/counters) failed: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"counter_names"

l_.str.5:                               ; @.str.5
	.asciz	"create_file(%s/counter_names) failed: %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"portcounter_names"

	.comm	_portcntr_ops,8,3               ; @portcntr_ops
l_.str.7:                               ; @.str.7
	.asciz	"create_file(%s/%s) failed: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"port%dcounters"

	.comm	_QIB_HAS_QSFP,4,2               ; @QIB_HAS_QSFP
l_.str.9:                               ; @.str.9
	.asciz	"qsfp%d"

	.comm	_qsfp_ops,8,3                   ; @qsfp_ops
l_.str.10:                              ; @.str.10
	.asciz	"flash"

	.comm	_S_IWUSR,4,2                    ; @S_IWUSR
	.comm	_flash_ops,4,2                  ; @flash_ops
l_.str.11:                              ; @.str.11
	.asciz	"create_file(%s/flash) failed: %d\n"

	.no_dead_strip	_add_cntr_files
.subsections_via_symbols
