	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function png_log16bit
LCPI0_0:
	.quad	0x40efffe000000000              ## double 65535
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_png_log16bit:                          ## @png_log16bit
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cvtsi2sd	%edi, %xmm0
	divsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	callq	_log
	movq	_L2INV@GOTPCREL(%rip), %rax
	mulsd	(%rax), %xmm0
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	movapd	%xmm1, %xmm0
	popq	%rbp
	jmp	_floor                          ## TAILCALL
LBB0_1:
	movl	$-1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L2INV,8,3                      ## @L2INV
	.no_dead_strip	_png_log16bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_log16bit
_png_log16bit:                          ; @png_log16bit
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.lt	LBB0_2
; %bb.1:
	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
	scvtf	d0, w0
	mov	x8, #281337537757184
	movk	x8, #16623, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	bl	_log
Lloh0:
	adrp	x8, _L2INV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _L2INV@GOTPAGEOFF]
Lloh2:
	ldr	d1, [x8]
	fmov	d2, #0.50000000
	fmsub	d0, d0, d1, d2
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_floor
LBB0_2:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_L2INV,8,3                      ; @L2INV
	.no_dead_strip	_png_log16bit
.subsections_via_symbols
