	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gamma_info_imp
_gamma_info_imp:                        ## @gamma_info_imp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r12
	leaq	32(%rdi), %r15
	movq	%r15, %rdi
	callq	_standard_info_part1
	cmpq	$0, 48(%r12)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	callq	_png_error
LBB0_2:
	cmpq	$0, 40(%r12)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	callq	_png_error
LBB0_4:
	movl	(%r12), %eax
	movq	_ALPHA_MODE_OFFSET@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_5
## %bb.6:
	movsd	8(%r12), %xmm0                  ## xmm0 = mem[0],zero
	callq	_fix
	movl	%eax, %ebx
	movsd	16(%r12), %xmm0                 ## xmm0 = mem[0],zero
	callq	_fix
	movl	%r13d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_png_set_gamma_fixed
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movl	%r13d, %edi
	callq	_png_error
LBB0_9:
	movl	(%r15), %ebx
	incl	%ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movl	%r14d, %esi
	callq	_png_read_update_info
	decl	%ebx
	cmpl	$1, %ebx
	jg	LBB0_10
## %bb.11:
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%r14d, %edx
	movl	$1, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_standard_info_part2            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scale16 (16 to 8 bit conversion) not supported"

L_.str.1:                               ## @.str.1
	.asciz	"expand16 (8 to 16 bit conversion) not supported"

	.comm	_ALPHA_MODE_OFFSET,4,2          ## @ALPHA_MODE_OFFSET
L_.str.2:                               ## @.str.2
	.asciz	"alpha mode handling not supported"

L_.str.3:                               ## @.str.3
	.asciz	"png_set_background not supported"

	.comm	_PNG_ALPHA_STANDARD,4,2         ## @PNG_ALPHA_STANDARD
	.no_dead_strip	_gamma_info_imp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gamma_info_imp
_gamma_info_imp:                        ; @gamma_info_imp
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	add	x21, x0, #32
	mov	x0, x21
	bl	_standard_info_part1
	ldr	x8, [x22, #48]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_png_error
LBB0_2:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_4
; %bb.3:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_png_error
LBB0_4:
	ldr	w8, [x22]
Lloh4:
	adrp	x9, _ALPHA_MODE_OFFSET@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ALPHA_MODE_OFFSET@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_7
; %bb.5:
	ldr	d0, [x22, #8]
	bl	_fix
	mov	x23, x0
	ldr	d0, [x22, #16]
	bl	_fix
	mov	x2, x0
	mov	x0, x20
	mov	x1, x23
	bl	_png_set_gamma_fixed
	ldr	w8, [x22]
	cbz	w8, LBB0_9
; %bb.6:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_png_error
LBB0_9:
	ldr	w8, [x21]
	add	w22, w8, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x19
	bl	_png_read_update_info
	sub	w22, w22, #1
	cmp	w22, #1
	b.gt	LBB0_10
; %bb.11:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_standard_info_part2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scale16 (16 to 8 bit conversion) not supported"

l_.str.1:                               ; @.str.1
	.asciz	"expand16 (8 to 16 bit conversion) not supported"

	.comm	_ALPHA_MODE_OFFSET,4,2          ; @ALPHA_MODE_OFFSET
l_.str.2:                               ; @.str.2
	.asciz	"alpha mode handling not supported"

l_.str.3:                               ; @.str.3
	.asciz	"png_set_background not supported"

	.comm	_PNG_ALPHA_STANDARD,4,2         ; @PNG_ALPHA_STANDARD
	.no_dead_strip	_gamma_info_imp
.subsections_via_symbols
