	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_location
_check_location:                        ## @check_location
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %r14
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	movq	_PNG_AFTER_IDAT@GOTPCREL(%rip), %r12
	orl	(%r12), %ecx
	andl	%esi, %ecx
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	_PNG_IS_READ_STRUCT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_app_warning
	movl	(%r15), %ecx
	orl	(%r14), %ecx
	orl	(%r12), %ecx
	andl	(%rbx), %ecx
	jne	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	movl	%ecx, %edx
	negl	%edx
	andl	%ecx, %edx
	movl	%edx, %ecx
	xorl	%eax, %ecx
	cmpl	%edx, %eax
	jne	LBB0_4
## %bb.5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
	.comm	_PNG_HAVE_PLTE,4,2              ## @PNG_HAVE_PLTE
	.comm	_PNG_AFTER_IDAT,4,2             ## @PNG_AFTER_IDAT
	.comm	_PNG_IS_READ_STRUCT,4,2         ## @PNG_IS_READ_STRUCT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"png_set_unknown_chunks now expects a valid location"

L_.str.1:                               ## @.str.1
	.asciz	"invalid location in png_set_unknown_chunks"

	.no_dead_strip	_check_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_location
_check_location:                        ; @check_location
	.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
Lloh0:
	adrp	x20, _PNG_HAVE_IHDR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PNG_HAVE_IHDR@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _PNG_HAVE_PLTE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _PNG_HAVE_PLTE@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w8, w9, w8
Lloh4:
	adrp	x22, _PNG_AFTER_IDAT@GOTPAGE
Lloh5:
	ldr	x22, [x22, _PNG_AFTER_IDAT@GOTPAGEOFF]
	ldr	w9, [x22]
	orr	w8, w8, w9
	ands	w8, w8, w1
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _PNG_IS_READ_STRUCT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PNG_IS_READ_STRUCT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_png_app_warning
	ldr	w8, [x19]
	ldr	w9, [x20]
	ldr	w10, [x21]
	orr	w9, w10, w9
	ldr	w10, [x22]
	orr	w9, w9, w10
	ands	w8, w9, w8
	b.ne	LBB0_4
LBB0_3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_error
	mov	w8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x8
	neg	w8, w8
	and	w9, w0, w8
	eor	w8, w9, w0
	cmp	w0, w9
	b.ne	LBB0_4
; %bb.5:
	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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
	.comm	_PNG_HAVE_PLTE,4,2              ; @PNG_HAVE_PLTE
	.comm	_PNG_AFTER_IDAT,4,2             ; @PNG_AFTER_IDAT
	.comm	_PNG_IS_READ_STRUCT,4,2         ; @PNG_IS_READ_STRUCT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"png_set_unknown_chunks now expects a valid location"

l_.str.1:                               ; @.str.1
	.asciz	"invalid location in png_set_unknown_chunks"

	.no_dead_strip	_check_location
.subsections_via_symbols
