	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function search
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x00000000                      ## float 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_search:                                ## @search
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	%r9d, %r15d
	movl	%r8d, %r12d
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %rbx
	movl	16(%rbp), %eax
	cmpl	%edx, %esi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	jge	LBB0_2
## %bb.1:
	incl	%esi
	movl	%ecx, %r13d
	sarl	%ecx
	leal	1(%r12), %r8d
	sarl	%r8d
	movl	%r15d, %r9d
	sarl	%r9d
	leal	1(%rax), %r14d
	sarl	%r14d
	subq	$8, %rsp
	leaq	-64(%rbp), %r10
	leaq	-68(%rbp), %r11
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movq	%rbx, %rdi
	pushq	%r10
	pushq	%r11
	pushq	%r14
	callq	_search
	addq	$32, %rsp
	movl	-68(%rbp), %r14d
	leal	(%r14,%r14), %esi
	addl	$-4, %esi
	movl	%r13d, %edi
	callq	_FFMAX
	movl	%eax, %r13d
	leal	(%r14,%r14), %esi
	addl	$4, %esi
	movl	%r12d, %edi
	callq	_FFMIN
	movl	%eax, %r12d
	movl	-64(%rbp), %r14d
	leal	(%r14,%r14), %esi
	addl	$-4, %esi
	movl	%r15d, %edi
	callq	_FFMAX
	movl	%eax, %r15d
	leal	(%r14,%r14), %esi
	addl	$4, %esi
	movl	16(%rbp), %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_FFMIN
	movl	%r13d, %ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_2:
	cmpl	%eax, %r15d
	jle	LBB0_3
LBB0_10:
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movslq	-56(%rbp), %r13                 ## 4-byte Folded Reload
	leal	1(%r12), %r14d
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%r15), %eax
	cmpl	-80(%rbp), %r15d                ## 4-byte Folded Reload
	movl	%eax, %r15d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	je	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	cmpl	%r12d, %ecx
	jg	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ecx, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incl	%r12d
	cmpl	%r12d, %r14d
	je	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movl	(%rcx,%r13,4), %edi
	movl	(%rax,%r13,4), %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	callq	_compare
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movaps	%xmm0, %xmm1
	cmpneqss	LCPI0_1(%rip), %xmm1
	movd	%xmm1, %edi
	andl	$1, %edi
	callq	_av_assert0
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movaps	%xmm1, %xmm0
	movq	24(%rbp), %rax
	movl	%r12d, (%rax)
	movq	32(%rbp), %rax
	movl	%r15d, (%rax)
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function search
_search:                                ; @search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	fmov	s8, s0
	mov	x19, x7
	mov	x20, x6
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x25, x1
	mov	x21, x0
	cmp	w1, w2
	b.ge	LBB0_2
; %bb.1:
	add	w1, w25, #1
	asr	w3, w24, #1
	add	w8, w23, #1
	asr	w4, w8, #1
	asr	w5, w22, #1
	add	w8, w20, #1
	asr	w6, w8, #1
	add	x8, sp, #8
	str	x8, [sp]
	add	x7, sp, #12
	fmov	s0, #1.00000000
	mov	x0, x21
	bl	_search
	ldr	w8, [sp, #12]
	lsl	w26, w8, #1
	sub	w1, w26, #4
	mov	x0, x24
	bl	_FFMAX
	mov	x24, x0
	add	w1, w26, #4
	mov	x0, x23
	bl	_FFMIN
	mov	x23, x0
	ldr	w8, [sp, #8]
	lsl	w26, w8, #1
	sub	w1, w26, #4
	mov	x0, x22
	bl	_FFMAX
	mov	x22, x0
	add	w1, w26, #4
	mov	x0, x20
	bl	_FFMIN
	mov	x20, x0
LBB0_2:
	cmp	w22, w20
	b.le	LBB0_4
LBB0_3:
	fmov	s0, s8
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	ldr	x26, [x29, #16]
	sxtw	x8, w25
	add	w27, w23, #1
	lsl	x28, x8, #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w22, #1
	cmp	w22, w20
	mov	x22, x8
	b.eq	LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	cmp	w24, w23
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x25, x24
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w25, w25, #1
	cmp	w27, w25
	b.eq	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [x21]
	ldr	w0, [x8, x28]
	ldr	w1, [x9, x28]
	mov	x2, x25
	mov	x3, x22
	bl	_compare
	fmov	s9, s0
	fcmp	s0, #0.0
	cset	w0, ne
	bl	_av_assert0
	fcmp	s9, s8
	b.pl	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	str	w25, [x19]
	str	w22, [x26]
	fmov	s8, s9
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_search
.subsections_via_symbols
