	.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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	movl	32(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_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	%r12
	popq	%r14
	popq	%r15
	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), %r15d
	movl	%r15d, %edi
	callq	_inw
	movl	%eax, %r12d
	movl	$4, %edi
	callq	_EL3WINDOW
	movl	%r15d, %edi
	callq	_inb
	addl	$13, %ebx
	movl	%ebx, %edi
	callq	_inb
	shll	$12, %eax
	addl	28(%r14), %r12d
	andl	$983040, %eax                   ## imm = 0xF0000
	addl	%eax, %r12d
	movl	%r12d, 28(%r14)
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	w20, [x0]
	ldr	w2, [x0, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_DEBUG
Lloh2:
	adrp	x8, _EL3_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL3_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w0, w8, w20
	bl	_inw
	mov	w8, #65535
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #6
	bl	_EL3WINDOW
	mov	x0, x20
	bl	_inb
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	str	w8, [x19, #4]
	add	w0, w20, #1
	bl	_inb
	ldr	w8, [x19, #8]
	add	w8, w8, w0
	str	w8, [x19, #8]
	add	w0, w20, #2
	bl	_inb
	add	w0, w20, #3
	bl	_inb
	ldr	w8, [x19, #12]
	add	w8, w8, w0
	str	w8, [x19, #12]
	add	w0, w20, #4
	bl	_inb
	ldr	w8, [x19, #16]
	add	w8, w8, w0
	str	w8, [x19, #16]
	add	w0, w20, #5
	bl	_inb
	ldr	w8, [x19, #20]
	add	w8, w8, w0
	str	w8, [x19, #20]
	add	w0, w20, #6
	bl	_inb
	ldr	w8, [x19, #24]
	add	w8, w8, w0
	str	w8, [x19, #24]
	add	w0, w20, #9
	bl	_inb
	lsl	w8, w0, #4
	and	w8, w8, #0x300
	ldr	w9, [x19, #24]
	add	w8, w8, w9
	str	w8, [x19, #24]
	add	w0, w20, #7
	bl	_inb
	add	w0, w20, #8
	bl	_inb
	add	w0, w20, #10
	bl	_inw
	add	w21, w20, #12
	mov	x0, x21
	bl	_inw
	mov	x22, x0
	mov	w0, #4
	bl	_EL3WINDOW
	mov	x0, x21
	bl	_inb
	add	w0, w20, #13
	bl	_inb
	lsl	w8, w0, #12
	and	w8, w8, #0xf0000
	ldr	w9, [x19, #28]
	add	w9, w9, w22
	add	w8, w9, w8
	str	w8, [x19, #28]
	mov	w0, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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
