	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_log8bit
_png_log8bit:                           ## @png_log8bit
	.cfi_startproc
## %bb.0:
	movl	%edi, %eax
	andl	$255, %eax
	je	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%eax, %ecx
	shll	$4, %ecx
	xorl	%esi, %esi
	testb	$-16, %dil
	sete	%sil
	cmovnel	%eax, %ecx
	leal	(,%rsi,4), %eax
	leal	(,%rcx,4), %edx
	testb	$-64, %cl
	leal	2(,%rsi,4), %esi
	cmovnel	%ecx, %edx
	cmovnel	%eax, %esi
	movl	%edx, %edi
	shrl	$7, %edi
	andl	$1, %edi
	movl	%edi, %ecx
	xorb	$1, %cl
	shll	%cl, %edx
	orl	%esi, %edi
	xorl	$1, %edi
	shll	$16, %edi
	movq	_png_8bit_l2@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addl	$-128, %edx
	movl	$32768, %eax                    ## imm = 0x8000
	addl	(%rcx,%rdx,4), %eax
	sarl	$16, %eax
	addl	%edi, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_png_8bit_l2,8,3                ## @png_8bit_l2
	.no_dead_strip	_png_log8bit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_log8bit
_png_log8bit:                           ; @png_log8bit
	.cfi_startproc
; %bb.0:
	ands	w8, w0, #0xff
	b.eq	LBB0_2
; %bb.1:
	tst	w0, #0xf0
	cset	w9, eq
	lsl	w10, w8, #4
	csel	w8, w10, w8, eq
	lsl	w10, w9, #2
	mov	w11, #2
	bfi	w11, w9, #2, #1
	lsl	w9, w8, #2
	tst	w8, #0xc0
	csel	w8, w9, w8, eq
	csel	w9, w11, w10, eq
	ubfx	w10, w8, #7, #1
	eor	w10, w10, #0x1
	lsl	w10, w8, w10
	bfxil	w9, w8, #7, #1
	lsl	w8, w9, #16
	eor	w8, w8, #0x10000
Lloh0:
	adrp	x9, _png_8bit_l2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _png_8bit_l2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	w10, w10, #128
	ldr	w9, [x9, w10, uxtw #2]
	add	w9, w9, #8, lsl #12             ; =32768
	add	w0, w8, w9, asr #16
	ret
LBB0_2:
	mov	w0, #-1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_png_8bit_l2,8,3                ; @png_8bit_l2
	.no_dead_strip	_png_log8bit
.subsections_via_symbols
