	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function update_stats
_update_stats:                          ## @update_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movl	28(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_EL3_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%ebx, %edi
	callq	_inw
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	jne	LBB0_2
## %bb.1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	$6, %edi
	callq	_EL3WINDOW
	movl	%ebx, %edi
	callq	_inb
	addl	%eax, 4(%r14)
	leal	1(%rbx), %edi
	callq	_inb
	addl	%eax, 8(%r14)
	leal	2(%rbx), %edi
	callq	_inb
	leal	3(%rbx), %edi
	callq	_inb
	addl	%eax, 12(%r14)
	leal	4(%rbx), %edi
	callq	_inb
	addl	%eax, 16(%r14)
	leal	5(%rbx), %edi
	callq	_inb
	addl	%eax, 20(%r14)
	leal	6(%rbx), %edi
	callq	_inb
	addl	%eax, 24(%r14)
	leal	9(%rbx), %edi
	callq	_inb
	andl	$48, %eax
	shll	$4, %eax
	addl	%eax, 24(%r14)
	leal	7(%rbx), %edi
	callq	_inb
	leal	8(%rbx), %edi
	callq	_inb
	leal	10(%rbx), %edi
	callq	_inw
	leal	12(%rbx), %r14d
	movl	%r14d, %edi
	callq	_inw
	movl	$4, %edi
	callq	_EL3WINDOW
	movl	%r14d, %edi
	callq	_inb
	addl	$13, %ebx
	movl	%ebx, %edi
	callq	_inb
	movl	$1, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_EL3WINDOW                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: updating the statistics.\n"

	.comm	_EL3_STATUS,4,2                 ## @EL3_STATUS
	.no_dead_strip	_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_stats
_update_stats:                          ; @update_stats
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	w19, [x0]
	ldr	w1, [x0, #28]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w19
	bl	_inw
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #6
	bl	_EL3WINDOW
	mov	x0, x19
	bl	_inb
	ldr	w8, [x20, #4]
	add	w8, w8, w0
	str	w8, [x20, #4]
	add	w0, w19, #1
	bl	_inb
	ldr	w8, [x20, #8]
	add	w8, w8, w0
	str	w8, [x20, #8]
	add	w0, w19, #2
	bl	_inb
	add	w0, w19, #3
	bl	_inb
	ldr	w8, [x20, #12]
	add	w8, w8, w0
	str	w8, [x20, #12]
	add	w0, w19, #4
	bl	_inb
	ldr	w8, [x20, #16]
	add	w8, w8, w0
	str	w8, [x20, #16]
	add	w0, w19, #5
	bl	_inb
	ldr	w8, [x20, #20]
	add	w8, w8, w0
	str	w8, [x20, #20]
	add	w0, w19, #6
	bl	_inb
	ldr	w8, [x20, #24]
	add	w8, w8, w0
	str	w8, [x20, #24]
	add	w0, w19, #9
	bl	_inb
	lsl	w8, w0, #4
	and	w8, w8, #0x300
	ldr	w9, [x20, #24]
	add	w8, w8, w9
	str	w8, [x20, #24]
	add	w0, w19, #7
	bl	_inb
	add	w0, w19, #8
	bl	_inb
	add	w0, w19, #10
	bl	_inw
	add	w20, w19, #12
	mov	x0, x20
	bl	_inw
	mov	w0, #4
	bl	_EL3WINDOW
	mov	x0, x20
	bl	_inb
	add	w0, w19, #13
	bl	_inb
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_EL3WINDOW
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: updating the statistics.\n"

	.comm	_EL3_STATUS,4,2                 ; @EL3_STATUS
	.no_dead_strip	_update_stats
.subsections_via_symbols
