	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_leave_state
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_4:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_5:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_leave_state:                       ## @get_leave_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NUM_JOIN_MEMBERSHIP_TYPES@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	testl	%r10d, %r10d
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rsi
	xorl	%r8d, %r8d
	cmpl	$8, %r10d
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_4:
	movl	%r10d, %ecx
	andl	$-8, %ecx
	leaq	-8(%rcx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r9, %rdx
	andq	$-2, %rdx
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm12, %xmm12
	xorl	%eax, %eax
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm13           ## xmm13 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_4(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_5(%rip), %xmm11           ## xmm11 = [16,16,16,16]
	pxor	%xmm1, %xmm1
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm0
	paddd	%xmm8, %xmm0
	movdqu	(%rsi,%rax,4), %xmm3
	movdqu	16(%rsi,%rax,4), %xmm5
	movdqu	32(%rsi,%rax,4), %xmm7
	movdqu	48(%rsi,%rax,4), %xmm14
	pcmpeqd	%xmm12, %xmm3
	pcmpeqd	%xmm12, %xmm5
	movdqa	%xmm6, %xmm4
	pslld	$23, %xmm4
	paddd	%xmm13, %xmm4
	cvttps2dq	%xmm4, %xmm4
	pand	%xmm3, %xmm4
	por	%xmm1, %xmm4
	pslld	$23, %xmm0
	paddd	%xmm13, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pand	%xmm5, %xmm0
	por	%xmm2, %xmm0
	movdqa	%xmm6, %xmm1
	paddd	%xmm9, %xmm1
	movdqa	%xmm6, %xmm2
	paddd	%xmm10, %xmm2
	pcmpeqd	%xmm12, %xmm7
	pcmpeqd	%xmm12, %xmm14
	pslld	$23, %xmm1
	paddd	%xmm13, %xmm1
	cvttps2dq	%xmm1, %xmm1
	pand	%xmm7, %xmm1
	por	%xmm4, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm13, %xmm2
	cvttps2dq	%xmm2, %xmm2
	pand	%xmm14, %xmm2
	por	%xmm0, %xmm2
	addq	$16, %rax
	paddd	%xmm11, %xmm6
	addq	$-2, %rdx
	jne	LBB0_7
## %bb.8:
	testb	$1, %r9b
	je	LBB0_10
LBB0_9:
	movdqa	LCPI0_1(%rip), %xmm0            ## xmm0 = [4,4,4,4]
	paddd	%xmm6, %xmm0
	movdqu	(%rsi,%rax,4), %xmm3
	movdqu	16(%rsi,%rax,4), %xmm4
	pxor	%xmm5, %xmm5
	pcmpeqd	%xmm5, %xmm3
	pcmpeqd	%xmm5, %xmm4
	pslld	$23, %xmm6
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm5, %xmm6
	cvttps2dq	%xmm6, %xmm6
	pand	%xmm3, %xmm6
	por	%xmm6, %xmm1
	pslld	$23, %xmm0
	paddd	%xmm5, %xmm0
	cvttps2dq	%xmm0, %xmm0
	pand	%xmm4, %xmm0
	por	%xmm0, %xmm2
LBB0_10:
	por	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	por	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	por	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%r10, %rcx
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	$0, (%rsi,%rcx,4)
	cmovnel	%r8d, %edx
	orl	%edx, %eax
	incq	%rcx
	cmpq	%rcx, %r10
	jne	LBB0_11
LBB0_12:
	andl	(%rdi), %eax
	popq	%rbp
	retq
LBB0_5:
	movdqa	LCPI0_0(%rip), %xmm6            ## xmm6 = [0,1,2,3]
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	testb	$1, %r9b
	jne	LBB0_9
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_JOIN_MEMBERSHIP_TYPES,4,2  ## @NUM_JOIN_MEMBERSHIP_TYPES
	.no_dead_strip	_get_leave_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function get_leave_state
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_get_leave_state:                       ; @get_leave_state
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NUM_JOIN_MEMBERSHIP_TYPES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_JOIN_MEMBERSHIP_TYPES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	w8, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_7
LBB0_3:
	mov	w11, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff0
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #4
	movi.4s	v2, #8
Lloh3:
	adrp	x11, lCPI0_0@PAGE
Lloh4:
	ldr	q3, [x11, lCPI0_0@PAGEOFF]
	add	x11, x9, #32
	movi.4s	v4, #12
	movi.4s	v5, #1
	movi.4s	v6, #16
	mov	x12, x10
	movi.2d	v7, #0000000000000000
	movi.2d	v16, #0000000000000000
	movi.2d	v17, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v18, v3, v1
	add.4s	v19, v3, v2
	add.4s	v20, v3, v4
	ldp	q21, q22, [x11, #-32]
	ldp	q23, q24, [x11], #64
	cmeq.4s	v21, v21, #0
	cmeq.4s	v22, v22, #0
	cmeq.4s	v23, v23, #0
	cmeq.4s	v24, v24, #0
	ushl.4s	v25, v5, v3
	ushl.4s	v18, v5, v18
	ushl.4s	v19, v5, v19
	ushl.4s	v20, v5, v20
	and.16b	v21, v25, v21
	and.16b	v18, v18, v22
	and.16b	v19, v19, v23
	and.16b	v20, v20, v24
	orr.16b	v0, v21, v0
	orr.16b	v7, v18, v7
	orr.16b	v16, v19, v16
	orr.16b	v17, v20, v17
	add.4s	v3, v3, v6
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	orr.16b	v0, v7, v0
	orr.16b	v0, v16, v0
	orr.16b	v0, v17, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	mov	w12, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9, x10, lsl #2]
	lsl	w14, w12, w10
	cmp	w13, #0
	csel	w13, w14, wzr, eq
	orr	w11, w13, w11
	add	x10, x10, #1
	cmp	x8, x10
	b.ne	LBB0_8
LBB0_9:
	ldr	w8, [x0]
	and	w0, w8, w11
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_JOIN_MEMBERSHIP_TYPES,4,2  ; @NUM_JOIN_MEMBERSHIP_TYPES
	.no_dead_strip	_get_leave_state
.subsections_via_symbols
