	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_counter
_read_counter:                          ## @read_counter
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	leaq	1(%rdi), %rbx
	leaq	3(%rdi), %r15
	leaq	9(%rdi), %r12
	addq	$11, %r14
	movl	$32, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	%r15, %rdi
	callq	_inb
	movl	%eax, %r13d
	movl	$33, %edi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_outb
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_inb
	movl	%eax, %ebx
	movl	$32, %edi
	movq	%r12, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %r15d
	movl	$33, %edi
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%r15d, %esi
	shll	$15, %esi
	orl	%ecx, %esi
	movl	%ebx, %r12d
	shll	$8, %r12d
	orl	%r13d, %r12d
	orl	%esi, %r12d
	testl	$1073709056, %r12d              ## imm = 0x3FFF8000
	jne	LBB0_3
## %bb.1:
	testl	%r12d, %r12d
	jg	LBB0_3
## %bb.2:
	movl	%ebx, %edx
	movslq	%r12d, %rbx
	jmp	LBB0_10
LBB0_3:
	movl	$32, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_outb
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$33, %edi
	movq	%r15, %rsi
	callq	_outb
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r13d
	movl	$32, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %r15d
	movl	$33, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%r13d, %edx
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%r15d, %edi
	shll	$15, %edi
	orl	%ecx, %edi
	shll	$8, %r13d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %esi
	orl	%ecx, %r13d
	orl	%edi, %r13d
	movl	%r12d, %ecx
	xorl	%r13d, %ecx
	testl	$1073709056, %ecx               ## imm = 0x3FFF8000
	jne	LBB0_6
## %bb.4:
	cmpl	%r13d, %r12d
	jl	LBB0_6
## %bb.5:
	movslq	%r13d, %rbx
	movl	%esi, %r13d
	jmp	LBB0_10
LBB0_6:
	movl	$32, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_outb
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$33, %edi
	movq	%r15, %rsi
	callq	_outb
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r12d
	movl	$32, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %r15d
	movl	$33, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%r15d, %edi
	shll	$15, %edi
	orl	%ecx, %edi
	movl	%r12d, %ecx
	shll	$8, %ecx
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	%esi, %ecx
	orl	%edi, %ecx
	movl	%r13d, %edi
	xorl	%ecx, %edi
	testl	$1073709056, %edi               ## imm = 0x3FFF8000
	jne	LBB0_9
## %bb.7:
	cmpl	%ecx, %r13d
	jl	LBB0_9
## %bb.8:
	movl	%r12d, %edx
	movl	%esi, %r8d
	movslq	%ecx, %rbx
	movl	%esi, %r13d
	jmp	LBB0_10
LBB0_9:
	movl	$32, %edi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_outb
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r13d
	movl	$33, %edi
	movq	%r15, %rsi
	callq	_outb
	movq	%rbx, %rdi
	callq	_inb
	movl	%eax, %r12d
	movl	$32, %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%eax, %r15d
	movl	$33, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	%r14, %rdi
	callq	_inb
	movl	%r12d, %edx
	movl	%eax, %ecx
	shll	$23, %ecx
	movl	%r15d, %esi
	shll	$15, %esi
	orl	%ecx, %esi
	movl	%r12d, %ecx
	shll	$8, %ecx
	orl	%r13d, %ecx
	orl	%esi, %ecx
	movslq	%ecx, %rbx
LBB0_10:
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	callq	_DBG
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cnt0[%02X] cnt1[%02X] cnt2[%02X] cnt3[%02X]\n"

	.no_dead_strip	_read_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_counter
_read_counter:                          ; @read_counter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	add	x23, x0, #1
	add	x22, x0, #3
	add	x21, x0, #9
	add	x20, x0, #11
	mov	w0, #32
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x19, x0
	mov	w0, #33
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x24, x0
	mov	w0, #32
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	mov	x25, x0
	mov	w0, #33
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	orr	w8, w19, w24, lsl #8
	orr	w8, w8, w25, lsl #15
	orr	w8, w8, w0, lsl #23
	sxtw	x26, w8
	and	x9, x26, #0x3fff8000
	cmp	x9, #0
	ccmp	w8, #1, #0, eq
	b.lt	LBB0_4
; %bb.1:
	mov	w0, #32
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x19, x0
	mov	w0, #33
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x24, x0
	mov	w0, #32
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	mov	x25, x0
	mov	w0, #33
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	orr	w8, w19, w24, lsl #8
	orr	w8, w8, w25, lsl #15
	orr	w8, w8, w0, lsl #23
	sxtw	x27, w8
	eor	w9, w26, w8
	tst	w9, #0x3fff8000
	b.ne	LBB0_5
; %bb.2:
	cmp	w26, w8
	b.lt	LBB0_5
; %bb.3:
	mov	x4, x0
	mov	x26, x27
	b	LBB0_10
LBB0_4:
	mov	x4, x0
	b	LBB0_10
LBB0_5:
	mov	w0, #32
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x19, x0
	mov	w0, #33
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x24, x0
	mov	w0, #32
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	mov	x25, x0
	mov	w0, #33
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	orr	w8, w19, w24, lsl #8
	orr	w8, w8, w25, lsl #15
	orr	w8, w8, w0, lsl #23
	eor	w9, w27, w8
	tst	w9, #0x3fff8000
	b.ne	LBB0_8
; %bb.6:
	cmp	w27, w8
	b.lt	LBB0_8
; %bb.7:
	mov	x4, x0
	b	LBB0_9
LBB0_8:
	mov	w0, #32
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x19, x0
	mov	w0, #33
	mov	x1, x23
	bl	_outb
	mov	x0, x22
	bl	_inb
	mov	x24, x0
	mov	w0, #32
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	mov	x25, x0
	mov	w0, #33
	mov	x1, x21
	bl	_outb
	mov	x0, x20
	bl	_inb
	mov	x4, x0
	orr	w8, w19, w24, lsl #8
	orr	w8, w8, w25, lsl #15
	orr	w8, w8, w0, lsl #23
LBB0_9:
	sxtw	x26, w8
LBB0_10:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x24
	mov	x3, x25
	bl	_DBG
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cnt0[%02X] cnt1[%02X] cnt2[%02X] cnt3[%02X]\n"

	.no_dead_strip	_read_counter
.subsections_via_symbols
