	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lin2dBd
_lin2dBd:                               ## @lin2dBd
	.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	%edi, %ebx
	xorl	%edi, %edi
	testl	%ebx, %ebx
	sete	%dil
	callq	_WARN_ON
	movq	%rax, %rcx
	movl	$-10000, %eax                   ## imm = 0xD8F0
	testq	%rcx, %rcx
	jne	LBB0_8
## %bb.1:
	movl	%ebx, %edi
	callq	_fls
	addl	$-16, %eax
	movswl	%ax, %r14d
	testw	%r14w, %r14w
	jle	LBB0_3
## %bb.2:
	movl	%r14d, %ecx
	shrl	%cl, %ebx
	jmp	LBB0_4
LBB0_3:
	movl	%r14d, %edi
	callq	_abs
	movl	%eax, %ecx
	shll	%cl, %ebx
LBB0_4:
	movl	%ebx, %eax
	shrl	$3, %eax
	movl	%ebx, %ecx
	cmpl	$47104, %ebx                    ## imm = 0xB800
	ja	LBB0_6
## %bb.5:
	shrl	$4, %ecx
	addl	%ebx, %eax
	addl	%ecx, %eax
	addl	$-38400, %eax                   ## imm = 0xFFFF6A00
	jmp	LBB0_7
LBB0_6:
	shrl	$6, %ecx
	addl	%eax, %ecx
	negl	%ecx
	leal	(%rbx,%rcx), %eax
	addl	$-23040, %eax                   ## imm = 0xA600
LBB0_7:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	shll	$15, %r14d
	leal	(%r14,%rcx), %eax
	addl	$491520, %eax                   ## imm = 0x78000
	leal	(%rax,%rax,2), %ecx
	movl	%eax, %edx
	sarl	$6, %edx
	leal	(%rdx,%rcx,2), %ecx
	sarl	$7, %eax
	addl	%ecx, %eax
	sarl	$10, %eax
LBB0_8:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lin2dBd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lin2dBd
_lin2dBd:                               ; @lin2dBd
	.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, x0
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-10000
	b	LBB0_6
LBB0_2:
	mov	x0, x20
	bl	_fls
	sub	w8, w0, #16
	sxth	w19, w8
	cmp	w19, #1
	b.lt	LBB0_4
; %bb.3:
	lsr	w8, w20, w19
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_abs
	lsl	w8, w20, w0
LBB0_5:
	lsr	w9, w8, #3
	mov	w10, #47104
	add	w11, w9, w8, lsr #6
	mov	w12, #-23040
	sub	w11, w8, w11
	add	w11, w11, w12
	add	w9, w8, w9
	add	w9, w9, w8, lsr #4
	mov	w12, #-38400
	add	w9, w9, w12
	cmp	w8, w10
	csel	w8, w11, w9, hi
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	add	w8, w8, w19, lsl #15
	add	w8, w8, #120, lsl #12           ; =491520
	mov	w9, #6
	mul	w9, w8, w9
	add	w9, w9, w8, asr #6
	add	w8, w9, w8, asr #7
	asr	w0, w8, #10
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lin2dBd
.subsections_via_symbols
