	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_gamma
_decode_gamma:                          ## @decode_gamma
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movl	%esi, %r14d
	movq	%rdi, %rbx
	cmpl	$131, %edx
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
LBB0_2:
	movq	_P_NOTSET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_set_file_encoding
	movl	(%rbx), %edx
LBB0_4:
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_9
## %bb.5:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rdx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_png_sRGB_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %r14d
	jmp	LBB0_10
LBB0_9:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_png_error
	jmp	LBB0_10
LBB0_8:
	movl	%r14d, %eax
	shll	$8, %eax
	addl	%eax, %r14d
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movl	%r14d, %edi
	shll	$8, %edi
	addl	%r14d, %edi
	movl	16(%rbx), %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_png_gamma_16bit_correct        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_P_NOTSET,4,2                   ## @P_NOTSET
	.comm	_png_sRGB_table,8,3             ## @png_sRGB_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected encoding (internal error)"

	.no_dead_strip	_decode_gamma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_gamma
_decode_gamma:                          ; @decode_gamma
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #131
	b.ne	LBB0_2
; %bb.1:
	ldr	w2, [x20]
LBB0_2:
Lloh0:
	adrp	x8, _P_NOTSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _P_NOTSET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_set_file_encoding
	ldr	w2, [x20]
LBB0_4:
	sub	w8, w2, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.5:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
Lloh5:
	adrp	x8, _png_sRGB_table@GOTPAGE
Lloh6:
	ldr	x8, [x8, _png_sRGB_table@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w19, [x8, w19, sxtw #2]
	b	LBB0_9
LBB0_7:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_png_error
	b	LBB0_9
LBB0_8:
	add	w19, w19, w19, lsl #8
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	w0, w19, w19, lsl #8
	ldr	w1, [x20, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_png_gamma_16bit_correct
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_P_NOTSET,4,2                   ; @P_NOTSET
	.comm	_png_sRGB_table,8,3             ; @png_sRGB_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected encoding (internal error)"

	.no_dead_strip	_decode_gamma
.subsections_via_symbols
