	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmc_etr_mode_alloc_buf
_tmc_etr_mode_alloc_buf:                ## @tmc_etr_mode_alloc_buf
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
                                        ## kill: def $edi killed $edi def $rdi
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	leal	-128(%rdi), %edx
	cmpl	$2, %edx
	ja	LBB0_6
## %bb.1:
	movq	_etr_buf_ops@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	%edi, %r12d
	movq	(%rdx,%r12,8), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.2:
	movq	(%rdx), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:
	movq	%rsi, %rdi
	movq	%r15, %rsi
	movl	%ecx, %edx
	movq	%r8, %rcx
	callq	*%rbx
LBB0_4:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rax, (%r15)
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_etr_buf_ops,8,3                ## @etr_buf_ops
	.no_dead_strip	_tmc_etr_mode_alloc_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmc_etr_mode_alloc_buf
_tmc_etr_mode_alloc_buf:                ; @tmc_etr_mode_alloc_buf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	sub	w8, w0, #128
Lloh0:
	adrp	x9, _EINVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	neg	w0, w9
	cmp	w8, #2
	b.hi	LBB0_6
; %bb.1:
	mov	x19, x2
Lloh3:
	adrp	x21, _etr_buf_ops@GOTPAGE
Lloh4:
	ldr	x21, [x21, _etr_buf_ops@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x8, [x8, w20, uxtw #3]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x1
	mov	x1, x19
	mov	x2, x3
	mov	x3, x4
	blr	x8
LBB0_4:
	cbnz	w0, LBB0_6
; %bb.5:
	mov	w8, w20
	ldr	x9, [x21]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_etr_buf_ops,8,3                ; @etr_buf_ops
	.no_dead_strip	_tmc_etr_mode_alloc_buf
.subsections_via_symbols
