	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_pivot
_decode_pivot:                          ## @decode_pivot
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	4(%rdi), %rsi
	movq	%rbx, %rdi
	callq	*(%rbx)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	*(%rbx)
	cmpl	$2, %eax
	jl	LBB0_1
## %bb.2:
	movl	$-1, %ecx
	cmpl	$5, %r15d
	jl	LBB0_6
## %bb.3:
	leal	1(%r15), %esi
	shrl	%esi
	addl	$-2, %esi
	movq	%rbx, %rdi
	callq	*8(%rbx)
	addl	$3, %eax
	jmp	LBB0_4
LBB0_1:
	incl	%eax
LBB0_4:
	movl	$-1, %ecx
	cmpl	%r15d, %eax
	jae	LBB0_6
## %bb.5:
	subl	%eax, %r15d
	testl	%r14d, %r14d
	cmovel	%eax, %r15d
	movl	%r15d, %ecx
LBB0_6:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decode_pivot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_pivot
_decode_pivot:                          ; @decode_pivot
	.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, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x1]
	add	x1, x0, #4
	mov	x0, x21
	blr	x8
	mov	x20, x0
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	cmp	w0, #2
	b.lt	LBB0_3
; %bb.1:
	cmp	w19, #5
	b.ge	LBB0_4
; %bb.2:
	mov	w0, #-1
	b	LBB0_6
LBB0_3:
	add	w8, w0, #1
	b	LBB0_5
LBB0_4:
	add	w8, w19, #1
	lsr	w8, w8, #1
	sub	w1, w8, #2
	ldr	x8, [x21, #8]
	mov	x0, x21
	blr	x8
	add	w8, w0, #3
LBB0_5:
	mov	w9, #-1
	sub	w10, w19, w8
	cmp	w20, #0
	csel	w10, w8, w10, eq
	cmp	w8, w19
	csel	w0, w9, w10, hs
LBB0_6:
	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	_decode_pivot
.subsections_via_symbols
