	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function choose_mult_variant
_choose_mult_variant:                   ## @choose_mult_variant
	.cfi_startproc
## %bb.0:
	testl	%r8d, %r8d
	js	LBB0_1
## %bb.2:
	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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	callq	_GET_MODE_BITSIZE
	movl	%eax, %ebx
	movq	_add_cost@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	imull	(%rax,%r12,4), %ebx
	addl	%ebx, %ebx
	cmpl	%r14d, %ebx
	cmovgel	%r14d, %ebx
	movq	_basic_variant@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
	movl	%ebx, -48(%rbp)
	movl	%ebx, -44(%rbp)
	leaq	-48(%rbp), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	%r13d, %esi
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	%r13d, %ecx
	callq	_synth_mult
	movq	_HOST_BITS_PER_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	callq	_GET_MODE_BITSIZE
	cmpl	%eax, %r14d
	jl	LBB0_8
## %bb.3:
	movq	_neg_cost@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r12,4), %r14d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MULT_COST_LESS
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	(%r15), %eax
	subl	%r14d, %eax
	movl	%eax, -48(%rbp)
	movl	4(%r15), %eax
	subl	%r14d, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_5:
	movl	%ebx, %eax
	subl	%r14d, %eax
	movl	%eax, -48(%rbp)
LBB0_6:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	negl	%esi
	leaq	-64(%rbp), %r12
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_synth_mult
	addl	%r14d, -64(%rbp)
	addl	%r14d, -60(%rbp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_CHEAPER_MULT_COST
	testq	%rax, %rax
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_8
## %bb.7:
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
	movq	_negate_variant@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_8:
	movq	_add_cost@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %r13d
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MULT_COST_LESS
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	(%r15), %eax
	subl	%r13d, %eax
	movl	%eax, -48(%rbp)
	movl	4(%r15), %eax
	subl	%r13d, %eax
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %eax
	subl	%r13d, %eax
	movl	%eax, -48(%rbp)
LBB0_11:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	decl	%esi
	leaq	-64(%rbp), %r14
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	callq	_synth_mult
	addl	%r13d, -64(%rbp)
	addl	%r13d, -60(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_CHEAPER_MULT_COST
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
	movq	_add_variant@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_13:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_MULT_COST_LESS
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_add_cost,8,3                   ## @add_cost
	.comm	_basic_variant,4,2              ## @basic_variant
	.comm	_HOST_BITS_PER_INT,4,2          ## @HOST_BITS_PER_INT
	.comm	_neg_cost,8,3                   ## @neg_cost
	.comm	_negate_variant,4,2             ## @negate_variant
	.comm	_add_variant,4,2                ## @add_variant
	.no_dead_strip	_choose_mult_variant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function choose_mult_variant
_choose_mult_variant:                   ; @choose_mult_variant
	.cfi_startproc
; %bb.0:
	tbnz	w4, #31, LBB0_4
; %bb.1:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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_remember_state
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
	bl	_GET_MODE_BITSIZE
Lloh0:
	adrp	x24, _add_cost@GOTPAGE
Lloh1:
	ldr	x24, [x24, _add_cost@GOTPAGEOFF]
	ldr	x8, [x24]
	mov	w25, w22
	ldr	w8, [x8, w22, uxtw #2]
	mul	w8, w0, w8
	lsl	w8, w8, #1
Lloh2:
	adrp	x9, _basic_variant@GOTPAGE
Lloh3:
	ldr	x9, [x9, _basic_variant@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w21
	csel	w21, w8, w21, lt
	str	w9, [x20]
	stp	w21, w21, [sp]
	mov	x2, sp
	mov	x0, x19
	mov	x1, x23
	mov	x3, x22
	bl	_synth_mult
Lloh5:
	adrp	x8, _HOST_BITS_PER_INT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOST_BITS_PER_INT@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
	mov	x0, x22
	bl	_GET_MODE_BITSIZE
	cmp	w26, w0
	b.lt	LBB0_8
; %bb.2:
Lloh8:
	adrp	x8, _neg_cost@GOTPAGE
Lloh9:
	ldr	x8, [x8, _neg_cost@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w26, [x8, x25, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_MULT_COST_LESS
	cbz	w0, LBB0_5
; %bb.3:
	ldp	w8, w9, [x19]
	sub	w8, w8, w26
	str	w8, [sp]
	sub	w8, w9, w26
	b	LBB0_6
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	mov	w0, #0
	ret
LBB0_5:
	.cfi_restore_state
	sub	w8, w21, w26
	str	w8, [sp]
LBB0_6:
	str	w8, [sp, #4]
	neg	w1, w23
	add	x0, sp, #8
	mov	x2, sp
	mov	x3, x22
	bl	_synth_mult
	ldr	d0, [sp, #8]
	dup.2s	v1, w26
	add.2s	v0, v0, v1
	str	d0, [sp, #8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_CHEAPER_MULT_COST
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x19]
Lloh11:
	adrp	x8, _negate_variant@GOTPAGE
Lloh12:
	ldr	x8, [x8, _negate_variant@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_8:
	ldr	x8, [x24]
	ldr	w24, [x8, x25, lsl #2]
	mov	x0, x19
	mov	x1, x21
	bl	_MULT_COST_LESS
	cbz	w0, LBB0_10
; %bb.9:
	ldp	w8, w9, [x19]
	sub	w8, w8, w24
	str	w8, [sp]
	sub	w8, w9, w24
	b	LBB0_11
LBB0_10:
	sub	w8, w21, w24
	str	w8, [sp]
LBB0_11:
	str	w8, [sp, #4]
	sub	w1, w23, #1
	add	x0, sp, #8
	mov	x2, sp
	mov	x3, x22
	bl	_synth_mult
	ldr	d0, [sp, #8]
	dup.2s	v1, w24
	add.2s	v0, v0, v1
	str	d0, [sp, #8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_CHEAPER_MULT_COST
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x8, [sp, #8]
	str	x8, [x19]
Lloh14:
	adrp	x8, _add_variant@GOTPAGE
Lloh15:
	ldr	x8, [x8, _add_variant@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_13:
	mov	x0, x19
	mov	x1, x21
	bl	_MULT_COST_LESS
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_add_cost,8,3                   ; @add_cost
	.comm	_basic_variant,4,2              ; @basic_variant
	.comm	_HOST_BITS_PER_INT,4,2          ; @HOST_BITS_PER_INT
	.comm	_neg_cost,8,3                   ; @neg_cost
	.comm	_negate_variant,4,2             ; @negate_variant
	.comm	_add_variant,4,2                ; @add_variant
	.no_dead_strip	_choose_mult_variant
.subsections_via_symbols
