	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bw_mul                         ## -- Begin function bw_mul
	.p2align	4, 0x90
_bw_mul:                                ## @bw_mul
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_abs_i64
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_abs_i64
	movl	%eax, %r12d
	movl	%r13d, %edi
	callq	_BW_FIXED_GET_INTEGER_PART
	movl	%eax, %r14d
	movl	%r12d, %edi
	callq	_BW_FIXED_GET_INTEGER_PART
	movl	%eax, %r15d
	movl	%r13d, %edi
	callq	_GET_FRACTIONAL_PART
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_GET_FRACTIONAL_PART
	movl	%eax, %r12d
	movl	%r15d, %eax
	imull	%r14d, %eax
	movslq	%eax, %r13
	movq	_BW_FIXED_MAX_I32@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r13d
	setle	%dil
	callq	_ASSERT
	movq	_BW_FIXED_BITS_PER_FRACTIONAL_PART@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r13
	imull	%r12d, %r14d
	movq	_MAX_I64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r13d, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setle	%dil
	callq	_ASSERT
	movslq	%r14d, %rbx
	addq	%r13, %rbx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	imull	%r13d, %r15d
	movq	_MAX_I64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%ebx, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setle	%dil
	callq	_ASSERT
	movslq	%r15d, %r14
	addq	%rbx, %r14
	imull	%r13d, %r12d
	movq	_BW_FIXED_BITS_PER_FRACTIONAL_PART@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%r12d, %r15d
	sarl	%cl, %r15d
	movl	$1, %edi
	movl	$2, %esi
	callq	_bw_frc_to_fixed
	xorl	%ebx, %ebx
	cmpl	%eax, %r12d
	setge	%bl
	addl	%r15d, %ebx
	movq	_MAX_I64@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%r14d, %eax
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setle	%dil
	callq	_ASSERT
	movslq	%ebx, %rcx
	addq	%r14, %rcx
	movq	%rcx, %rax
	negq	%rax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorq	-64(%rbp), %rdx                 ## 8-byte Folded Reload
	cmovnsq	%rcx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BW_FIXED_MAX_I32,4,2           ## @BW_FIXED_MAX_I32
	.comm	_BW_FIXED_BITS_PER_FRACTIONAL_PART,4,2 ## @BW_FIXED_BITS_PER_FRACTIONAL_PART
	.comm	_MAX_I64,4,2                    ## @MAX_I64
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bw_mul                         ; -- Begin function bw_mul
	.p2align	2
_bw_mul:                                ; @bw_mul
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x20, x0
	bl	_abs_i64
	mov	x21, x0
	mov	x0, x19
	bl	_abs_i64
	mov	x22, x0
	mov	x0, x21
	bl	_BW_FIXED_GET_INTEGER_PART
	mov	x23, x0
	mov	x0, x22
	bl	_BW_FIXED_GET_INTEGER_PART
	mov	x24, x0
	mov	x0, x21
	bl	_GET_FRACTIONAL_PART
	mov	x21, x0
	mov	x0, x22
	bl	_GET_FRACTIONAL_PART
	mov	x22, x0
	mul	w8, w24, w23
	sxtw	x25, w8
Lloh0:
	adrp	x9, _BW_FIXED_MAX_I32@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BW_FIXED_MAX_I32@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, le
	bl	_ASSERT
Lloh3:
	adrp	x26, _BW_FIXED_BITS_PER_FRACTIONAL_PART@GOTPAGE
Lloh4:
	ldr	x26, [x26, _BW_FIXED_BITS_PER_FRACTIONAL_PART@GOTPAGEOFF]
	ldr	w8, [x26]
	lsl	x25, x25, x8
	mul	w23, w22, w23
Lloh5:
	adrp	x27, _MAX_I64@GOTPAGE
Lloh6:
	ldr	x27, [x27, _MAX_I64@GOTPAGEOFF]
	ldr	w8, [x27]
	sub	w8, w8, w25
	cmp	w23, w8
	cset	w0, le
	bl	_ASSERT
	add	x23, x25, w23, sxtw
	mul	w24, w21, w24
	ldr	w8, [x27]
	sub	w8, w8, w23
	cmp	w24, w8
	cset	w0, le
	bl	_ASSERT
	add	x23, x23, w24, sxtw
	mul	w21, w22, w21
	ldr	w8, [x26]
	asr	w22, w21, w8
	mov	w0, #1
	mov	w1, #2
	bl	_bw_frc_to_fixed
	cmp	w21, w0
	cinc	w21, w22, ge
	ldr	w8, [x27]
	sub	w8, w8, w23
	cmp	w21, w8
	cset	w0, le
	bl	_ASSERT
	add	x8, x23, w21, sxtw
	eor	x9, x19, x20
	cmp	x9, #0
	cneg	x0, x8, lt
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BW_FIXED_MAX_I32,4,2           ; @BW_FIXED_MAX_I32
	.comm	_BW_FIXED_BITS_PER_FRACTIONAL_PART,4,2 ; @BW_FIXED_BITS_PER_FRACTIONAL_PART
	.comm	_MAX_I64,4,2                    ; @MAX_I64
.subsections_via_symbols
