	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zl6100_d2l
_zl6100_d2l:                            ## @zl6100_d2l
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	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
	movq	%rdi, %r14
	negq	%rdi
	cmovsq	%r14, %rdi
	movq	_MAX_MANTISSA@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	cmpq	%rcx, %rdi
	jl	LBB0_5
## %bb.3:
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	1(%rdx), %eax
	shrq	%rdi
	cmpq	%rcx, %rdi
	jl	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$14, %edx
	movl	%eax, %edx
	jb	LBB0_4
LBB0_5:
	movq	_MIN_MANTISSA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdi
	jge	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%rax), %ebx
	addq	%rdi, %rdi
	cmpq	%rcx, %rdi
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$-14, %eax
	movl	%ebx, %eax
	jg	LBB0_8
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	retq
LBB0_6:
	movl	%eax, %ebx
LBB0_10:
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_DIV_ROUND_CLOSEST
	cmpl	$1023, %eax                     ## imm = 0x3FF
	movl	$1023, %ecx                     ## imm = 0x3FF
	cmovll	%eax, %ecx
	movl	%ecx, %edx
	negl	%edx
	testq	%r14, %r14
	cmovnsl	%ecx, %edx
	andl	$2047, %edx                     ## imm = 0x7FF
	shll	$11, %ebx
	movzwl	%bx, %eax
	orl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_MANTISSA,8,3               ## @MAX_MANTISSA
	.comm	_MIN_MANTISSA,8,3               ## @MIN_MANTISSA
	.no_dead_strip	_zl6100_d2l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zl6100_d2l
_zl6100_d2l:                            ; @zl6100_d2l
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_9
; %bb.1:
	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	x19, x0
	cmp	x0, #0
	cneg	x0, x0, mi
Lloh0:
	adrp	x8, _MAX_MANTISSA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_MANTISSA@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	cmp	x0, x9
	b.ge	LBB0_3
; %bb.2:
	mov	w8, #0
	b	LBB0_5
LBB0_3:
	mov	w10, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w10, #1
	lsr	x0, x0, #1
	cmp	x0, x9
	ccmp	w10, #14, #2, ge
	mov	x10, x8
	b.lo	LBB0_4
LBB0_5:
Lloh3:
	adrp	x9, _MIN_MANTISSA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIN_MANTISSA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w8, #1
	lsl	x0, x0, #1
	cmp	x0, x9
	ccmn	w8, #14, #4, lt
	mov	x8, x20
	b.gt	LBB0_6
	b	LBB0_8
LBB0_7:
	mov	x20, x8
LBB0_8:
	mov	w1, #1000
	bl	_DIV_ROUND_CLOSEST
	mov	w8, #1023
	cmp	w0, #1023
	csel	w8, w0, w8, lt
	cmp	x19, #0
	cneg	w8, w8, lt
	and	w0, w8, #0x7ff
	bfi	w0, w20, #11, #5
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_MANTISSA,8,3               ; @MAX_MANTISSA
	.comm	_MIN_MANTISSA,8,3               ; @MIN_MANTISSA
	.no_dead_strip	_zl6100_d2l
.subsections_via_symbols
