	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmc_etr_buf_insert_barrier_packet
_tmc_etr_buf_insert_barrier_packet:     ## @tmc_etr_buf_insert_barrier_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_CORESIGHT_BARRIER_PKT_SIZE@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	leaq	-24(%rbp), %rcx
	callq	_tmc_etr_buf_get_data
	xorl	%edi, %edi
	cmpq	(%r14), %rax
	setl	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subq	(%rax), %rbx
	jmp	LBB0_3
LBB0_2:
	movq	-24(%rbp), %rdi
	callq	_coresight_insert_barrier_packet
	addq	(%r14), %rbx
LBB0_3:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CORESIGHT_BARRIER_PKT_SIZE,8,3 ## @CORESIGHT_BARRIER_PKT_SIZE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_tmc_etr_buf_insert_barrier_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmc_etr_buf_insert_barrier_packet
_tmc_etr_buf_insert_barrier_packet:     ; @tmc_etr_buf_insert_barrier_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
Lloh0:
	adrp	x20, _CORESIGHT_BARRIER_PKT_SIZE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CORESIGHT_BARRIER_PKT_SIZE@GOTPAGEOFF]
	ldr	x2, [x20]
	add	x3, sp, #8
	bl	_tmc_etr_buf_get_data
	ldr	x8, [x20]
	cmp	x0, x8
	cset	w0, lt
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_3
LBB0_2:
	ldr	x0, [sp, #8]
	bl	_coresight_insert_barrier_packet
	ldr	x8, [x20]
	add	x0, x8, x19
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CORESIGHT_BARRIER_PKT_SIZE,8,3 ; @CORESIGHT_BARRIER_PKT_SIZE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_tmc_etr_buf_insert_barrier_packet
.subsections_via_symbols
