	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcelem_array_selec
_mcelem_array_selec:                    ## @mcelem_array_selec
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movl	12(%rsi), %esi
	movl	8(%r13), %edx
	movl	(%r13), %r8d
	movl	4(%r13), %ecx
	leaq	-52(%rbp), %rax
	leaq	-80(%rbp), %r10
	leaq	-48(%rbp), %r9
	pushq	%rax
	pushq	%r10
	callq	_deconstruct_array
	addq	$16, %rsp
	movl	-52(%rbp), %esi
	testl	%esi, %esi
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	-80(%rbp), %rax
	xorl	%ecx, %ecx
	movq	-48(%rbp), %rdx
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	32(%rbp), %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rdx,%rcx,4), %esi
	movslq	%r12d, %rbx
	incl	%r12d
	movl	%esi, (%rdx,%rbx,4)
	movl	-52(%rbp), %esi
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rcx
	movslq	%esi, %rbx
	cmpq	%rbx, %rcx
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	jmp	LBB0_6
LBB0_7:
	testl	%edi, %edi
	je	LBB0_8
## %bb.9:
	movq	_OID_ARRAY_CONTAINS_OP@GOTPCREL(%rip), %rax
	xorps	%xmm0, %xmm0
	cmpl	%r8d, (%rax)
	movq	%r8, %rbx
	je	LBB0_16
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
	movl	32(%rbp), %ebx
	jmp	LBB0_10
LBB0_8:
	movq	%r8, %rbx
LBB0_10:
	movq	-48(%rbp), %rdi
	movq	_element_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %esi
	movl	$4, %edx
	movq	%r13, %r8
	callq	_qsort_arg
	movq	_OID_ARRAY_CONTAINS_OP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_12
## %bb.11:
	movq	_OID_ARRAY_OVERLAP_OP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	je	LBB0_12
## %bb.13:
	movq	_OID_ARRAY_CONTAINED_OP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_15
## %bb.14:
	movl	24(%rbp), %eax
	movq	-48(%rbp), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r9d
	pushq	%r13
	pushq	%rbx
	pushq	%rax
	pushq	16(%rbp)
	callq	_mcelem_array_contained_selec
	addq	$32, %rsp
	jmp	LBB0_16
LBB0_12:
	movq	-48(%rbp), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movq	%r14, %rdx
	movl	%r15d, %ecx
	movl	%r12d, %r9d
	pushq	%r13
	pushq	%rbx
	callq	_mcelem_array_contain_overlap_selec
	addq	$16, %rsp
	jmp	LBB0_16
LBB0_15:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_elog
	xorps	%xmm0, %xmm0
LBB0_16:
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rdi
	callq	_pfree
	movq	-80(%rbp), %rdi
	callq	_pfree
	movsd	-64(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OID_ARRAY_CONTAINS_OP,4,2      ## @OID_ARRAY_CONTAINS_OP
	.comm	_element_compare,4,2            ## @element_compare
	.comm	_OID_ARRAY_OVERLAP_OP,4,2       ## @OID_ARRAY_OVERLAP_OP
	.comm	_OID_ARRAY_CONTAINED_OP,4,2     ## @OID_ARRAY_CONTAINED_OP
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"arraycontsel called for unrecognized operator %u"

	.no_dead_strip	_mcelem_array_selec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcelem_array_selec
_mcelem_array_selec:                    ; @mcelem_array_selec
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x7
	mov	x22, x6
	mov	x20, x5
	mov	x23, x4
	mov	x25, x3
	mov	x26, x2
	mov	x24, x1
	ldr	w19, [x29, #16]
	ldr	w1, [x1, #12]
	ldp	w3, w2, [x24, #4]
	ldr	w4, [x24]
	add	x5, sp, #32
	add	x6, sp, #24
	add	x7, sp, #44
	bl	_deconstruct_array
	ldr	w11, [sp, #44]
Lloh0:
	adrp	x28, _OID_ARRAY_CONTAINS_OP@GOTPAGE
Lloh1:
	ldr	x28, [x28, _OID_ARRAY_CONTAINS_OP@GOTPAGEOFF]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x8, #0
	mov	w27, #0
	mov	w9, #0
	ldp	x10, x12, [sp, #24]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x12, x8, lsl #2]
	str	w11, [x12, w27, sxtw #2]
	add	w27, w27, #1
	ldr	w11, [sp, #44]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x8, w11, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x8, lsl #2]
	cbz	w13, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	b	LBB0_3
LBB0_6:
	cbz	w9, LBB0_9
; %bb.7:
	ldr	w8, [x28]
	movi	d8, #0000000000000000
	cmp	w8, w19
	b.eq	LBB0_14
	b	LBB0_9
LBB0_8:
	mov	w27, #0
LBB0_9:
	ldr	x0, [sp, #32]
Lloh2:
	adrp	x8, _element_compare@GOTPAGE
Lloh3:
	ldr	x8, [x8, _element_compare@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x1, x27
	mov	w2, #4
	mov	x4, x24
	bl	_qsort_arg
	ldr	w8, [x28]
Lloh5:
	adrp	x9, _OID_ARRAY_OVERLAP_OP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OID_ARRAY_OVERLAP_OP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_11
; %bb.10:
	ldr	x4, [sp, #32]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x20
	mov	x5, x27
	mov	x6, x19
	mov	x7, x24
	bl	_mcelem_array_contain_overlap_selec
	fmov	d8, d0
	b	LBB0_14
LBB0_11:
Lloh8:
	adrp	x8, _OID_ARRAY_CONTAINED_OP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OID_ARRAY_CONTAINED_OP@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_13
; %bb.12:
	ldr	x4, [sp, #32]
	str	x24, [sp, #8]
	str	w19, [sp]
	mov	x0, x26
	mov	x1, x25
	mov	x2, x23
	mov	x3, x20
	mov	x5, x27
	mov	x6, x22
	mov	x7, x21
	bl	_mcelem_array_contained_selec
	fmov	d8, d0
	b	LBB0_14
LBB0_13:
Lloh11:
	adrp	x8, _ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_elog
	movi	d8, #0000000000000000
LBB0_14:
	ldr	x0, [sp, #32]
	bl	_pfree
	ldr	x0, [sp, #24]
	bl	_pfree
	fmov	d0, d8
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_OID_ARRAY_CONTAINS_OP,4,2      ; @OID_ARRAY_CONTAINS_OP
	.comm	_element_compare,4,2            ; @element_compare
	.comm	_OID_ARRAY_OVERLAP_OP,4,2       ; @OID_ARRAY_OVERLAP_OP
	.comm	_OID_ARRAY_CONTAINED_OP,4,2     ; @OID_ARRAY_CONTAINED_OP
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"arraycontsel called for unrecognized operator %u"

	.no_dead_strip	_mcelem_array_selec
.subsections_via_symbols
