	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getstats
_getstats:                              ## @getstats
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movl	%edi, %r15d
	cmpl	$0, (%rsi)
	jne	LBB0_2
## %bb.1:
	movq	_CTL_STAT_NUM_ITEMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_2:
	cmpq	$0, (%rbx)
	sete	%al
	leaq	-104(%rbp), %r14
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-96(%rbp), %eax
	leal	(%rax,%rax,4), %ecx
	leal	(%rax,%rax,4), %eax
	addl	$3, %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	movl	%eax, (%r13)
	movq	(%rbx), %rdi
	callq	_free
	movq	$0, (%rbx)
	incl	%r12d
	movb	$1, %al
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testb	$1, %al
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r13), %eax
	shll	$3, %eax
	leal	(%rax,%rax,4), %edi
	callq	_malloc
	movq	%rax, (%rbx)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$40, %edx
	callq	_memset
	movl	(%r13), %eax
	shll	$3, %eax
	leal	(%rax,%rax,4), %edx
	movl	%edx, -104(%rbp)
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	_CTLSTAT_FLAG_PORTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CTL_GET_PORT_STATS@GOTPCREL(%rip), %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %ecx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CTL_GET_LUN_STATS@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %esi
	movl	%r15d, %edi
	movq	%r14, %rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	leaq	L_.str(%rip), %rsi
	callq	_err
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-100(%rbp), %edx
	cmpl	$129, %edx
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %r12d
	jb	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_15
LBB0_10:
	cmpl	$128, %edx
	je	LBB0_17
## %bb.11:
	cmpl	$130, %edx
	jne	LBB0_16
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_17:
	movslq	-92(%rbp), %rax
	movabsq	$-3689348814741910323, %rcx     ## imm = 0xCCCCCCCCCCCCCCCD
	mulq	%rcx
	shrq	$5, %rdx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%edx, (%rax)
	movl	-80(%rbp), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movl	-84(%rbp), %eax
	movl	%eax, (%rcx)
	movq	_CTL_STATS_FLAG_TIME_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_CTLSTAT_FLAG_TIME_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, -88(%rbp)
	je	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	orl	(%rcx), %eax
	jmp	LBB0_20
LBB0_19:
	notl	%eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	andl	(%rcx), %eax
LBB0_20:
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CTL_STAT_NUM_ITEMS,4,2         ## @CTL_STAT_NUM_ITEMS
	.comm	_CTLSTAT_FLAG_PORTS,4,2         ## @CTLSTAT_FLAG_PORTS
	.comm	_CTL_GET_PORT_STATS,4,2         ## @CTL_GET_PORT_STATS
	.comm	_CTL_GET_LUN_STATS,4,2          ## @CTL_GET_LUN_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CTL_GET_*_STATS ioctl returned error"

L_.str.1:                               ## @.str.1
	.asciz	"CTL_GET_*_STATS ioctl returned CTL_SS_ERROR"

L_.str.2:                               ## @.str.2
	.asciz	"CTL_GET_*_STATS returned NEED_MORE_SPACE again"

L_.str.3:                               ## @.str.3
	.asciz	"CTL_GET_*_STATS ioctl returned unknown status %d"

	.comm	_CTL_STATS_FLAG_TIME_VALID,4,2  ## @CTL_STATS_FLAG_TIME_VALID
	.comm	_CTLSTAT_FLAG_TIME_VALID,4,2    ## @CTLSTAT_FLAG_TIME_VALID
	.no_dead_strip	_getstats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getstats
_getstats:                              ; @getstats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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, x5
	stp	x2, x4, [sp, #8]                ; 16-byte Folded Spill
	mov	x22, x3
	mov	x23, x1
	mov	x24, x0
	ldr	w8, [x1]
	cbnz	w8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CTL_STAT_NUM_ITEMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CTL_STAT_NUM_ITEMS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_2:
	mov	w27, #0
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, eq
Lloh3:
	adrp	x28, _CTLSTAT_FLAG_PORTS@GOTPAGE
Lloh4:
	ldr	x28, [x28, _CTLSTAT_FLAG_PORTS@GOTPAGEOFF]
Lloh5:
	adrp	x20, _CTL_GET_PORT_STATS@GOTPAGE
Lloh6:
	ldr	x20, [x20, _CTL_GET_PORT_STATS@GOTPAGEOFF]
Lloh7:
	adrp	x21, _CTL_GET_LUN_STATS@GOTPAGE
Lloh8:
	ldr	x21, [x21, _CTL_GET_LUN_STATS@GOTPAGEOFF]
Lloh9:
	adrp	x25, l_.str@PAGE
Lloh10:
	add	x25, x25, l_.str@PAGEOFF
Lloh11:
	adrp	x26, l_.str.2@PAGE
Lloh12:
	add	x26, x26, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #32]
	add	w8, w8, w8, lsl #2
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [x23]
	ldr	x0, [x22]
	bl	_free
	str	xzr, [x22]
	add	w27, w27, #1
	mov	w8, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	tbz	w8, #0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #2
	lsl	w0, w8, #3
	bl	_malloc
	str	x0, [x22]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #40
	bl	_memset
	ldr	w8, [x23]
	add	w8, w8, w8, lsl #2
	lsl	w2, w8, #3
	str	w2, [sp, #24]
	ldr	x0, [x22]
	mov	w1, #0
	bl	_memset
	ldr	x8, [x22]
	str	x8, [sp, #56]
	ldr	w8, [x19]
	ldr	w9, [x28]
	tst	w9, w8
	csel	x8, x21, x20, eq
	ldr	w1, [x8]
	add	x2, sp, #24
	mov	x0, x24
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x25
	bl	_err
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #28]
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w27, #2
	b.lo	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	x1, x26
	bl	_errx
	b	LBB0_3
LBB0_11:
	cmp	w8, #128
	b.eq	LBB0_15
; %bb.12:
	cmp	w8, #130
	b.ne	LBB0_14
; %bb.13:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_15
LBB0_14:
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_15:
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	ldp	w9, w10, [sp, #36]
                                        ; kill: def $w9 killed $w9 def $x9
	sxtw	x9, w9
	umulh	x8, x9, x8
	lsr	x8, x8, #5
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	w8, [x9]
	ldur	d0, [sp, #44]
Lloh17:
	adrp	x8, _CTL_STATS_FLAG_TIME_VALID@GOTPAGE
Lloh18:
	ldr	x8, [x8, _CTL_STATS_FLAG_TIME_VALID@GOTPAGEOFF]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	str	d0, [x9]
Lloh19:
	ldr	w9, [x8]
Lloh20:
	adrp	x8, _CTLSTAT_FLAG_TIME_VALID@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CTLSTAT_FLAG_TIME_VALID@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w9, w10
	b.eq	LBB0_17
; %bb.16:
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_18
LBB0_17:
	ldr	w9, [x19]
	bic	w8, w9, w8
LBB0_18:
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_CTL_STAT_NUM_ITEMS,4,2         ; @CTL_STAT_NUM_ITEMS
	.comm	_CTLSTAT_FLAG_PORTS,4,2         ; @CTLSTAT_FLAG_PORTS
	.comm	_CTL_GET_PORT_STATS,4,2         ; @CTL_GET_PORT_STATS
	.comm	_CTL_GET_LUN_STATS,4,2          ; @CTL_GET_LUN_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CTL_GET_*_STATS ioctl returned error"

l_.str.1:                               ; @.str.1
	.asciz	"CTL_GET_*_STATS ioctl returned CTL_SS_ERROR"

l_.str.2:                               ; @.str.2
	.asciz	"CTL_GET_*_STATS returned NEED_MORE_SPACE again"

l_.str.3:                               ; @.str.3
	.asciz	"CTL_GET_*_STATS ioctl returned unknown status %d"

	.comm	_CTL_STATS_FLAG_TIME_VALID,4,2  ; @CTL_STATS_FLAG_TIME_VALID
	.comm	_CTLSTAT_FLAG_TIME_VALID,4,2    ; @CTLSTAT_FLAG_TIME_VALID
	.no_dead_strip	_getstats
.subsections_via_symbols
