	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sync_event
_sync_event:                            ## @sync_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	12(%rdi), %r15
	leaq	8(%rdi), %rbx
	movq	$0, -48(%rbp)
	movl	%esi, -40(%rbp)
	movl	$204, -36(%rbp)
	callq	_pt_last_ip_init
	leaq	4(%r12), %rdx
	leaq	-40(%rbp), %rsi
	movq	%r12, %rdi
	callq	_pt_last_ip_update_ip
	movq	%rbx, %rdi
	callq	_pt_encode_psb
	movq	_pt_mob_tsx_intx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pt_encode_mode_tsx
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	movq	%rbx, %rdi
	callq	_pt_encode_fup
	movq	%rbx, %rdi
	callq	_pt_encode_psbend
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_pt_qry_sync_forward
	leal	-128(%r14), %ecx
	cmpl	$5, %ecx
	ja	LBB0_4
## %bb.1:
	cmpl	$3, %ecx
	je	LBB0_2
## %bb.3:
	movq	_pts_event_pending@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	movq	-48(%rbp), %rdi
	movl	(%r12), %esi
	callq	_ptu_uint_eq
LBB0_4:
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	movl	$40, %edx
	callq	_pt_qry_event
	movq	_pts_eos@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	movq	-88(%rbp), %rdi
	xorl	%esi, %esi
	callq	_ptu_uint_ne
	movq	-80(%rbp), %rdi
	xorl	%esi, %esi
	cmpl	$131, %r14d
	jne	LBB0_6
## %bb.5:
	callq	_ptu_uint_ne
	jmp	LBB0_7
LBB0_6:
	callq	_ptu_uint_eq
	movq	-64(%rbp), %rdi
	movl	(%r12), %esi
	callq	_ptu_uint_eq
LBB0_7:
	movl	-72(%rbp), %edi
	movq	_ptev_tsx@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ptu_int_eq
	movl	-56(%rbp), %edi
	movl	$1, %esi
	callq	_ptu_int_eq
	movl	-52(%rbp), %edi
	xorl	%esi, %esi
	callq	_ptu_int_eq
	movl	-68(%rbp), %edi
	xorl	%esi, %esi
	callq	_ptu_int_eq
	xorl	%eax, %eax
	callq	_ptu_passed
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_pts_event_pending@GOTPCREL(%rip), %rcx
	movq	_pts_ip_suppressed@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	%eax, %edi
	callq	_ptu_int_eq
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_pt_mob_tsx_intx,4,2            ## @pt_mob_tsx_intx
	.comm	_pts_event_pending,4,2          ## @pts_event_pending
	.comm	_pts_ip_suppressed,4,2          ## @pts_ip_suppressed
	.comm	_pts_eos,4,2                    ## @pts_eos
	.comm	_ptev_tsx,4,2                   ## @ptev_tsx
	.no_dead_strip	_sync_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sync_event
_sync_event:                            ; @sync_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	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
	mov	x20, x1
	mov	x19, x0
	add	x21, x0, #12
	add	x22, x0, #8
	str	xzr, [sp, #8]
	mov	w8, #204
	stp	w1, w8, [x29, #-40]
	bl	_pt_last_ip_init
	add	x2, x19, #4
	sub	x1, x29, #40
	mov	x0, x19
	bl	_pt_last_ip_update_ip
	mov	x0, x22
	bl	_pt_encode_psb
Lloh0:
	adrp	x8, _pt_mob_tsx_intx@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pt_mob_tsx_intx@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_pt_encode_mode_tsx
	ldp	w2, w1, [x29, #-40]
	mov	x0, x22
	bl	_pt_encode_fup
	mov	x0, x22
	bl	_pt_encode_psbend
	add	x1, sp, #8
	mov	x0, x21
	bl	_pt_qry_sync_forward
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	cmp	w8, #3
	b.eq	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _pts_event_pending@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pts_event_pending@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	x0, [sp, #8]
	ldr	w1, [x19]
	bl	_ptu_uint_eq
LBB0_3:
	add	x1, sp, #16
	mov	x0, x21
	mov	w2, #40
	bl	_pt_qry_event
Lloh6:
	adrp	x8, _pts_eos@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pts_eos@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	x0, [sp, #16]
	mov	w1, #0
	bl	_ptu_uint_ne
	ldr	x0, [sp, #24]
	cmp	w20, #131
	b.ne	LBB0_5
; %bb.4:
	mov	w1, #0
	bl	_ptu_uint_ne
	b	LBB0_6
LBB0_5:
	mov	w1, #0
	bl	_ptu_uint_eq
	ldr	x0, [sp, #40]
	ldr	w1, [x19]
	bl	_ptu_uint_eq
LBB0_6:
	ldr	w0, [sp, #32]
Lloh9:
	adrp	x8, _ptev_tsx@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ptev_tsx@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_ptu_int_eq
	ldr	w0, [sp, #48]
	mov	w1, #1
	bl	_ptu_int_eq
	ldr	w0, [sp, #52]
	mov	w1, #0
	bl	_ptu_int_eq
	ldr	w0, [sp, #36]
	mov	w1, #0
	bl	_ptu_int_eq
	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
	add	sp, sp, #112
	ret
LBB0_7:
Lloh12:
	adrp	x8, _pts_event_pending@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pts_event_pending@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _pts_ip_suppressed@GOTPAGE
Lloh16:
	ldr	x9, [x9, _pts_ip_suppressed@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_ptu_int_eq
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pt_mob_tsx_intx,4,2            ; @pt_mob_tsx_intx
	.comm	_pts_event_pending,4,2          ; @pts_event_pending
	.comm	_pts_ip_suppressed,4,2          ; @pts_ip_suppressed
	.comm	_pts_eos,4,2                    ; @pts_eos
	.comm	_ptev_tsx,4,2                   ; @ptev_tsx
	.no_dead_strip	_sync_event
.subsections_via_symbols
