	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readpng_get_image              ## -- Begin function readpng_get_image
	.p2align	4, 0x90
_readpng_get_image:                     ## @readpng_get_image
	.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	_channels@GOTPCREL(%rip), %rax
	movq	_width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	imull	(%rax), %ebx
	movl	%ebx, (%rsi)
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_height@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	imull	%ebx, %edi
	callq	_malloc
	movq	_image_data@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%r14), %edi
	callq	_Trace
	movq	(%r15), %rdi
	movl	(%r14), %edx
	imull	%ebx, %edx
	movq	_saved_infile@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %esi
	callq	_fread
	movl	%eax, %ecx
	imull	(%r14), %ebx
	movq	(%r15), %rax
	cmpl	%ebx, %ecx
	jge	LBB0_4
## %bb.2:
	movq	%rax, %rdi
	callq	_free
	movq	$0, (%r15)
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_channels,4,2                   ## @channels
	.comm	_width,4,2                      ## @width
	.comm	_height,4,2                     ## @height
	.comm	_image_data,8,3                 ## @image_data
	.comm	_stderr,4,2                     ## @stderr
	.comm	_saved_infile,4,2               ## @saved_infile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_readpng_get_image              ; -- Begin function readpng_get_image
	.p2align	2
_readpng_get_image:                     ; @readpng_get_image
	.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	x8, _channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _channels@GOTPAGEOFF]
	ldr	w9, [x8]
Lloh2:
	adrp	x10, _width@GOTPAGE
Lloh3:
	ldr	x10, [x10, _width@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	mul	w19, w10, w9
	str	w19, [x1]
	ldr	w8, [x8]
	str	w8, [x0]
Lloh5:
	adrp	x21, _height@GOTPAGE
Lloh6:
	ldr	x21, [x21, _height@GOTPAGEOFF]
	ldr	w8, [x21]
	mul	w0, w8, w19
	bl	_malloc
Lloh7:
	adrp	x20, _image_data@GOTPAGE
Lloh8:
	ldr	x20, [x20, _image_data@GOTPAGEOFF]
	str	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w0, [x21]
	bl	_Trace
	ldr	x0, [x20]
	ldr	w8, [x21]
	mul	w2, w8, w19
Lloh9:
	adrp	x8, _saved_infile@GOTPAGE
Lloh10:
	ldr	x8, [x8, _saved_infile@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	w1, #1
	bl	_fread
	mov	x8, x0
	ldr	w9, [x21]
	mul	w9, w9, w19
	ldr	x0, [x20]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.2:
	bl	_free
	mov	x0, #0
	str	xzr, [x20]
LBB0_3:
	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	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_channels,4,2                   ; @channels
	.comm	_width,4,2                      ; @width
	.comm	_height,4,2                     ; @height
	.comm	_image_data,8,3                 ; @image_data
	.comm	_stderr,4,2                     ; @stderr
	.comm	_saved_infile,4,2               ; @saved_infile
.subsections_via_symbols
