	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcache_event_hard              ## -- Begin function tcache_event_hard
	.p2align	4, 0x90
_tcache_event_hard:                     ## @tcache_event_hard
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r14
	movq	_NBINS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %r14
	jae	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tcache_small_bin_get
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_tcache_large_bin_get
LBB0_3:
	movq	%rax, %r15
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.4:
	movl	%eax, %r8d
	shrl	$2, %r8d
	subl	%eax, %r8d
	addl	4(%r15), %r8d
	cmpq	(%r13), %r14
	jae	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_tcache_bin_flush_small
	movq	_tcache_bin_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %edx
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %ecx
	incl	%ecx
	sarl	%cl, %edx
	testl	%edx, %edx
	jg	LBB0_11
	jmp	LBB0_12
LBB0_7:
	je	LBB0_12
## %bb.8:
	cmpq	(%r13), %r14
	jae	LBB0_12
## %bb.9:
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %ecx
	cmpl	$2, %ecx
	jl	LBB0_12
## %bb.10:
	decl	%ecx
LBB0_11:
	movl	%ecx, (%rax,%r14,4)
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%r8d, %ecx
	movq	%rbx, %r8
	callq	_tcache_bin_flush_large
LBB0_12:
	movl	4(%r15), %eax
	movl	%eax, (%r15)
	movq	(%rbx), %rax
	incq	%rax
	movq	%rax, (%rbx)
	movq	_nhbins@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	cmovneq	%rax, %rdx
	movq	%rdx, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBINS,8,3                      ## @NBINS
	.comm	_tcache_bin_info,8,3            ## @tcache_bin_info
	.comm	_nhbins,8,3                     ## @nhbins
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcache_event_hard              ; -- Begin function tcache_event_hard
	.p2align	2
_tcache_event_hard:                     ; @tcache_event_hard
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x22, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x23, _NBINS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NBINS@GOTPAGEOFF]
	ldr	x8, [x23]
	mov	x0, x1
	mov	x1, x20
	cmp	x20, x8
	b.hs	LBB0_2
; %bb.1:
	bl	_tcache_small_bin_get
	b	LBB0_3
LBB0_2:
	bl	_tcache_large_bin_get
LBB0_3:
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	ldr	x9, [x23]
	ldr	w10, [x21, #4]
	lsr	w11, w8, #2
	sub	w8, w11, w8
	add	w4, w8, w10
	mov	x0, x22
	cmp	x20, x9
	b.hs	LBB0_10
; %bb.5:
	mov	x1, x19
	mov	x2, x21
	mov	x3, x20
	bl	_tcache_bin_flush_small
Lloh2:
	adrp	x8, _tcache_bin_info@GOTPAGE
Lloh3:
	ldr	x8, [x8, _tcache_bin_info@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	lsl	x9, x20, #2
	ldr	w10, [x8, x9]
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x9]
	add	w9, w9, #1
	asr	w10, w10, w9
	cmp	w10, #1
	b.ge	LBB0_9
	b	LBB0_11
LBB0_6:
	ldr	x9, [x23]
	cmp	w8, #0
	ccmp	x20, x9, #2, ne
	b.hs	LBB0_11
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, x20, lsl #2]
	cmp	w9, #2
	b.lt	LBB0_11
; %bb.8:
	sub	w9, w9, #1
LBB0_9:
	str	w9, [x8, x20, lsl #2]
	b	LBB0_11
LBB0_10:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x4
	mov	x4, x19
	bl	_tcache_bin_flush_large
LBB0_11:
	ldr	w8, [x21, #4]
	str	w8, [x21]
	ldr	x8, [x19]
	add	x9, x8, #1
	str	x9, [x19]
Lloh5:
	adrp	x10, _nhbins@GOTPAGE
Lloh6:
	ldr	x10, [x10, _nhbins@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x9, x10
	csinc	x8, xzr, x8, eq
	str	x8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NBINS,8,3                      ; @NBINS
	.comm	_tcache_bin_info,8,3            ; @tcache_bin_info
	.comm	_nhbins,8,3                     ; @nhbins
.subsections_via_symbols
