	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extended_count                 ## -- Begin function extended_count
	.p2align	4, 0x90
_extended_count:                        ## @extended_count
	.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
	movq	_nonzero_sign_valid@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %r15d
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movl	%r14d, %edi
	callq	_GET_MODE_BITSIZE
	movq	_HOST_BITS_PER_WIDE_INT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_5
## %bb.3:
	movl	%r14d, %edi
	callq	_GET_MODE_BITSIZE
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_nonzero_bits
	movl	%eax, %edi
	callq	_floor_log2
	movl	%eax, %ebx
	notl	%ebx
	addl	%r12d, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_num_sign_bit_copies
	movl	%eax, %ebx
	decl	%ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nonzero_sign_valid,8,3         ## @nonzero_sign_valid
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ## @HOST_BITS_PER_WIDE_INT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_extended_count                 ; -- Begin function extended_count
	.p2align	2
_extended_count:                        ; @extended_count
	.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
Lloh0:
	adrp	x8, _nonzero_sign_valid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nonzero_sign_valid@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	cbz	w2, LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_GET_MODE_BITSIZE
Lloh3:
	adrp	x8, _HOST_BITS_PER_WIDE_INT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HOST_BITS_PER_WIDE_INT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.le	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	mov	x1, x19
	bl	_num_sign_bit_copies
	sub	w0, w0, #1
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_GET_MODE_BITSIZE
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_nonzero_bits
	bl	_floor_log2
	mvn	w8, w0
	add	w0, w21, w8
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_nonzero_sign_valid,8,3         ; @nonzero_sign_valid
	.comm	_HOST_BITS_PER_WIDE_INT,4,2     ; @HOST_BITS_PER_WIDE_INT
.subsections_via_symbols
