	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_cmt_get_counter
_sh_cmt_get_counter:                    ## @sh_cmt_get_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_CMCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_sh_cmt_read
	movl	%eax, %ebx
	andl	(%r12), %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r13d
	setb	%al
	cmpl	%r15d, %r13d
	seta	%cl
	cmpl	%r14d, %r15d
	seta	%dl
	andb	%dl, %cl
	andb	%dl, %al
	orb	%cl, %al
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%al, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_CMCNT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sh_cmt_read
	movl	%eax, %r13d
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sh_cmt_read
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_sh_cmt_read
	movl	%eax, %r14d
	movq	_CMCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_sh_cmt_read
	movl	%eax, %ebx
	andl	(%r12), %ebx
	movb	$1, %al
	cmpl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r15d, %r13d
	jbe	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r14d, %r13d
	jb	LBB0_5
	jmp	LBB0_4
LBB0_6:
	movslq	%r15d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%ebx, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMCSR,4,2                      ## @CMCSR
	.comm	_CMCNT,4,2                      ## @CMCNT
	.no_dead_strip	_sh_cmt_get_counter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_cmt_get_counter
_sh_cmt_get_counter:                    ; @sh_cmt_get_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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _CMCSR@GOTPAGE
Lloh1:
	ldr	x24, [x24, _CMCSR@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_sh_cmt_read
	ldr	w8, [x20]
	and	w27, w8, w0
Lloh2:
	adrp	x25, _CMCNT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _CMCNT@GOTPAGEOFF]
	mov	w26, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x27
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sh_cmt_read
	mov	x22, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sh_cmt_read
	mov	x21, x0
	ldr	w1, [x25]
	mov	x0, x20
	bl	_sh_cmt_read
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x20
	bl	_sh_cmt_read
	ldr	w8, [x20]
	and	w27, w8, w0
	cmp	w22, w23
	cset	w8, lo
	cmp	w22, w21
	cset	w9, hi
	cmp	w21, w23
	cset	w10, hi
	and	w9, w10, w9
	and	w8, w8, w10
	orr	w8, w9, w8
	cmp	w22, w21
	ccmp	w22, w23, #2, hi
	csel	w8, w26, w8, lo
	cmp	w27, w28
	csel	w0, w26, w8, ne
	bl	_unlikely
	cbnz	x0, LBB0_1
; %bb.2:
	sxtw	x0, w21
	str	w27, [x19]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CMCSR,4,2                      ; @CMCSR
	.comm	_CMCNT,4,2                      ; @CMCNT
	.no_dead_strip	_sh_cmt_get_counter
.subsections_via_symbols
