	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lodepng_inspect                ## -- Begin function lodepng_inspect
	.p2align	4, 0x90
_lodepng_inspect:                       ## @lodepng_inspect
	.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
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	testq	%r12, %r12
	jne	LBB0_3
LBB0_2:
	movl	(%r15), %edi
	movl	$48, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_3:
	leaq	8(%r15), %r14
	cmpq	$28, %r12
	ja	LBB0_5
## %bb.4:
	movl	(%r15), %edi
	movl	$27, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_5:
	movq	%r14, %rdi
	callq	_lodepng_info_cleanup
	movq	%r14, %rdi
	callq	_lodepng_info_init
	cmpb	$-119, (%rbx)
	jne	LBB0_13
## %bb.6:
	cmpb	$80, 1(%rbx)
	jne	LBB0_13
## %bb.7:
	cmpb	$78, 2(%rbx)
	jne	LBB0_13
## %bb.8:
	cmpb	$71, 3(%rbx)
	jne	LBB0_13
## %bb.9:
	cmpb	$13, 4(%rbx)
	jne	LBB0_13
## %bb.10:
	cmpb	$10, 5(%rbx)
	jne	LBB0_13
## %bb.11:
	cmpb	$26, 6(%rbx)
	jne	LBB0_13
## %bb.12:
	cmpb	$10, 7(%rbx)
	je	LBB0_14
LBB0_13:
	movl	(%r15), %edi
	movl	$28, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_14:
	cmpb	$73, 12(%rbx)
	jne	LBB0_18
## %bb.15:
	cmpb	$72, 13(%rbx)
	jne	LBB0_18
## %bb.16:
	cmpb	$68, 14(%rbx)
	jne	LBB0_18
## %bb.17:
	cmpb	$82, 15(%rbx)
	je	LBB0_19
LBB0_18:
	movl	(%r15), %edi
	movl	$29, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_19:
	leaq	16(%rbx), %rdi
	callq	_lodepng_read32bitInt
	movl	%eax, (%r13)
	leaq	20(%rbx), %rdi
	callq	_lodepng_read32bitInt
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movb	24(%rbx), %al
	movb	%al, 16(%r15)
	movzbl	25(%rbx), %eax
	movq	%rax, 24(%r15)
	movb	26(%rbx), %al
	movb	%al, 8(%r15)
	movb	27(%rbx), %al
	movb	%al, 9(%r15)
	movb	28(%rbx), %al
	movb	%al, 10(%r15)
	cmpl	$0, 4(%r15)
	jne	LBB0_22
## %bb.20:
	leaq	12(%rbx), %r12
	addq	$29, %rbx
	movq	%rbx, %rdi
	callq	_lodepng_read32bitInt
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$17, %esi
	callq	_lodepng_crc32
	cmpl	%eax, %ebx
	je	LBB0_22
## %bb.21:
	movl	(%r15), %edi
	movl	$57, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_22:
	cmpb	$0, (%r14)
	je	LBB0_24
## %bb.23:
	movl	(%r15), %edi
	movl	$32, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_24:
	cmpb	$0, 9(%r15)
	je	LBB0_26
## %bb.25:
	movl	(%r15), %edi
	movl	$33, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_26:
	cmpb	$2, 10(%r15)
	jb	LBB0_28
## %bb.27:
	movl	(%r15), %edi
	movl	$34, %esi
	callq	_CERROR_RETURN_ERROR
LBB0_28:
	movq	24(%r15), %rdi
	movzbl	16(%r15), %esi
	callq	_checkColorValidity
	movl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lodepng_inspect                ; -- Begin function lodepng_inspect
	.p2align	2
_lodepng_inspect:                       ; @lodepng_inspect
	.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	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	cbz	x3, LBB0_2
; %bb.1:
	cbnz	x24, LBB0_3
LBB0_2:
	ldr	w0, [x19]
	mov	w1, #48
	bl	_CERROR_RETURN_ERROR
LBB0_3:
	add	x20, x19, #8
	cmp	x24, #28
	b.hi	LBB0_5
; %bb.4:
	ldr	w0, [x19]
	mov	w1, #27
	bl	_CERROR_RETURN_ERROR
LBB0_5:
	mov	x0, x20
	bl	_lodepng_info_cleanup
	mov	x0, x20
	bl	_lodepng_info_init
	ldrb	w8, [x21]
	cmp	w8, #137
	b.ne	LBB0_13
; %bb.6:
	ldrb	w8, [x21, #1]
	cmp	w8, #80
	b.ne	LBB0_13
; %bb.7:
	ldrb	w8, [x21, #2]
	cmp	w8, #78
	b.ne	LBB0_13
; %bb.8:
	ldrb	w8, [x21, #3]
	cmp	w8, #71
	b.ne	LBB0_13
; %bb.9:
	ldrb	w8, [x21, #4]
	cmp	w8, #13
	b.ne	LBB0_13
; %bb.10:
	ldrb	w8, [x21, #5]
	cmp	w8, #10
	b.ne	LBB0_13
; %bb.11:
	ldrb	w8, [x21, #6]
	cmp	w8, #26
	b.ne	LBB0_13
; %bb.12:
	ldrb	w8, [x21, #7]
	cmp	w8, #10
	b.eq	LBB0_14
LBB0_13:
	ldr	w0, [x19]
	mov	w1, #28
	bl	_CERROR_RETURN_ERROR
LBB0_14:
	mov	x24, x21
	ldrb	w8, [x24, #12]!
	cmp	w8, #73
	b.ne	LBB0_18
; %bb.15:
	ldrb	w8, [x21, #13]
	cmp	w8, #72
	b.ne	LBB0_18
; %bb.16:
	ldrb	w8, [x21, #14]
	cmp	w8, #68
	b.ne	LBB0_18
; %bb.17:
	ldrb	w8, [x21, #15]
	cmp	w8, #82
	b.eq	LBB0_19
LBB0_18:
	ldr	w0, [x19]
	mov	w1, #29
	bl	_CERROR_RETURN_ERROR
LBB0_19:
	add	x0, x21, #16
	bl	_lodepng_read32bitInt
	str	w0, [x23]
	add	x0, x21, #20
	bl	_lodepng_read32bitInt
	str	w0, [x22]
	ldrb	w8, [x21, #24]
	strb	w8, [x19, #16]
	ldrb	w8, [x21, #25]
	str	x8, [x19, #24]
	ldrb	w8, [x21, #26]
	strb	w8, [x19, #8]
	ldrb	w8, [x21, #27]
	strb	w8, [x19, #9]
	ldrb	w8, [x21, #28]
	strb	w8, [x19, #10]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_22
; %bb.20:
	add	x0, x21, #29
	bl	_lodepng_read32bitInt
	mov	x21, x0
	mov	x0, x24
	mov	w1, #17
	bl	_lodepng_crc32
	cmp	w21, w0
	b.eq	LBB0_22
; %bb.21:
	ldr	w0, [x19]
	mov	w1, #57
	bl	_CERROR_RETURN_ERROR
LBB0_22:
	ldrb	w8, [x20]
	cbz	w8, LBB0_24
; %bb.23:
	ldr	w0, [x19]
	mov	w1, #32
	bl	_CERROR_RETURN_ERROR
LBB0_24:
	ldrb	w8, [x19, #9]
	cbz	w8, LBB0_26
; %bb.25:
	ldr	w0, [x19]
	mov	w1, #33
	bl	_CERROR_RETURN_ERROR
LBB0_26:
	ldrb	w8, [x19, #10]
	cmp	w8, #2
	b.lo	LBB0_28
; %bb.27:
	ldr	w0, [x19]
	mov	w1, #34
	bl	_CERROR_RETURN_ERROR
LBB0_28:
	ldr	x0, [x19, #24]
	ldrb	w1, [x19, #16]
	bl	_checkColorValidity
	str	w0, [x19]
	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
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
