	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updatexfers                    ## -- Begin function updatexfers
	.p2align	4, 0x90
_updatexfers:                           ## @updatexfers
	.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	%rsi, %r14
	movl	%edi, %r12d
	xorl	%edi, %edi
	callq	_devstat_getnumdevs
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	xorl	%edi, %edi
	callq	_devstat_checkversion
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, -48(%rbp)
	movq	%rax, %rdi
	movl	$24, %esi
	callq	_bzero
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_devstat_getdevs
	cmpl	$-1, %eax
	je	LBB0_29
## %bb.6:
	movq	-48(%rbp), %rdi
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_26
## %bb.7:
	testl	%r12d, %r12d
	jle	LBB0_26
## %bb.8:
	movq	16(%rdi), %r13
	xorl	%ecx, %ecx
	movq	_DEVSTAT_TYPE_MASK@GOTPCREL(%rip), %r11
	movq	_DEVSTAT_TYPE_DIRECT@GOTPCREL(%rip), %r15
	movq	_DEVSTAT_TYPE_PASS@GOTPCREL(%rip), %r9
	movq	_DEVSTAT_N_TRANS_FLAGS@GOTPCREL(%rip), %r10
	xorl	%r8d, %r8d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_22 Depth 2
	movq	%rcx, %rdx
	shlq	$4, %rdx
	movl	(%r13,%rdx), %esi
	movl	(%r11), %ebx
	andl	%esi, %ebx
	cmpl	(%r15), %ebx
	jne	LBB0_24
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%esi, (%r9)
	jne	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r10), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	8(%r13,%rdx), %rbx
	cmpl	$4, %eax
	jae	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_22
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_23
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdx
	movq	%rdx, %r14
	shrq	$2, %r14
	incq	%r14
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r14, %r9
	andq	$-2, %r9
	pxor	%xmm0, %xmm0
	xorl	%r10d, %r10d
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rbx,%r10,8), %xmm2
	movdqu	16(%rbx,%r10,8), %xmm3
	movdqu	32(%rbx,%r10,8), %xmm4
	movdqu	48(%rbx,%r10,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %r10
	addq	$-2, %r9
	jne	LBB0_18
	jmp	LBB0_19
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%r10d, %r10d
	pxor	%xmm1, %xmm1
LBB0_19:                                ##   in Loop: Header=BB0_9 Depth=1
	testb	$1, %r14b
	movq	_DEVSTAT_TYPE_PASS@GOTPCREL(%rip), %r9
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_9 Depth=1
	movdqu	(%rbx,%r10,8), %xmm2
	movdqu	16(%rbx,%r10,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_21:                                ##   in Loop: Header=BB0_9 Depth=1
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpq	%rax, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_DEVSTAT_N_TRANS_FLAGS@GOTPCREL(%rip), %r10
	je	LBB0_23
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_9 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	(%rbx,%rsi,8), %edx
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_22
LBB0_23:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %edx
	cmovll	%edx, %eax
	movslq	%r8d, %r8
	movl	%eax, (%r14,%r8,4)
	incl	%r8d
	movl	(%rdi), %eax
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	movslq	%eax, %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	%r12d, %r8d
	jl	LBB0_9
LBB0_26:
	movq	8(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_28
## %bb.27:
	movq	%rax, %rdi
	callq	_free
	movq	-48(%rbp), %rdi
LBB0_28:
	callq	_free
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_29:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_devstat_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
LBB0_2:
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rstatd: can't get number of devices: %s"

	.comm	_devstat_errbuf,4,2             ## @devstat_errbuf
L_.str.1:                               ## @.str.1
	.asciz	"rstatd: %s"

L_.str.2:                               ## @.str.2
	.asciz	"rstatd: can't get device list: %s"

	.comm	_DEVSTAT_TYPE_MASK,4,2          ## @DEVSTAT_TYPE_MASK
	.comm	_DEVSTAT_TYPE_DIRECT,4,2        ## @DEVSTAT_TYPE_DIRECT
	.comm	_DEVSTAT_TYPE_PASS,4,2          ## @DEVSTAT_TYPE_PASS
	.comm	_DEVSTAT_N_TRANS_FLAGS,4,2      ## @DEVSTAT_N_TRANS_FLAGS
	.comm	_INT_MAX,4,2                    ## @INT_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_updatexfers                    ; -- Begin function updatexfers
	.p2align	2
_updatexfers:                           ; @updatexfers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, #0
	bl	_devstat_getnumdevs
	tbnz	w0, #31, LBB0_22
; %bb.1:
	mov	x0, #0
	bl	_devstat_checkversion
	tbnz	x0, #63, LBB0_23
; %bb.2:
	mov	w0, #24
	bl	_malloc
	str	x0, [sp, #8]
	mov	w1, #24
	bl	_bzero
	add	x1, sp, #8
	mov	x0, #0
	bl	_devstat_getdevs
	cmn	w0, #1
	b.eq	LBB0_24
; %bb.3:
	ldr	x0, [sp, #8]
	ldr	w16, [x0]
	cmp	w16, #1
	ccmp	w20, #1, #8, ge
	b.lt	LBB0_19
; %bb.4:
	mov	x8, #0
	mov	w9, #0
	ldr	x10, [x0, #16]
Lloh0:
	adrp	x11, _DEVSTAT_TYPE_MASK@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DEVSTAT_TYPE_MASK@GOTPAGEOFF]
Lloh2:
	adrp	x12, _DEVSTAT_TYPE_DIRECT@GOTPAGE
Lloh3:
	ldr	x12, [x12, _DEVSTAT_TYPE_DIRECT@GOTPAGEOFF]
Lloh4:
	adrp	x13, _DEVSTAT_TYPE_PASS@GOTPAGE
Lloh5:
	ldr	x13, [x13, _DEVSTAT_TYPE_PASS@GOTPAGEOFF]
Lloh6:
	adrp	x14, _DEVSTAT_N_TRANS_FLAGS@GOTPAGE
Lloh7:
	ldr	x14, [x14, _DEVSTAT_N_TRANS_FLAGS@GOTPAGEOFF]
Lloh8:
	adrp	x15, _INT_MAX@GOTPAGE
Lloh9:
	ldr	x15, [x15, _INT_MAX@GOTPAGEOFF]
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
                                        ;     Child Loop BB0_15 Depth 2
	lsl	x17, x8, #4
	ldr	w17, [x10, x17]
	ldr	w1, [x11]
	and	w1, w1, w17
	ldr	w2, [x12]
	cmp	w1, w2
	b.ne	LBB0_17
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x13]
	tst	w1, w17
	b.ne	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x14]
	cmp	w16, #1
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x17, x10, x8, lsl #4
	ldr	x17, [x17, #8]
	cmp	w16, #8
	b.hs	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, #0
	mov	w2, #0
	b	LBB0_14
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w2, #0
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x1, x16, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x2, x17, #32
	mov	x3, x1
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_12:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q4, q5, [x2, #-32]
	ldp	q6, q7, [x2], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x3, x3, #8
	b.ne	LBB0_12
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w2, s0
	cmp	x1, x16
	b.eq	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x17, x17, x1, lsl #3
	sub	x16, x16, x1
LBB0_15:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w1, [x17], #8
	add	w2, w2, w1
	subs	x16, x16, #1
	b.ne	LBB0_15
LBB0_16:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w16, [x15]
	cmp	w2, w16
	csel	w16, w2, w16, lt
	str	w16, [x19, w9, sxtw #2]
	add	w9, w9, #1
	ldr	w16, [x0]
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x8, #1
	cmp	x8, w16, sxtw
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w9, w20
	b.lt	LBB0_5
LBB0_19:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x8
	bl	_free
	ldr	x0, [sp, #8]
LBB0_21:
	bl	_free
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_22:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh14:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_25
LBB0_23:
Lloh18:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh22:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_25
LBB0_24:
Lloh26:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
Lloh29:
	adrp	x8, _devstat_errbuf@GOTPAGE
Lloh30:
	ldr	x8, [x8, _devstat_errbuf@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
Lloh32:
	adrp	x1, l_.str.2@PAGE
Lloh33:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_25:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rstatd: can't get number of devices: %s"

	.comm	_devstat_errbuf,4,2             ; @devstat_errbuf
l_.str.1:                               ; @.str.1
	.asciz	"rstatd: %s"

l_.str.2:                               ; @.str.2
	.asciz	"rstatd: can't get device list: %s"

	.comm	_DEVSTAT_TYPE_MASK,4,2          ; @DEVSTAT_TYPE_MASK
	.comm	_DEVSTAT_TYPE_DIRECT,4,2        ; @DEVSTAT_TYPE_DIRECT
	.comm	_DEVSTAT_TYPE_PASS,4,2          ; @DEVSTAT_TYPE_PASS
	.comm	_DEVSTAT_N_TRANS_FLAGS,4,2      ; @DEVSTAT_N_TRANS_FLAGS
	.comm	_INT_MAX,4,2                    ; @INT_MAX
.subsections_via_symbols
