	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function etm4_get_next_comparator
_etm4_get_next_comparator:              ## @etm4_get_next_comparator
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movl	(%rdi), %r8d
	testl	%r8d, %r8d
	jle	LBB0_8
## %bb.1:
	leal	-128(%rsi), %eax
	cmpl	$2, %eax
	ja	LBB0_11
## %bb.2:
	addl	%r8d, %r8d
	movq	_ETM_ADDR_TYPE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	8(%rdi), %r10
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	cmpl	%r9d, %edi
	je	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addl	%ecx, %eax
	cmpl	%r8d, %eax
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	movl	(%r10,%rdx,4), %edi
	cmpl	$130, %esi
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$2, %ecx
	cmpl	%r9d, %edi
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r9d, 4(%r10,%rdx,4)
	jne	LBB0_7
LBB0_10:
	popq	%rbp
	retq
LBB0_8:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_9:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETM_ADDR_TYPE_NONE,4,2         ## @ETM_ADDR_TYPE_NONE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.no_dead_strip	_etm4_get_next_comparator
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function etm4_get_next_comparator
_etm4_get_next_comparator:              ; @etm4_get_next_comparator
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_10
; %bb.1:
	sub	w10, w1, #128
	cmp	w10, #2
	b.hi	LBB0_11
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	lsl	w9, w9, #1
Lloh0:
	adrp	x10, _ETM_ADDR_TYPE_NONE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ETM_ADDR_TYPE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	x8, [x8, #8]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w0, w0, w11
	cmp	w0, w9
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, w0, uxtw #2]
	cmp	w1, #130
	b.ne	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, w10
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w11, w0, #1
	ldr	w11, [x8, w11, uxtw #2]
	cmp	w11, w10
	b.ne	LBB0_3
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	w11, w10
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w11, #1
	b	LBB0_4
LBB0_10:
Lloh3:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ETM_ADDR_TYPE_NONE,4,2         ; @ETM_ADDR_TYPE_NONE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.no_dead_strip	_etm4_get_next_comparator
.subsections_via_symbols
