	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_IHDR                ## -- Begin function png_handle_IHDR
	.p2align	4, 0x90
_png_handle_IHDR:                       ## @png_handle_IHDR
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, -164(%rbp)                ## 4-byte Spill
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
LBB0_2:
	cmpl	$13, %r14d
	je	LBB0_4
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_error
LBB0_4:
	movl	(%r15), %eax
	orl	%eax, (%rbx)
	leaq	-160(%rbp), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$13, %edx
	callq	_png_crc_read
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_png_get_uint_31
	movl	%eax, %r15d
	leaq	-128(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_png_get_uint_31
	movl	%eax, %r12d
	movl	-96(%rbp), %r13d
	movl	-88(%rbp), %r14d
	movq	-80(%rbp), %rdx
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rsi
	movl	%r15d, 4(%rbx)
	movl	%eax, 8(%rbx)
	movl	%r13d, 12(%rbx)
	movslq	%esi, %rax
	movq	%rax, 56(%rbx)
	movl	%r14d, 16(%rbx)
	movslq	%edx, %rax
	movq	%rax, 40(%rbx)
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	movq	%rdx, -192(%rbp)                ## 8-byte Spill
	movq	%rsi, -184(%rbp)                ## 8-byte Spill
	movq	%rdi, -176(%rbp)                ## 8-byte Spill
	ja	LBB0_6
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_7:
	movl	$1, 20(%rbx)
	movl	$1, %eax
	jmp	LBB0_11
LBB0_6:
	movl	20(%rbx), %eax
	jmp	LBB0_11
LBB0_10:
	movl	$4, 20(%rbx)
	movl	$4, %eax
	jmp	LBB0_11
LBB0_8:
	movl	$3, 20(%rbx)
	movl	$3, %eax
	jmp	LBB0_11
LBB0_9:
	movl	$2, 20(%rbx)
	movl	$2, %eax
LBB0_11:
	imull	%r13d, %eax
	movslq	%eax, %rdi
	movq	%rdi, 32(%rbx)
	movl	%r15d, %esi
	callq	_PNG_ROWBYTES
	movl	%eax, 24(%rbx)
	movl	12(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$3, %edi
	callq	_png_debug1
	movl	20(%rbx), %edx
	leaq	L_.str.4(%rip), %rsi
	movl	$3, %edi
	callq	_png_debug1
	movl	24(%rbx), %edx
	leaq	L_.str.5(%rip), %rsi
	movl	$3, %edi
	callq	_png_debug1
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	-164(%rbp), %esi                ## 4-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	pushq	-176(%rbp)                      ## 8-byte Folded Reload
	pushq	-192(%rbp)                      ## 8-byte Folded Reload
	pushq	-184(%rbp)                      ## 8-byte Folded Reload
	callq	_png_set_IHDR
	addq	$32, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_IHDR\n"

	.comm	_PNG_HAVE_IHDR,4,2              ## @PNG_HAVE_IHDR
L_.str.1:                               ## @.str.1
	.asciz	"Out of place IHDR"

L_.str.2:                               ## @.str.2
	.asciz	"Invalid IHDR chunk"

L_.str.3:                               ## @.str.3
	.asciz	"bit_depth = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"channels = %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"rowbytes = %lu\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_IHDR                ; -- Begin function png_handle_IHDR
	.p2align	2
_png_handle_IHDR:                       ; @png_handle_IHDR
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x20]
Lloh5:
	adrp	x22, _PNG_HAVE_IHDR@GOTPAGE
Lloh6:
	ldr	x22, [x22, _PNG_HAVE_IHDR@GOTPAGEOFF]
	ldr	w9, [x22]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_png_error
LBB0_2:
	cmp	w21, #13
	b.eq	LBB0_4
; %bb.3:
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_png_error
LBB0_4:
	ldr	w8, [x22]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x22, sp, #16
	add	x1, sp, #16
	mov	x0, x20
	mov	w2, #13
	bl	_png_crc_read
	mov	x0, x20
	mov	w1, #0
	bl	_png_crc_finish
	add	x1, sp, #16
	mov	x0, x20
	bl	_png_get_uint_31
	mov	x21, x0
	add	x1, x22, #32
	mov	x0, x20
	bl	_png_get_uint_31
	mov	x22, x0
	ldr	w24, [sp, #80]
	ldr	w25, [sp, #88]
	ldp	x23, x27, [sp, #96]
	ldr	x26, [sp, #112]
	stp	w21, w0, [x20, #4]
	sxtw	x8, w26
	str	x8, [x20, #56]
	stp	w24, w25, [x20, #12]
	sxtw	x8, w23
	str	x8, [x20, #40]
	sub	w8, w25, #128
	cmp	w8, #4
	b.hi	LBB0_7
; %bb.5:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	mov	w8, #1
	b	LBB0_11
LBB0_7:
	ldr	w8, [x20, #20]
	b	LBB0_12
LBB0_8:
	mov	w8, #4
	b	LBB0_11
LBB0_9:
	mov	w8, #3
	b	LBB0_11
LBB0_10:
	mov	w8, #2
LBB0_11:
	str	w8, [x20, #20]
LBB0_12:
	mul	w8, w8, w24
	sxtw	x0, w8
	str	x0, [x20, #32]
	mov	x1, x21
	bl	_PNG_ROWBYTES
	str	w0, [x20, #24]
	ldr	w2, [x20, #12]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #3
	bl	_png_debug1
	ldr	w2, [x20, #20]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #3
	bl	_png_debug1
	ldr	w2, [x20, #24]
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w0, #3
	bl	_png_debug1
	str	w27, [sp]
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x24
	mov	x5, x25
	mov	x6, x26
	mov	x7, x23
	bl	_png_set_IHDR
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_IHDR\n"

	.comm	_PNG_HAVE_IHDR,4,2              ; @PNG_HAVE_IHDR
l_.str.1:                               ; @.str.1
	.asciz	"Out of place IHDR"

l_.str.2:                               ; @.str.2
	.asciz	"Invalid IHDR chunk"

l_.str.3:                               ; @.str.3
	.asciz	"bit_depth = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"channels = %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"rowbytes = %lu\n"

.subsections_via_symbols
