	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctlstat_json
_ctlstat_json:                          ## @ctlstat_json
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_F_PORTS
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.1:
	movq	_CTL_STATS_NUM_TYPES@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	(%r14), %rax
	cmpq	%rax, %r12
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%r14, %rdi
	callq	_F_MASK
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r14), %edi
	leaq	(%r12,%r12,2), %rax
	shlq	$4, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax), %esi
	callq	_bit_test
	testq	%rax, %rax
	je	LBB0_12
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	leaq	(%r12,%r12,2), %rbx
	shlq	$4, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%rbx), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	cmpl	$0, (%r13)
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx), %r14
	addq	$40, %r14
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r15
	cltq
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_iotypes@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	(%r14), %rax
	movl	(%rax,%r15,8), %esi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-8(%r14), %rax
	movl	(%rax,%r15,8), %esi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-16(%r14), %rax
	movl	(%rax,%r15,8), %esi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-24(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_PRINT_BINTIME
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-32(%r14), %rax
	movl	(%rax,%r15,4), %edi
	callq	_PRINT_BINTIME
	movl	$125, %edi
	callq	_putchar
	movslq	(%r13), %rax
	movq	%rax, %rcx
	decq	%rcx
	cmpq	%rcx, %r15
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	$44, %edi
	callq	_putchar
	movl	(%r13), %eax
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	cmpl	4(%r14), %ebx
	jge	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14), %rax
	decq	%rax
	cmpq	%rax, %r12
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$44, %edi
	callq	_putchar
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str.12(%rip), %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printf                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"{\"%s\":["

L_.str.1:                               ## @.str.1
	.asciz	"ports"

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

L_.str.3:                               ## @.str.3
	.asciz	"{\"num\":%d,\"io\":["

	.comm	_CTL_STATS_NUM_TYPES,4,2        ## @CTL_STATS_NUM_TYPES
L_.str.4:                               ## @.str.4
	.asciz	"{\"type\":\"%s\","

	.comm	_iotypes,8,3                    ## @iotypes
L_.str.5:                               ## @.str.5
	.asciz	"\"bytes\":%ju,"

L_.str.6:                               ## @.str.6
	.asciz	"\"operations\":%ju,"

L_.str.7:                               ## @.str.7
	.asciz	"\"dmas\":%ju,"

L_.str.8:                               ## @.str.8
	.asciz	"\"io time\":"

L_.str.9:                               ## @.str.9
	.asciz	",\"dma time\":"

L_.str.12:                              ## @.str.12
	.asciz	"]}"

	.no_dead_strip	_ctlstat_json
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctlstat_json
_ctlstat_json:                          ; @ctlstat_json
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	ldr	x8, [x0, #16]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	bl	_F_PORTS
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	x0, #0
	csel	x8, x9, x8, eq
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x20, #0
	mov	w21, #0
Lloh6:
	adrp	x28, _CTL_STATS_NUM_TYPES@GOTPAGE
Lloh7:
	ldr	x28, [x28, _CTL_STATS_NUM_TYPES@GOTPAGEOFF]
Lloh8:
	adrp	x26, l_.str.9@PAGE
Lloh9:
	add	x26, x26, l_.str.9@PAGEOFF
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19]
	cmp	x20, x8
	b.ge	LBB0_13
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	mov	x0, x19
	bl	_F_MASK
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x19, #8]
	mov	w8, #48
	mul	x8, x20, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [x9, x8]
	bl	_bit_test
	cbz	x0, LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
	mov	w8, #48
	mul	x8, x20, x8
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x9, x8]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	w8, [x28]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x27, #0
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	mov	w9, #48
	madd	x8, x20, x9, x8
	add	x19, x8, #40
	add	x21, x8, #32
	add	x22, x8, #24
	add	x23, x8, #16
	add	x24, x8, #8
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #1
	cmp	x27, w8, sxtw
	b.ge	LBB0_10
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
Lloh12:
	adrp	x8, _iotypes@GOTPAGE
Lloh13:
	ldr	x8, [x8, _iotypes@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	lsl	x25, x27, #3
	ldr	x8, [x8, x25]
	str	x8, [sp]
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x8, [x19]
	ldr	x8, [x8, x25]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str.5@PAGE
Lloh18:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldr	x8, [x21]
	ldr	x8, [x8, x25]
	str	x8, [sp]
Lloh19:
	adrp	x0, l_.str.6@PAGE
Lloh20:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	x8, [x22]
	ldr	x8, [x8, x25]
	str	x8, [sp]
Lloh21:
	adrp	x0, l_.str.7@PAGE
Lloh22:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
Lloh23:
	adrp	x0, l_.str.8@PAGE
Lloh24:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x8, [x23]
	lsl	x25, x27, #2
	ldr	w0, [x8, x25]
	bl	_PRINT_BINTIME
	mov	x0, x26
	bl	_printf
	ldr	x8, [x24]
	ldr	w0, [x8, x25]
	bl	_PRINT_BINTIME
	mov	w0, #125
	bl	_putchar
	ldrsw	x8, [x28]
	sub	x9, x8, #1
	cmp	x27, x9
	b.ge	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w0, #44
	bl	_putchar
	ldr	w8, [x28]
	b	LBB0_7
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh25:
	adrp	x0, l_.str.12@PAGE
Lloh26:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_printf
	ldr	w21, [sp, #20]                  ; 4-byte Folded Reload
	add	w21, w21, #1
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.ge	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x19]
	sub	x8, x8, #1
	cmp	x20, x8
	b.ge	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #44
	bl	_putchar
	b	LBB0_2
LBB0_13:
Lloh27:
	adrp	x0, l_.str.12@PAGE
Lloh28:
	add	x0, x0, l_.str.12@PAGEOFF
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_printf
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"{\"%s\":["

l_.str.1:                               ; @.str.1
	.asciz	"ports"

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

l_.str.3:                               ; @.str.3
	.asciz	"{\"num\":%d,\"io\":["

	.comm	_CTL_STATS_NUM_TYPES,4,2        ; @CTL_STATS_NUM_TYPES
l_.str.4:                               ; @.str.4
	.asciz	"{\"type\":\"%s\","

	.comm	_iotypes,8,3                    ; @iotypes
l_.str.5:                               ; @.str.5
	.asciz	"\"bytes\":%ju,"

l_.str.6:                               ; @.str.6
	.asciz	"\"operations\":%ju,"

l_.str.7:                               ; @.str.7
	.asciz	"\"dmas\":%ju,"

l_.str.8:                               ; @.str.8
	.asciz	"\"io time\":"

l_.str.9:                               ; @.str.9
	.asciz	",\"dma time\":"

l_.str.12:                              ; @.str.12
	.asciz	"]}"

	.no_dead_strip	_ctlstat_json
.subsections_via_symbols
