	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_union                ## -- Begin function partition_union
	.p2align	4, 0x90
_partition_union:                       ## @partition_union
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %r9
	movl	(%rcx,%r9,8), %eax
	movslq	%edx, %rdi
	leaq	(%rdi,%rdi,2), %r10
	movl	(%rcx,%r10,8), %r8d
	cmpl	%r8d, %eax
	je	LBB0_5
## %bb.1:
	movq	8(%rcx,%r9,8), %rdi
	cmpq	8(%rcx,%r10,8), %rdi
	movl	%edx, %edi
	cmovll	%esi, %edi
	cmovll	%edx, %esi
	cmovll	%r8d, %eax
	movslq	%esi, %r8
	movslq	%edi, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	movslq	(%rcx,%rdx,8), %rsi
	leaq	(%rsi,%rsi,2), %rsi
	movq	8(%rcx,%rsi,8), %r9
	movslq	%eax, %rdi
	leaq	(%rdi,%rdi,2), %rsi
	addq	%r9, 8(%rcx,%rsi,8)
	leaq	(%rcx,%rdx,8), %rsi
	movl	%edi, (%rcx,%rdx,8)
	movq	16(%rcx,%rdx,8), %rdx
	cmpq	%rsi, %rdx
	je	LBB0_4
## %bb.2:
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdi)
	movq	16(%rdi), %rdi
	cmpq	%rsi, %rdi
	jne	LBB0_3
LBB0_4:
	leaq	(%r8,%r8,2), %rdi
	movq	16(%rcx,%rdi,8), %r8
	movq	%rdx, 16(%rcx,%rdi,8)
	movq	%r8, 16(%rsi)
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_partition_union                ; -- Begin function partition_union
	.p2align	2
_partition_union:                       ; @partition_union
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w2 killed $w2 def $x2
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x8, [x0]
	mov	w9, #24
	smull	x10, w1, w9
	ldr	w0, [x8, x10]
	smull	x10, w2, w9
	ldr	w10, [x8, x10]
	cmp	w0, w10
	b.eq	LBB0_5
; %bb.1:
	sxtw	x11, w1
	sxtw	x12, w2
	madd	x11, x11, x9, x8
	ldr	x11, [x11, #8]
	madd	x12, x12, x9, x8
	ldr	x12, [x12, #8]
	cmp	x11, x12
	csel	w11, w1, w2, lt
	csel	w12, w2, w1, lt
	csel	w0, w10, w0, lt
	sxtw	x10, w12
	smaddl	x11, w11, w9, x8
	ldrsw	x12, [x11]
	madd	x12, x12, x9, x8
	ldr	x12, [x12, #8]
	smaddl	x9, w0, w9, x8
	ldr	x13, [x9, #8]
	add	x12, x13, x12
	str	x12, [x9, #8]
	str	w0, [x11]
	mov	x9, x11
	ldr	x12, [x9, #16]!
	cmp	x12, x11
	b.eq	LBB0_4
; %bb.2:
	mov	x13, x12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	w0, [x13]
	ldr	x13, [x13, #16]
	cmp	x13, x11
	b.ne	LBB0_3
LBB0_4:
	mov	w11, #24
	madd	x8, x10, x11, x8
	ldr	x10, [x8, #16]
	str	x12, [x8, #16]
	str	x10, [x9]
LBB0_5:
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
