	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_partition_pair
_find_partition_pair:                   ## @find_partition_pair
	.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
	movl	%esi, %r12d
	movq	%rdi, %r14
	cmpl	%esi, %edx
	movl	%esi, %r13d
	cmovgl	%edx, %r13d
	cmovll	%edx, %r12d
	movq	(%rdi), %rax
	movslq	%r12d, %r15
	movq	(%rax,%r15,8), %rdx
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	je	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %rax
	cmpl	%r13d, (%rdx)
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rdx
	movq	%rax, %rbx
	testq	%rdx, %rdx
	jne	LBB0_2
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.7:
	movl	$4, %edi
	callq	_xmalloc
	movl	%r12d, 4(%rax)
	movl	%r13d, (%rax)
	movq	$0, 16(%rax)
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	addq	$8, %rbx
	jmp	LBB0_10
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	shlq	$3, %r15
	addq	(%r14), %r15
	movq	%r15, %rbx
LBB0_10:
	movq	(%rbx), %rcx
	movq	%rcx, 8(%rax)
	movq	%rax, (%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_find_partition_pair
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_partition_pair
_find_partition_pair:                   ; @find_partition_pair
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cmp	w2, w1
	csel	w21, w2, w1, gt
	csel	w20, w2, w1, lt
	ldr	x8, [x0]
	ldr	x8, [x8, w20, sxtw #3]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	ldr	w8, [x8]
	cmp	w8, w21
	b.eq	LBB0_12
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x0, #8]
	mov	x22, x0
	cbnz	x8, LBB0_2
LBB0_5:
	cbz	w3, LBB0_9
LBB0_6:
	mov	w0, #4
	bl	_xmalloc
	stp	w21, w20, [x0]
	str	xzr, [x0, #16]
	cbz	x22, LBB0_10
; %bb.7:
	add	x8, x22, #8
	b	LBB0_11
LBB0_8:
	mov	x22, #0
	cbnz	w3, LBB0_6
LBB0_9:
	mov	x0, #0
	b	LBB0_12
LBB0_10:
	sxtw	x8, w20
	ldr	x9, [x19]
	add	x8, x9, x8, lsl #3
LBB0_11:
	ldr	x9, [x8]
	str	x9, [x0, #8]
	str	x0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_find_partition_pair
.subsections_via_symbols
