	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_unpremultiply
_png_unpremultiply:                     ## @png_unpremultiply
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$255, %eax
	cmpl	%esi, %edi
	jge	LBB0_4
## %bb.1:
	cmpl	$128, %esi
	jl	LBB0_4
## %bb.2:
	testl	%edi, %edi
	jle	LBB0_3
## %bb.5:
	imull	%edi, %edx
	addl	$64, %edx
	sarl	$7, %edx
	movl	%edi, %eax
	shll	$8, %eax
	subl	%edi, %eax
	cmpl	$65407, %esi                    ## imm = 0xFF7F
	cmovbl	%edx, %eax
	movl	%eax, %edi
	popq	%rbp
	jmp	_PNG_sRGB_FROM_LINEAR           ## TAILCALL
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_png_unpremultiply
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_unpremultiply
_png_unpremultiply:                     ; @png_unpremultiply
	.cfi_startproc
; %bb.0:
	mov	w8, #255
	cmp	w0, w1
	b.ge	LBB0_5
; %bb.1:
	cmp	w1, #128
	b.lt	LBB0_5
; %bb.2:
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.3:
	orr	w8, wzr, #0x40
	madd	w8, w2, w0, w8
	asr	w8, w8, #7
	lsl	w9, w0, #8
	sub	w9, w9, w0
	mov	w10, #65407
	cmp	w1, w10
	csel	w0, w8, w9, lo
	b	_PNG_sRGB_FROM_LINEAR
LBB0_4:
	mov	w8, #0
LBB0_5:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_png_unpremultiply
.subsections_via_symbols
