	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log16
_log16:                                 ## @log16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	cmpl	$65536, %edi                    ## imm = 0x10000
	jge	LBB0_2
## %bb.1:
	movslq	%eax, %rcx
	movabsq	$4294967296, %rax               ## imm = 0x100000000
	xorl	%edx, %edx
	idivq	%rcx
	movl	%eax, %edi
	callq	_log16
	movl	%eax, %r9d
	negl	%r9d
LBB0_6:
	movl	%r9d, %eax
	popq	%rbp
	retq
LBB0_2:
	shll	$16, %eax
	movq	_exp16_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	xorl	%r9d, %r9d
	movl	$20, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$-1, %rdi
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r8,%rdi,4), %ecx
	movl	%ecx, %edx
	shll	$16, %edx
	cmpl	%edx, %eax
	jl	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cltd
	idivl	%ecx
	movl	%eax, %esi
	btsl	%edi, %r9d
	shll	$16, %esi
	shll	$16, %edx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	addl	%edx, %eax
	cltd
	idivl	%ecx
	addl	%esi, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_exp16_table,8,3                ## @exp16_table
	.no_dead_strip	_log16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log16
_log16:                                 ; @log16
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	cmp	w0, #16, lsl #12                ; =65536
	b.ge	LBB0_2
; %bb.1:
	sxtw	x8, w8
	mov	x9, #4294967296
	sdiv	x0, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_log16
	neg	w0, w0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	w0, #0
	lsl	w10, w8, #16
Lloh0:
	adrp	x8, _exp16_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _exp16_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #20
	mov	w11, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x9, x9, #1
	cmn	x9, #1
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x9, lsl #2]
	cmp	w10, w12, lsl #16
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w13, w11, w9
	orr	w0, w0, w13
	sdiv	w13, w10, w12
	msub	w10, w13, w12, w10
	lsl	w10, w10, #16
	cmp	w12, #0
	cinc	w14, w12, lt
	add	w10, w10, w14, asr #1
	sdiv	w10, w10, w12
	add	w10, w10, w13, lsl #16
	b	LBB0_3
LBB0_6:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_exp16_table,8,3                ; @exp16_table
	.no_dead_strip	_log16
.subsections_via_symbols
