	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_gamma_16bit_correct        ## -- Begin function png_gamma_16bit_correct
	.p2align	4, 0x90
_png_gamma_16bit_correct:               ## @png_gamma_16bit_correct
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
                                        ## kill: def $edi killed $edi def $rdi
	leal	-1(%rdi), %eax
	cmpl	$65533, %eax                    ## imm = 0xFFFD
	ja	LBB0_4
## %bb.1:
                                        ## kill: def $edi killed $edi killed $rdi
	movsd	%xmm0, -8(%rbp)                 ## 8-byte Spill
	callq	_png_log16bit
	movq	_PNG_FP_1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	-16(%rbp), %rdi
	movsd	-8(%rbp), %xmm0                 ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movl	%eax, %esi
	callq	_png_muldiv
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movsd	-16(%rbp), %xmm0                ## xmm0 = mem[0],zero
	callq	_png_exp16bit
	movl	%eax, %edi
	jmp	LBB0_4
LBB0_2:
	xorl	%edi, %edi
LBB0_4:
	movl	%edi, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_FP_1,4,2                   ## @PNG_FP_1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_gamma_16bit_correct        ; -- Begin function png_gamma_16bit_correct
	.p2align	2
_png_gamma_16bit_correct:               ; @png_gamma_16bit_correct
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
	sub	w8, w0, #1
	mov	w9, #65533
	cmp	w8, w9
	b.hi	LBB0_3
; %bb.1:
	fmov	d8, d0
	bl	_png_log16bit
	mov	x1, x0
Lloh0:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	fmov	d0, d8
	bl	_png_muldiv
	cbz	x0, LBB0_3
; %bb.2:
	ldr	d0, [sp, #8]
	bl	_png_exp16bit
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_FP_1,4,2                   ; @PNG_FP_1
.subsections_via_symbols
