	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_build_gamma_table          ## -- Begin function png_build_gamma_table
	.p2align	4, 0x90
_png_build_gamma_table:                 ## @png_build_gamma_table
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	cmpq	$0, 88(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpq	$0, 48(%rbx)
	je	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_warning
	movq	%rbx, %rdi
	callq	_png_destroy_gamma_table
LBB0_3:
	cmpl	$8, %r14d
	jg	LBB0_8
## %bb.4:
	leaq	88(%rbx), %r14
	movq	(%rbx), %rsi
	testq	%rsi, %rsi
	jle	LBB0_6
## %bb.5:
	movq	24(%rbx), %rdi
	callq	_png_reciprocal2
	movq	%rax, %rdx
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_PNG_FP_1@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
LBB0_7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_png_build_8bit_table           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_build_gamma_table"

L_.str.1:                               ## @.str.1
	.asciz	"gamma table being rebuilt"

	.comm	_PNG_FP_1,8,3                   ## @PNG_FP_1
	.comm	_PNG_16_TO_8,4,2                ## @PNG_16_TO_8
	.comm	_PNG_COLOR_MASK_COLOR,4,2       ## @PNG_COLOR_MASK_COLOR
	.comm	_PNG_COMPOSE,4,2                ## @PNG_COMPOSE
	.comm	_PNG_MAX_GAMMA_8,4,2            ## @PNG_MAX_GAMMA_8
	.comm	_PNG_RGB_TO_GRAY,4,2            ## @PNG_RGB_TO_GRAY
	.comm	_PNG_SCALE_16_TO_8,4,2          ## @PNG_SCALE_16_TO_8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_build_gamma_table          ; -- Begin function png_build_gamma_table
	.p2align	2
_png_build_gamma_table:                 ; @png_build_gamma_table
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [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 w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	mov	x20, x19
	ldr	x8, [x20, #88]!
	cbnz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_warning
	mov	x0, x19
	bl	_png_destroy_gamma_table
LBB0_3:
	cmp	w21, #8
	b.gt	LBB0_6
; %bb.4:
	ldr	x1, [x19]
	cmp	x1, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x0, [x19, #24]
	bl	_png_reciprocal2
	mov	x2, x0
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh4:
	adrp	x8, _PNG_FP_1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PNG_FP_1@GOTPAGEOFF]
Lloh6:
	ldr	x2, [x8]
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_png_build_8bit_table
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_build_gamma_table"

l_.str.1:                               ; @.str.1
	.asciz	"gamma table being rebuilt"

	.comm	_PNG_FP_1,8,3                   ; @PNG_FP_1
	.comm	_PNG_16_TO_8,4,2                ; @PNG_16_TO_8
	.comm	_PNG_COLOR_MASK_COLOR,4,2       ; @PNG_COLOR_MASK_COLOR
	.comm	_PNG_COMPOSE,4,2                ; @PNG_COMPOSE
	.comm	_PNG_MAX_GAMMA_8,4,2            ; @PNG_MAX_GAMMA_8
	.comm	_PNG_RGB_TO_GRAY,4,2            ; @PNG_RGB_TO_GRAY
	.comm	_PNG_SCALE_16_TO_8,4,2          ; @PNG_SCALE_16_TO_8
.subsections_via_symbols
