	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_ovf_event
_sync_ovf_event:                        ## @sync_ovf_event
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r13
	leaq	12(%rdi), %r15
	leaq	8(%rdi), %rbx
	movl	$0, -44(%rbp)
	movq	_pt_dfix_max_ip@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%esi, -56(%rbp)
	movl	$204, -52(%rbp)
	callq	_pt_last_ip_init
	leaq	4(%r13), %rdx
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_pt_last_ip_update_ip
	movq	%rbx, %rdi
	callq	_pt_encode_psb
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$132, %edx
	callq	_pt_encode_fup
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_pt_encode_mode_tsx
	movq	%rbx, %rdi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_pt_encode_tsc
	movq	%rbx, %rdi
	callq	_pt_encode_ovf
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %esi
	movq	%rbx, %rdi
	callq	_pt_encode_fup
	leaq	-44(%rbp), %rsi
	movq	%r15, %rdi
	callq	_pt_qry_sync_forward
	movq	_pts_event_pending@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	movl	-44(%rbp), %edi
	movl	%r12d, %esi
	callq	_ptu_uint_eq
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_pt_qry_event
	movl	(%rbx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	movl	-60(%rbp), %edi
	xorl	%esi, %esi
	callq	_ptu_uint_ne
	movl	-88(%rbp), %edi
	movq	_ptev_tsx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptu_int_eq
	movl	-72(%rbp), %edi
	xorl	%esi, %esi
	callq	_ptu_int_eq
	movl	-68(%rbp), %edi
	xorl	%esi, %esi
	callq	_ptu_int_eq
	movl	-64(%rbp), %edi
	movl	%r12d, %esi
	callq	_ptu_uint_eq
	movl	-84(%rbp), %edi
	movl	$1, %esi
	callq	_ptu_int_eq
	movl	-80(%rbp), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ptu_uint_eq
	movq	%r15, %rdi
	leaq	-88(%rbp), %rsi
	movl	$32, %edx
	callq	_pt_qry_event
	addl	$-128, %r14d
	cmpl	$5, %r14d
	ja	LBB0_4
## %bb.1:
	cmpl	$3, %r14d
	je	LBB0_2
## %bb.3:
	movq	_pts_eos@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	movl	-88(%rbp), %edi
	movq	_ptev_overflow@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptu_int_eq
	movl	-76(%rbp), %edi
	movl	(%r13), %esi
	callq	_ptu_uint_eq
	movl	-84(%rbp), %edi
	movl	$1, %esi
	callq	_ptu_int_eq
	movl	-80(%rbp), %edi
	movl	$4096, %esi                     ## imm = 0x1000
	callq	_ptu_uint_eq
LBB0_4:
	xorl	%eax, %eax
	callq	_ptu_passed
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_pte_noip@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	subl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_pt_dfix_max_ip,4,2             ## @pt_dfix_max_ip
	.comm	_pts_event_pending,4,2          ## @pts_event_pending
	.comm	_ptev_tsx,4,2                   ## @ptev_tsx
	.comm	_pte_noip,4,2                   ## @pte_noip
	.comm	_pts_eos,4,2                    ## @pts_eos
	.comm	_ptev_overflow,4,2              ## @ptev_overflow
	.no_dead_strip	_sync_ovf_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_ovf_event
_sync_ovf_event:                        ; @sync_ovf_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #12
	add	x23, x0, #8
	str	wzr, [sp, #4]
Lloh0:
	adrp	x8, _pt_dfix_max_ip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pt_dfix_max_ip@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w8, #204
	stp	w1, w8, [sp, #40]
	bl	_pt_last_ip_init
	add	x2, x19, #4
	add	x1, sp, #40
	mov	x0, x19
	bl	_pt_last_ip_update_ip
	mov	x0, x23
	bl	_pt_encode_psb
	mov	x0, x23
	mov	x1, x22
	mov	w2, #132
	bl	_pt_encode_fup
	mov	x0, x23
	mov	w1, #0
	bl	_pt_encode_mode_tsx
	mov	x0, x23
	mov	w1, #4096
	bl	_pt_encode_tsc
	mov	x0, x23
	bl	_pt_encode_ovf
	ldp	w2, w1, [sp, #40]
	mov	x0, x23
	bl	_pt_encode_fup
	add	x1, sp, #4
	mov	x0, x21
	bl	_pt_qry_sync_forward
Lloh3:
	adrp	x23, _pts_event_pending@GOTPAGE
Lloh4:
	ldr	x23, [x23, _pts_event_pending@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_ptu_int_eq
	ldr	w0, [sp, #4]
	mov	x1, x22
	bl	_ptu_uint_eq
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #32
	bl	_pt_qry_event
	ldr	w1, [x23]
	bl	_ptu_int_eq
	ldr	w0, [sp, #36]
	mov	w1, #0
	bl	_ptu_uint_ne
	ldr	w0, [sp, #8]
Lloh5:
	adrp	x8, _ptev_tsx@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ptev_tsx@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	w0, [sp, #24]
	mov	w1, #0
	bl	_ptu_int_eq
	ldr	w0, [sp, #28]
	mov	w1, #0
	bl	_ptu_int_eq
	ldr	w0, [sp, #32]
	mov	x1, x22
	bl	_ptu_uint_eq
	ldr	w0, [sp, #12]
	mov	w1, #1
	bl	_ptu_int_eq
	ldr	w0, [sp, #16]
	mov	w1, #4096
	bl	_ptu_uint_eq
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #32
	bl	_pt_qry_event
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _pts_eos@GOTPAGE
Lloh9:
	ldr	x8, [x8, _pts_eos@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	w0, [sp, #8]
Lloh11:
	adrp	x8, _ptev_overflow@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ptev_overflow@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	w0, [sp, #20]
	ldr	w1, [x19]
	bl	_ptu_uint_eq
	ldr	w0, [sp, #12]
	mov	w1, #1
	bl	_ptu_int_eq
	ldr	w0, [sp, #16]
	mov	w1, #4096
	bl	_ptu_uint_eq
LBB0_3:
	bl	_ptu_passed
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
Lloh14:
	adrp	x8, _pte_noip@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pte_noip@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w1, w8
	bl	_ptu_int_eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pt_dfix_max_ip,4,2             ; @pt_dfix_max_ip
	.comm	_pts_event_pending,4,2          ; @pts_event_pending
	.comm	_ptev_tsx,4,2                   ; @ptev_tsx
	.comm	_pte_noip,4,2                   ; @pte_noip
	.comm	_pts_eos,4,2                    ; @pts_eos
	.comm	_ptev_overflow,4,2              ; @ptev_overflow
	.no_dead_strip	_sync_ovf_event
.subsections_via_symbols
