	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rpng_process_init
_rpng_process_init:                     ## @rpng_process_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_trans_stream_get_zlib_inflate_backend
	movq	%rax, 16(%rbx)
	leaq	16(%r14), %rdi
	movl	20(%r14), %edx
	movl	24(%r14), %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movq	%rbx, %r9
	callq	_png_pass_geom
	cmpl	$1, 16(%r14)
	jne	LBB0_3
## %bb.2:
	shll	(%rbx)
LBB0_3:
	movq	16(%rbx), %rcx
	xorl	%eax, %eax
	callq	*24(%rcx)
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movl	(%rbx), %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%rax, 24(%rbx)
	movq	(%r14), %rdx
	movq	%rdx, 40(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 4(%rbx)
	movq	$0, 32(%rbx)
	movq	16(%rbx), %rax
	movq	8(%rbx), %rdi
	movl	8(%r14), %esi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	*16(%rax)
	movq	16(%rbx), %rax
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rsi
	movl	(%rbx), %edx
	callq	*8(%rax)
	jmp	LBB0_10
LBB0_6:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movq	16(%rbx), %rax
	callq	*(%rax)
LBB0_8:
	movq	%rbx, %rdi
	callq	_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rpng_process_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rpng_process_init
_rpng_process_init:                     ; @rpng_process_init
	.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	x20, x0
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
	bl	_trans_stream_get_zlib_inflate_backend
	str	x0, [x19, #16]
	add	x0, x20, #16
	ldp	w2, w1, [x20, #20]
	mov	x3, #0
	mov	x4, #0
	mov	x5, x19
	bl	_png_pass_geom
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	lsl	w8, w8, #1
	str	w8, [x19]
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #24]
	blr	x8
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w0, [x19]
	bl	_malloc
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x2, [x20]
	stp	xzr, x2, [x19, #32]
	ldr	w8, [x19]
	str	w8, [x19, #4]
	str	x0, [x19, #24]
	ldp	x0, x8, [x19, #8]
	ldr	x8, [x8, #16]
	ldr	w1, [x20, #8]
                                        ; kill: def $w2 killed $w2 killed $x2
	blr	x8
	ldp	x0, x8, [x19, #8]
	ldr	x8, [x8, #8]
	ldr	x1, [x19, #24]
	ldr	w2, [x19]
	blr	x8
	b	LBB0_9
LBB0_6:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	blr	x8
LBB0_8:
	mov	x0, x19
	bl	_free
	mov	x19, #0
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rpng_process_init
.subsections_via_symbols
