	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function redistribute3
_redistribute3:                         ## @redistribute3
	.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
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	48(%rbp), %r14d
	movl	40(%rbp), %ebx
	movl	32(%rbp), %r15d
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movl	8(%r9), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	leal	(%rbx,%r15), %eax
	movl	%r14d, %ebx
	addl	%r14d, %eax
	movl	$2863311531, %r12d              ## imm = 0xAAAAAAAB
	imulq	%rax, %r12
	shrq	$33, %r12
	leal	(%r12,%r12,2), %ecx
	xorl	%r14d, %r14d
	cmpl	%eax, %ecx
	setne	%r14b
	addl	%r12d, %r14d
	xorl	%edi, %edi
	cmpl	%r13d, %r14d
	seta	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	%r13d, %r12d
	seta	%dil
	callq	_BUG_ON
	cmpl	%ebx, %r15d
	jae	LBB0_6
## %bb.1:
	subl	%r14d, %r15d
	jns	LBB0_4
## %bb.2:
	movl	%r15d, %eax
	negl	%eax
	movl	40(%rbp), %ecx
	cmpl	%ecx, %eax
	jbe	LBB0_4
## %bb.3:
	movl	40(%rbp), %eax
	movl	%ebx, %r13d
	movq	%rax, %rbx
	movl	%ebx, %edx
	negl	%edx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	16(%rbp), %rsi
	callq	_shift
	addl	%ebx, %r15d
	movq	%r14, %rdi
	movq	24(%rbp), %r14
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_shift
	addl	%r13d, %r15d
	movl	%r15d, %ebx
	movq	%r14, %r15
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_6:
	subl	%ebx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_9
## %bb.7:
	movl	%r12d, %ebx
	movl	40(%rbp), %eax
	subl	%eax, %ebx
	jbe	LBB0_9
## %bb.8:
	movq	16(%rbp), %rdi
	movq	24(%rbp), %r12
	movq	%r12, %rsi
	movl	40(%rbp), %edx
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_shift
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_shift
	movq	%r13, %rdi
	subl	%ebx, %r15d
	movq	16(%rbp), %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_10
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	16(%rbp), %rsi
	movl	%r15d, %edx
	callq	_shift
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	24(%rbp), %r15
LBB0_5:
	subl	%ebx, %r12d
	movq	16(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	callq	_shift
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_9:
	movq	16(%rbp), %rbx
	movq	%rbx, %rdi
	movq	24(%rbp), %rsi
	movl	%r12d, %edx
	callq	_shift
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	subl	%r14d, %r15d
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_shift
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	24(%rbp), %r15
LBB0_11:
	movq	(%rbx), %rax
	movl	(%rax), %ebx
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_key_ptr
	movl	%ebx, (%rax)
	movq	(%r15), %rax
	movl	(%rax), %ebx
	movl	(%r14), %esi
	movq	%r13, %rdi
	callq	_key_ptr
	movl	%ebx, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_redistribute3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function redistribute3
_redistribute3:                         ; @redistribute3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x7
	mov	x22, x6
	mov	x24, x5
	stp	x3, x4, [sp]                    ; 16-byte Folded Spill
	mov	x20, x1
	ldp	w25, w27, [x29, #20]
	ldr	w28, [x29, #16]
	ldr	w0, [x5, #8]
	bl	_le32_to_cpu
	mov	x26, x0
	add	w8, w25, w28
	add	w8, w8, w27
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	umull	x9, w8, w9
	lsr	x21, x9, #33
	add	w9, w21, w21, lsl #1
	cmp	w9, w8
	cinc	w23, w21, ne
	cmp	w23, w0
	cset	w0, hi
	bl	_BUG_ON
	cmp	w21, w26
	cset	w0, hi
	bl	_BUG_ON
	cmp	w28, w27
	b.hs	LBB0_4
; %bb.1:
	sub	w26, w28, w23
	tbz	w26, #31, LBB0_6
; %bb.2:
	neg	w8, w26
	cmp	w8, w25
	b.ls	LBB0_6
; %bb.3:
	neg	w2, w25
	mov	x0, x24
	mov	x1, x22
	bl	_shift
	add	w25, w26, w25
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_shift
	add	w27, w25, w27
	b	LBB0_7
LBB0_4:
	sub	w26, w21, w27
	cmp	w26, #1
	mov	x0, x22
	mov	x1, x19
	ccmp	w26, w25, #0, ge
	b.hi	LBB0_8
; %bb.5:
	mov	x2, x26
	bl	_shift
	b	LBB0_9
LBB0_6:
	mov	x0, x24
	mov	x1, x22
	mov	x2, x26
	bl	_shift
LBB0_7:
	ldp	x24, x23, [sp]                  ; 16-byte Folded Reload
	sub	w2, w21, w27
	mov	x0, x22
	mov	x1, x19
	bl	_shift
	b	LBB0_10
LBB0_8:
	mov	x2, x25
	bl	_shift
	sub	w25, w26, w25
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_shift
	sub	w28, w28, w25
LBB0_9:
	sub	w2, w28, w23
	mov	x0, x24
	mov	x1, x22
	bl	_shift
	ldp	x24, x23, [sp]                  ; 16-byte Folded Reload
LBB0_10:
	ldr	x8, [x22]
	ldr	w21, [x8]
	ldr	w1, [x24]
	mov	x0, x20
	bl	_key_ptr
	str	w21, [x0]
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_key_ptr
	str	w19, [x0]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_redistribute3
.subsections_via_symbols
