	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_IDAT
_process_IDAT:                          ## @process_IDAT
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	setne	%dil
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
LBB0_3:
	callq	_assert
	movq	24(%r14), %rax
	movq	40(%rax), %rbx
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_IDAT_list_extend
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_READ_ERROR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_stop
LBB0_6:
	movq	$0, (%rbx)
	movq	24(%r14), %rax
	movq	%rbx, 40(%rax)
	xorl	%eax, %eax
LBB0_7:
	movq	16(%r14), %rdi
	movl	(%rdi), %ecx
	movq	16(%rbx), %rdx
	leaq	1(%rax), %rsi
	movq	%rsi, (%rbx)
	movl	%ecx, (%rdx,%rax,4)
	movq	(%r14), %rax
	movq	_png_IDAT@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	je	LBB0_15
## %bb.8:
	callq	_setpos
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_zlib_check
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	movl	36(%r14), %edi
	movl	32(%r14), %esi
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	callq	_uarb_cmp
	testl	%eax, %eax
	js	LBB0_10
## %bb.11:
	je	LBB0_13
## %bb.12:
	movq	_LIBPNG_ERROR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_stop
	jmp	LBB0_13
LBB0_14:
	movq	_ZLIB_ERROR_CODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	callq	_stop
                                        ## implicit-def: $ebx
	jmp	LBB0_15
LBB0_10:
	movq	(%r15), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_type_message
LBB0_13:
	movq	16(%r14), %rdi
	callq	_setpos
	movq	24(%r14), %rdi
	movq	32(%rdi), %rax
	movq	%rax, 16(%rdi)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rdi)
	movl	$1, %ebx
	movl	$1, %esi
	callq	_rechunk_length
	movq	16(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_STATE_IDAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_READ_ERROR_CODE,4,2            ## @READ_ERROR_CODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_png_IDAT,8,3                   ## @png_IDAT
L_.str.1:                               ## @.str.1
	.asciz	"extra uncompressed data"

	.comm	_LIBPNG_ERROR_CODE,4,2          ## @LIBPNG_ERROR_CODE
L_.str.2:                               ## @.str.2
	.asciz	"IDAT: uncompressed data too small"

	.comm	_STATE_IDAT,4,2                 ## @STATE_IDAT
	.comm	_ZLIB_ERROR_CODE,4,2            ## @ZLIB_ERROR_CODE
L_.str.3:                               ## @.str.3
	.asciz	"could not uncompress IDAT"

	.no_dead_strip	_process_IDAT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_IDAT
_process_IDAT:                          ; @process_IDAT
	.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, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	x20, [x8, #40]
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_IDAT_list_extend
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x8, _READ_ERROR_CODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _READ_ERROR_CODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_stop
LBB0_6:
	mov	x8, #0
	str	xzr, [x20]
	ldr	x9, [x19, #24]
	str	x20, [x9, #40]
LBB0_7:
	ldr	x0, [x19, #16]
	ldr	w9, [x0]
	ldr	x10, [x20, #16]
	add	x11, x8, #1
	str	w9, [x10, x8, lsl #2]
	str	x11, [x20]
	ldr	x8, [x19]
Lloh5:
	adrp	x20, _png_IDAT@GOTPAGE
Lloh6:
	ldr	x20, [x20, _png_IDAT@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
	mov	w20, #0
	b	LBB0_16
LBB0_9:
	bl	_setpos
	mov	x0, x19
	mov	w1, #0
	bl	_zlib_check
	cbz	x0, LBB0_13
; %bb.10:
	ldp	w1, w0, [x19, #32]
	ldr	x8, [x19, #16]
	ldp	w3, w2, [x8, #4]
	bl	_uarb_cmp
	tbnz	w0, #31, LBB0_14
; %bb.11:
	cbz	w0, LBB0_15
; %bb.12:
Lloh7:
	adrp	x8, _LIBPNG_ERROR_CODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LIBPNG_ERROR_CODE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_stop
	b	LBB0_15
LBB0_13:
Lloh12:
	adrp	x8, _ZLIB_ERROR_CODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ZLIB_ERROR_CODE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_stop
                                        ; implicit-def: $w20
	b	LBB0_16
LBB0_14:
	ldr	x1, [x20]
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_type_message
LBB0_15:
	ldr	x0, [x19, #16]
	bl	_setpos
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #32]
	str	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x0, #24]
	stp	xzr, xzr, [x0]
	mov	w20, #1
	mov	w1, #1
	bl	_rechunk_length
	ldr	x8, [x19, #16]
	str	w0, [x8]
Lloh19:
	adrp	x8, _STATE_IDAT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATE_IDAT@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #8]
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_READ_ERROR_CODE,4,2            ; @READ_ERROR_CODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_png_IDAT,8,3                   ; @png_IDAT
l_.str.1:                               ; @.str.1
	.asciz	"extra uncompressed data"

	.comm	_LIBPNG_ERROR_CODE,4,2          ; @LIBPNG_ERROR_CODE
l_.str.2:                               ; @.str.2
	.asciz	"IDAT: uncompressed data too small"

	.comm	_STATE_IDAT,4,2                 ; @STATE_IDAT
	.comm	_ZLIB_ERROR_CODE,4,2            ; @ZLIB_ERROR_CODE
l_.str.3:                               ; @.str.3
	.asciz	"could not uncompress IDAT"

	.no_dead_strip	_process_IDAT
.subsections_via_symbols
