	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_cHRM                ## -- Begin function png_handle_cHRM
	.p2align	4, 0x90
_png_handle_cHRM:                       ## @png_handle_cHRM
	.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
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%r12), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.5:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.6:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_png_chunk_error
LBB0_2:
	cmpl	$32, %ebx
	jne	LBB0_3
## %bb.9:
	leaq	-176(%rbp), %rsi
	movq	%r12, %rdi
	movl	$32, %edx
	callq	_png_crc_read
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	jne	LBB0_24
## %bb.10:
	leaq	-176(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movq	%rax, -272(%rbp)
	leaq	-160(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, -200(%rbp)                ## 8-byte Spill
	movq	%rax, -264(%rbp)
	leaq	-144(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, -192(%rbp)                ## 8-byte Spill
	movq	%rax, -256(%rbp)
	leaq	-128(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%rax, -248(%rbp)
	leaq	-112(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, %rbx
	movq	%rax, -240(%rbp)
	leaq	-96(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, %r13
	movq	%rax, -232(%rbp)
	leaq	-80(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, %r15
	movq	%rax, -224(%rbp)
	leaq	-64(%rbp), %rsi
	xorl	%edi, %edi
	callq	_png_get_fixed_point
	movq	%rax, -216(%rbp)
	movq	_PNG_FIXED_ERROR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-208(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_18
## %bb.11:
	cmpq	-200(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_18
## %bb.12:
	cmpq	-192(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_18
## %bb.13:
	cmpq	-184(%rbp), %rcx                ## 8-byte Folded Reload
	je	LBB0_18
## %bb.14:
	cmpq	%rbx, %rcx
	je	LBB0_18
## %bb.15:
	cmpq	%r13, %rcx
	je	LBB0_18
## %bb.16:
	cmpq	%r15, %rcx
	je	LBB0_18
## %bb.17:
	cmpq	%rax, %rcx
	je	LBB0_18
## %bb.20:
	movl	4(%r12), %eax
	movq	_PNG_COLORSPACE_INVALID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_24
## %bb.21:
	movq	_PNG_COLORSPACE_FROM_cHRM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_23
## %bb.22:
	orl	%eax, %ecx
	movl	%ecx, 4(%r12)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_png_colorspace_sync
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_19
LBB0_3:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.4:
	leaq	L_.str.3(%rip), %rsi
LBB0_8:
	movq	%r12, %rdi
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_18:
	leaq	L_.str.4(%rip), %rsi
LBB0_19:
	movq	%r12, %rdi
	callq	_png_chunk_benign_error
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	leaq	4(%r12), %rsi
	orl	%eax, %edx
	movl	%edx, 4(%r12)
	leaq	-272(%rbp), %rdx
	movq	%r12, %rdi
	movl	$1, %ecx
	callq	_png_colorspace_set_chromaticities
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_png_colorspace_sync
	jmp	LBB0_24
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_cHRM"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
	.comm	_PNG_HAVE_PLTE,4,2              ## @PNG_HAVE_PLTE
L_.str.2:                               ## @.str.2
	.asciz	"out of place"

L_.str.3:                               ## @.str.3
	.asciz	"invalid"

	.comm	_PNG_FIXED_ERROR,8,3            ## @PNG_FIXED_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"invalid values"

	.comm	_PNG_COLORSPACE_INVALID,4,2     ## @PNG_COLORSPACE_INVALID
	.comm	_PNG_COLORSPACE_FROM_cHRM,4,2   ## @PNG_COLORSPACE_FROM_cHRM
L_.str.5:                               ## @.str.5
	.asciz	"duplicate"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_cHRM                ; -- Begin function png_handle_cHRM
	.p2align	2
_png_handle_cHRM:                       ; @png_handle_cHRM
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #304
	.cfi_def_cfa_offset 304
	stp	x28, x27, [sp, #208]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #224]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #240]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #256]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #272]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #288]            ; 16-byte Folded Spill
	add	x29, sp, #288
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PNG_HAVE_PLTE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PNG_HAVE_PLTE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
	ldur	x8, [x29, #-96]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.3:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_20
LBB0_4:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
LBB0_5:
	cmp	w21, #32
	b.ne	LBB0_18
; %bb.6:
	add	x28, sp, #64
	add	x1, sp, #64
	mov	x0, x19
	mov	w2, #32
	bl	_png_crc_read
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbnz	x0, LBB0_23
; %bb.7:
	add	x1, sp, #64
	bl	_png_get_fixed_point
	mov	x21, x0
	str	x0, [sp]
	add	x1, x28, #16
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x22, x0
	str	x0, [sp, #8]
	add	x1, x28, #32
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x23, x0
	str	x0, [sp, #16]
	add	x1, x28, #48
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x24, x0
	str	x0, [sp, #24]
	add	x1, x28, #64
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x25, x0
	str	x0, [sp, #32]
	add	x1, x28, #80
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x26, x0
	str	x0, [sp, #40]
	add	x1, x28, #96
	mov	x0, #0
	bl	_png_get_fixed_point
	mov	x27, x0
	str	x0, [sp, #48]
	add	x1, x28, #112
	mov	x0, #0
	bl	_png_get_fixed_point
	str	x0, [sp, #56]
Lloh21:
	adrp	x8, _PNG_FIXED_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PNG_FIXED_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x8, x21
	b.eq	LBB0_21
; %bb.8:
	cmp	x8, x22
	b.eq	LBB0_21
; %bb.9:
	cmp	x8, x23
	b.eq	LBB0_21
; %bb.10:
	cmp	x8, x24
	b.eq	LBB0_21
; %bb.11:
	cmp	x8, x25
	b.eq	LBB0_21
; %bb.12:
	cmp	x8, x26
	b.eq	LBB0_21
; %bb.13:
	cmp	x8, x27
	b.eq	LBB0_21
; %bb.14:
	cmp	x8, x0
	b.eq	LBB0_21
; %bb.15:
	mov	x1, x19
	ldr	w8, [x1, #4]!
Lloh24:
	adrp	x9, _PNG_COLORSPACE_INVALID@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PNG_COLORSPACE_INVALID@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_23
; %bb.16:
Lloh27:
	adrp	x10, _PNG_COLORSPACE_FROM_cHRM@GOTPAGE
Lloh28:
	ldr	x10, [x10, _PNG_COLORSPACE_FROM_cHRM@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_25
; %bb.17:
	orr	w8, w9, w8
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x20
	bl	_png_colorspace_sync
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_18:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
	ldur	x8, [x29, #-96]
Lloh32:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh33:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.19:
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_20:
	mov	x0, x19
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	b	_png_chunk_benign_error
LBB0_21:
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_png_chunk_benign_error
LBB0_23:
	ldur	x8, [x29, #-96]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.24:
	ldp	x29, x30, [sp, #288]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #272]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #256]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #240]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #224]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #208]            ; 16-byte Folded Reload
	add	sp, sp, #304
	ret
LBB0_25:
	orr	w8, w10, w8
	str	w8, [x19, #4]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #1
	bl	_png_colorspace_set_chromaticities
	mov	x0, x19
	mov	x1, x20
	bl	_png_colorspace_sync
	b	LBB0_23
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_cHRM"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"missing IHDR"

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
	.comm	_PNG_HAVE_PLTE,4,2              ; @PNG_HAVE_PLTE
l_.str.2:                               ; @.str.2
	.asciz	"out of place"

l_.str.3:                               ; @.str.3
	.asciz	"invalid"

	.comm	_PNG_FIXED_ERROR,8,3            ; @PNG_FIXED_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"invalid values"

	.comm	_PNG_COLORSPACE_INVALID,4,2     ; @PNG_COLORSPACE_INVALID
	.comm	_PNG_COLORSPACE_FROM_cHRM,4,2   ; @PNG_COLORSPACE_FROM_cHRM
l_.str.5:                               ; @.str.5
	.asciz	"duplicate"

.subsections_via_symbols
