	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function adjust_ReturnBW
LCPI0_0:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_1:
	.quad	0x4010000000000000              ## double 4
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x4090000000000000              ## double 1024
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_adjust_ReturnBW:                       ## @adjust_ReturnBW
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movapd	%xmm1, %xmm6
	movl	%esi, %r14d
	movapd	%xmm0, %xmm5
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movsd	(%rbx), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	8(%rbx), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	ucomisd	%xmm0, %xmm6
	jbe	LBB0_3
## %bb.2:
	cvtsi2sdl	16(%rbx), %xmm2
	movl	20(%rbx), %eax
	subl	24(%rbx), %eax
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	shll	$10, %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	%xmm6, %xmm3
	divsd	%xmm6, %xmm1
	subsd	%xmm0, %xmm1
	movapd	%xmm2, %xmm0
	divsd	%xmm1, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	addsd	%xmm2, %xmm1
	mulsd	%xmm3, %xmm1
	movapd	%xmm5, %xmm0
	movsd	%xmm6, -24(%rbp)                ## 8-byte Spill
	callq	_dml_min
	movsd	-24(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
	movapd	%xmm0, %xmm5
LBB0_3:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.4:
	movl	20(%rbx), %eax
	subl	24(%rbx), %eax
	movl	%eax, %ecx
	shll	$10, %ecx
	movsd	(%rbx), %xmm7                   ## xmm7 = mem[0],zero
	movsd	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movapd	%xmm1, %xmm3
	addsd	%xmm1, %xmm3
	mulsd	%xmm7, %xmm3
	xorps	%xmm2, %xmm2
	cvtsi2sdl	16(%rbx), %xmm2
	mulsd	%xmm2, %xmm3
	cvtsi2sd	%ecx, %xmm4
	movapd	%xmm6, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm4, %xmm0
	divsd	%xmm0, %xmm3
	ucomisd	LCPI0_2(%rip), %xmm3
	jbe	LBB0_6
## %bb.5:
	movsd	LCPI0_1(%rip), %xmm4            ## xmm4 = mem[0],zero
	ucomisd	%xmm3, %xmm4
	jbe	LBB0_6
## %bb.7:
	mulsd	LCPI0_1(%rip), %xmm6
	xorps	%xmm3, %xmm3
	cvtsi2sd	%eax, %xmm3
	mulsd	%xmm6, %xmm3
	mulsd	LCPI0_3(%rip), %xmm3
	mulsd	%xmm3, %xmm1
	mulsd	%xmm1, %xmm7
	mulsd	%xmm2, %xmm7
	movsd	%xmm7, -32(%rbp)                ## 8-byte Spill
	movl	$2, %edi
	movsd	%xmm5, -24(%rbp)                ## 8-byte Spill
	callq	_dml_pow
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	-24(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_dml_min                        ## TAILCALL
LBB0_6:
	movapd	%xmm5, %xmm0
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_adjust_ReturnBW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adjust_ReturnBW
_adjust_ReturnBW:                       ; @adjust_ReturnBW
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	fmov	d9, d1
	mov	x20, x1
	fmov	d8, d0
	mov	x19, x0
	cbz	w1, LBB0_3
; %bb.1:
	ldp	d0, d1, [x19]
	fmul	d0, d0, d1
	fmov	d1, #0.25000000
	fmul	d0, d0, d1
	fcmp	d0, d9
	b.pl	LBB0_3
; %bb.2:
	fmov	d1, #4.00000000
	fmul	d1, d9, d1
	ldr	s2, [x19, #16]
	sshll.2d	v2, v2, #0
	scvtf	d2, d2
	ldp	w8, w9, [x19, #20]
	sub	w8, w8, w9
	lsl	w8, w8, #10
	scvtf	d3, w8
	fdiv	d3, d3, d9
	fsub	d0, d3, d0
	fdiv	d0, d2, d0
	fmov	d3, #1.00000000
	fsub	d0, d3, d0
	fadd	d0, d0, d2
	fmul	d1, d1, d0
	fmov	d0, d8
	bl	_dml_min
	fmov	d8, d0
LBB0_3:
	cbz	w20, LBB0_6
; %bb.4:
	ldp	d2, d1, [x19]
	fadd	d0, d1, d1
	fmul	d0, d0, d2
	ldr	s3, [x19, #16]
	sshll.2d	v3, v3, #0
	scvtf	d3, d3
	fmul	d4, d0, d3
	ldp	w8, w9, [x19, #20]
	sub	w8, w8, w9
	lsl	w9, w8, #10
	scvtf	d0, w9
	fmadd	d0, d9, d3, d0
	fdiv	d5, d4, d0
	fmov	d4, #1.00000000
	fcmp	d5, d4
	fmov	d4, #4.00000000
	fccmp	d5, d4, #0, gt
	b.pl	LBB0_6
; %bb.5:
	fmul	d4, d9, d4
	scvtf	d5, w8
	fmul	d4, d4, d5
	mov	x8, #4652218415073722368
	fmov	d5, x8
	fmul	d4, d4, d5
	fmul	d1, d1, d4
	fmul	d1, d2, d1
	fmul	d9, d1, d3
	mov	w0, #2
	bl	_dml_pow
	fdiv	d1, d9, d0
	fmov	d0, d8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_dml_min
LBB0_6:
	fmov	d0, d8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_adjust_ReturnBW
.subsections_via_symbols
