	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_image_size
_png_image_size:                        ## @png_image_size
	.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
	movl	4(%rdi), %eax
	movl	$-1, %r13d
	cmpl	$32767, %eax                    ## imm = 0x7FFF
	jg	LBB0_18
## %bb.1:
	movl	(%rdi), %r14d
	cmpl	$32767, %r14d                   ## imm = 0x7FFF
	jg	LBB0_18
## %bb.2:
	cmpq	$0, 8(%rdi)
	je	LBB0_17
## %bb.3:
	movl	16(%rdi), %r12d
	movl	20(%rdi), %r15d
	xorl	%r13d, %r13d
	movl	%r12d, %edi
	xorl	%esi, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_PNG_PASS_ROWS
	movl	%eax, %r13d
	imull	%ebx, %r13d
LBB0_5:
	movl	%r12d, %edi
	movl	$1, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
LBB0_7:
	movl	%r12d, %edi
	movl	$2, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$2, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
LBB0_9:
	movl	%r12d, %edi
	movl	$3, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_11
## %bb.10:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$3, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
LBB0_11:
	movl	%r12d, %edi
	movl	$4, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_13
## %bb.12:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$4, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
LBB0_13:
	movl	%r12d, %edi
	movl	$5, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_15
## %bb.14:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$5, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
LBB0_15:
	movl	%r12d, %edi
	movl	$6, %esi
	callq	_PNG_PASS_COLS
	testl	%eax, %eax
	jle	LBB0_18
## %bb.16:
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, %ebx
	incl	%ebx
	movl	%r14d, %edi
	movl	$6, %esi
	callq	_PNG_PASS_ROWS
	imull	%ebx, %eax
	addl	%eax, %r13d
	jmp	LBB0_18
LBB0_17:
	incl	%eax
	imull	%r14d, %eax
	movl	%eax, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_png_image_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_image_size
_png_image_size:                        ; @png_image_size
	.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
	ldr	w8, [x0, #4]
	mov	w20, #-1
	cmp	w8, #8, lsl #12                 ; =32768
	b.ge	LBB0_19
; %bb.1:
	ldr	w19, [x0]
	cmp	w19, #8, lsl #12                ; =32768
	b.ge	LBB0_19
; %bb.2:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_5
; %bb.3:
	ldp	w22, w21, [x0, #16]
	mov	x0, x22
	mov	w1, #0
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_PNG_PASS_ROWS
	madd	w20, w0, w20, w0
	b	LBB0_7
LBB0_5:
	madd	w20, w19, w8, w19
	b	LBB0_19
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x22
	mov	w1, #1
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x23, x0
	mov	x0, x19
	mov	w1, #1
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w23, w0
	add	w20, w8, w20
LBB0_9:
	mov	x0, x22
	mov	w1, #2
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.10:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x23, x0
	mov	x0, x19
	mov	w1, #2
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w23, w0
	add	w20, w8, w20
LBB0_11:
	mov	x0, x22
	mov	w1, #3
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_13
; %bb.12:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x23, x0
	mov	x0, x19
	mov	w1, #3
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w23, w0
	add	w20, w8, w20
LBB0_13:
	mov	x0, x22
	mov	w1, #4
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_15
; %bb.14:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x23, x0
	mov	x0, x19
	mov	w1, #4
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w23, w0
	add	w20, w8, w20
LBB0_15:
	mov	x0, x22
	mov	w1, #5
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_17
; %bb.16:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x23, x0
	mov	x0, x19
	mov	w1, #5
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w23, w0
	add	w20, w8, w20
LBB0_17:
	mov	x0, x22
	mov	w1, #6
	bl	_PNG_PASS_COLS
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.18:
	mov	x1, x0
	mov	x0, x21
	bl	_PNG_ROWBYTES
	mov	x21, x0
	mov	x0, x19
	mov	w1, #6
	bl	_PNG_PASS_ROWS
	madd	w8, w0, w21, w0
	add	w20, w8, w20
LBB0_19:
	mov	x0, x20
	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
	.no_dead_strip	_png_image_size
.subsections_via_symbols
