	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpng_load_image_argb_process_inflate_init
_rpng_load_image_argb_process_inflate_init: ## @rpng_load_image_argb_process_inflate_init
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	cmpq	$0, (%rbx)
	jle	LBB0_5
## %bb.1:
	cmpq	$0, 8(%rbx)
	jle	LBB0_5
## %bb.2:
	movq	40(%rbx), %rdi
	movq	48(%rbx), %rax
	xorl	%r12d, %r12d
	leaq	-56(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-36(%rbp), %r8
	xorl	%esi, %esi
	callq	*(%rax)
	movl	-36(%rbp), %ecx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_TRANS_STREAM_ERROR_BUFFER_FULL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_9
LBB0_4:
	movq	-56(%rbp), %rax
	subq	%rax, (%rbx)
	movq	-48(%rbp), %rax
	subq	%rax, 8(%rbx)
	addl	%eax, 56(%rbx)
	testl	%ecx, %ecx
	jne	LBB0_11
LBB0_5:
	movq	40(%rbx), %rdi
	movq	48(%rbx), %rax
	callq	*8(%rax)
	movq	$0, 40(%rbx)
	movl	(%r14), %edi
	imull	4(%r14), %edi
	shll	$3, %edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movl	12(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	$1, %r15d
	cmpl	$1, 8(%r14)
	jne	LBB0_8
## %bb.7:
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_png_reverse_filter_init
	movl	$1, %r12d
	cmpl	$-1, %eax
	jne	LBB0_10
LBB0_9:
	movl	$-1, %r12d
	xorl	%r15d, %r15d
LBB0_10:
	movl	%r15d, 16(%rbx)
LBB0_11:
	movl	%r12d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRANS_STREAM_ERROR_BUFFER_FULL,4,2 ## @TRANS_STREAM_ERROR_BUFFER_FULL
	.no_dead_strip	_rpng_load_image_argb_process_inflate_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpng_load_image_argb_process_inflate_init
_rpng_load_image_argb_process_inflate_init: ; @rpng_load_image_argb_process_inflate_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	ldp	x0, x8, [x19, #40]
	ldr	x8, [x8]
	add	x2, sp, #16
	add	x3, sp, #8
	add	x4, sp, #28
	mov	w1, #0
	blr	x8
	ldr	w8, [sp, #28]
Lloh0:
	adrp	x9, _TRANS_STREAM_ERROR_BUFFER_FULL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TRANS_STREAM_ERROR_BUFFER_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w0, #0
	ccmp	w8, w9, #4, eq
	b.ne	LBB0_10
; %bb.3:
	ldr	x9, [sp, #16]
	ldp	x10, x11, [x19]
	sub	x9, x10, x9
	str	x9, [x19]
	ldr	x9, [sp, #8]
	sub	x10, x11, x9
	str	x10, [x19, #8]
	ldr	w10, [x19, #56]
	add	w9, w10, w9
	str	w9, [x19, #56]
	cbz	w8, LBB0_5
; %bb.4:
	mov	w0, #0
	b	LBB0_12
LBB0_5:
	ldp	x0, x8, [x19, #40]
	ldr	x8, [x8, #8]
	blr	x8
	str	xzr, [x19, #40]
	ldp	w8, w9, [x20]
	mul	w8, w8, w9
	lsl	w0, w8, #3
	bl	_malloc
	str	x0, [x21]
	cbz	x0, LBB0_10
; %bb.6:
	stp	xzr, xzr, [x19, #24]
	ldr	w8, [x20, #12]
	str	w8, [x19, #20]
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_png_reverse_filter_init
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #1
	mov	w0, #1
	b	LBB0_11
LBB0_10:
	mov	w8, #0
	mov	w0, #-1
LBB0_11:
	str	w8, [x19, #16]
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TRANS_STREAM_ERROR_BUFFER_FULL,4,2 ; @TRANS_STREAM_ERROR_BUFFER_FULL
	.no_dead_strip	_rpng_load_image_argb_process_inflate_init
.subsections_via_symbols
