	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function statistic_mt
_statistic_mt:                          ## @statistic_mt
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rsi), %rbx
	movq	_XT_STATISTIC_INVERT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rbx), %r14d
	movl	4(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_7
## %bb.2:
	xorl	%eax, %eax
	callq	_net_random
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	cmpl	20(%rbx), %eax
	jge	LBB0_7
## %bb.3:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_4:
	movq	_nth_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock_bh
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpl	16(%rbx), %ecx
	jne	LBB0_6
## %bb.5:
	movl	$0, (%rax)
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movl	%eax, %r14d
LBB0_6:
	movq	_nth_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock_bh
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XT_STATISTIC_INVERT,4,2        ## @XT_STATISTIC_INVERT
	.comm	_nth_lock,4,2                   ## @nth_lock
	.no_dead_strip	_statistic_mt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function statistic_mt
_statistic_mt:                          ; @statistic_mt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _XT_STATISTIC_INVERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XT_STATISTIC_INVERT@GOTPAGEOFF]
	ldr	x20, [x1]
Lloh2:
	ldr	w9, [x8]
	ldp	w10, w8, [x20]
	and	w19, w9, w10
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	bl	_net_random
	and	w8, w0, #0x7fffffff
	ldr	w9, [x20, #20]
	cmp	w19, #0
	cset	w10, eq
	cmp	w8, w9
	csel	w19, w19, w10, ge
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x0, _nth_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _nth_lock@GOTPAGEOFF]
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	ldr	w9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
	ldr	w10, [x20, #16]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
	str	wzr, [x8]
	cmp	w19, #0
	cset	w19, eq
LBB0_5:
Lloh5:
	adrp	x0, _nth_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _nth_lock@GOTPAGEOFF]
	bl	_spin_unlock_bh
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_XT_STATISTIC_INVERT,4,2        ; @XT_STATISTIC_INVERT
	.comm	_nth_lock,4,2                   ; @nth_lock
	.no_dead_strip	_statistic_mt
.subsections_via_symbols
