	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aarch64_ext_sve_scale          ## -- Begin function aarch64_ext_sve_scale
	.p2align	4, 0x90
_aarch64_ext_sve_scale:                 ## @aarch64_ext_sve_scale
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	callq	_aarch64_ext_imm
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_FLD_SVE_imm4@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_extract_field
                                        ## kill: def $eax killed $eax def $rax
	movq	_AARCH64_MOD_MUL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	leal	1(%rax), %ecx
	movl	%ecx, (%rbx)
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, 4(%rbx)
	movl	%ecx, 8(%rbx)
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_FLD_SVE_imm4,4,2               ## @FLD_SVE_imm4
	.comm	_AARCH64_MOD_MUL,4,2            ## @AARCH64_MOD_MUL
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aarch64_ext_sve_scale          ; -- Begin function aarch64_ext_sve_scale
	.p2align	2
_aarch64_ext_sve_scale:                 ; @aarch64_ext_sve_scale
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x1
	bl	_aarch64_ext_imm
	cbz	w0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLD_SVE_imm4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLD_SVE_imm4@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x20
	mov	w2, #0
	bl	_extract_field
Lloh3:
	adrp	x8, _AARCH64_MOD_MUL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AARCH64_MOD_MUL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w9, w0, #1
	cmp	w0, #0
	cset	w10, ne
	stp	w9, w10, [x19]
	stp	w10, w8, [x19, #8]
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_FLD_SVE_imm4,4,2               ; @FLD_SVE_imm4
	.comm	_AARCH64_MOD_MUL,4,2            ; @AARCH64_MOD_MUL
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
