	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_sBIT                ## -- Begin function png_handle_sBIT
	.p2align	4, 0x90
_png_handle_sBIT:                       ## @png_handle_sBIT
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%rbx), %eax
	movq	_PNG_HAVE_IHDR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.6:
	movq	_PNG_HAVE_IDAT@GOTPCREL(%rip), %rcx
	movq	_PNG_HAVE_PLTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_37
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_error
LBB0_2:
	testq	%r14, %r14
	je	LBB0_10
## %bb.3:
	movq	_PNG_INFO_sBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.4:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_png_crc_finish
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_37
## %bb.5:
	leaq	L_.str.3(%rip), %rsi
LBB0_9:
	movq	%rbx, %rdi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_chunk_benign_error         ## TAILCALL
LBB0_10:
	movl	4(%rbx), %eax
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	movl	$8, %r12d
	movl	$3, %eax
	cmpl	$4, %r15d
	jbe	LBB0_14
	jmp	LBB0_15
LBB0_12:
	movl	8(%rbx), %eax
	movq	56(%rbx), %r12
	cmpl	$4, %r15d
	ja	LBB0_15
LBB0_14:
	cmpl	%r15d, %eax
	jne	LBB0_15
## %bb.17:
	movq	%r12, -56(%rbp)
	movq	%r12, -64(%rbp)
	movq	%r12, -72(%rbp)
	movq	%r12, -80(%rbp)
	leaq	-80(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_png_crc_read
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_png_crc_finish
	testq	%rax, %rax
	jne	LBB0_35
## %bb.18:
	testl	%r15d, %r15d
	je	LBB0_31
## %bb.19:
	movq	-80(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.20:
	cmpq	%r12, %rax
	ja	LBB0_30
## %bb.21:
	cmpl	$1, %r15d
	je	LBB0_31
## %bb.22:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	cmpq	%r12, %rax
	ja	LBB0_30
## %bb.24:
	cmpl	$2, %r15d
	je	LBB0_31
## %bb.25:
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.26:
	cmpq	%r12, %rax
	ja	LBB0_30
## %bb.27:
	cmpl	$3, %r15d
	je	LBB0_31
## %bb.28:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	cmpq	%r12, %rax
	ja	LBB0_30
LBB0_31:
	movq	_PNG_COLOR_MASK_COLOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-80(%rbp), %rax
	testl	%ecx, 4(%rbx)
	je	LBB0_33
## %bb.32:
	leaq	-56(%rbp), %rcx
	movq	-72(%rbp), %rsi
	movq	-64(%rbp), %rdi
	jmp	LBB0_34
LBB0_15:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_37
## %bb.16:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_crc_finish                 ## TAILCALL
LBB0_30:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_png_chunk_benign_error
	jmp	LBB0_35
LBB0_33:
	leaq	-72(%rbp), %rcx
	movq	%rax, 48(%rbx)
	movq	%rax, %rsi
	movq	%rax, %rdi
LBB0_34:
	movq	(%rcx), %rcx
	leaq	16(%rbx), %rdx
	movq	%rax, 40(%rbx)
	movq	%rsi, 32(%rbx)
	movq	%rdi, 24(%rbx)
	movq	%rcx, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_png_set_sBIT
LBB0_35:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_37
## %bb.36:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_37:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_handle_sBIT"

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

	.comm	_PNG_HAVE_IDAT,4,2              ## @PNG_HAVE_IDAT
	.comm	_PNG_HAVE_PLTE,4,2              ## @PNG_HAVE_PLTE
L_.str.2:                               ## @.str.2
	.asciz	"out of place"

	.comm	_PNG_INFO_sBIT,4,2              ## @PNG_INFO_sBIT
L_.str.3:                               ## @.str.3
	.asciz	"duplicate"

	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ## @PNG_COLOR_TYPE_PALETTE
L_.str.4:                               ## @.str.4
	.asciz	"invalid"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ## @PNG_COLOR_MASK_COLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_handle_sBIT                ; -- Begin function png_handle_sBIT
	.p2align	2
_png_handle_sBIT:                       ; @png_handle_sBIT
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _PNG_HAVE_IHDR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_HAVE_IHDR@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
Lloh8:
	adrp	x9, _PNG_HAVE_IDAT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PNG_HAVE_IDAT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _PNG_HAVE_PLTE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _PNG_HAVE_PLTE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.3:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_error
LBB0_5:
	cbz	x20, LBB0_10
; %bb.6:
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _PNG_INFO_sBIT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PNG_INFO_sBIT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_png_crc_finish
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.8:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_png_chunk_benign_error
LBB0_10:
	ldr	w8, [x19, #4]
Lloh29:
	adrp	x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
	mov	w8, #3
	mov	w22, #8
	cmp	w21, #4
	b.ls	LBB0_13
	b	LBB0_29
LBB0_12:
	ldr	w8, [x19, #8]
	ldr	x22, [x19, #56]
	cmp	w21, #4
	b.hi	LBB0_29
LBB0_13:
	cmp	w8, w21
	b.ne	LBB0_29
; %bb.14:
	add	x23, sp, #8
	stp	x22, x22, [sp, #24]
	stp	x22, x22, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_png_crc_read
	mov	x0, x19
	mov	w1, #0
	bl	_png_crc_finish
	cbnz	x0, LBB0_34
; %bb.15:
	cbz	w21, LBB0_27
; %bb.16:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_31
; %bb.17:
	cmp	x8, x22
	b.hi	LBB0_31
; %bb.18:
	cmp	w21, #1
	b.eq	LBB0_27
; %bb.19:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_31
; %bb.20:
	cmp	x8, x22
	b.hi	LBB0_31
; %bb.21:
	cmp	w21, #2
	b.eq	LBB0_27
; %bb.22:
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_31
; %bb.23:
	cmp	x8, x22
	b.hi	LBB0_31
; %bb.24:
	cmp	w21, #3
	b.eq	LBB0_27
; %bb.25:
	ldr	x8, [sp, #32]
	cbz	x8, LBB0_31
; %bb.26:
	cmp	x8, x22
	b.hi	LBB0_31
LBB0_27:
	ldr	w9, [x19, #4]
Lloh32:
	adrp	x8, _PNG_COLOR_MASK_COLOR@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PNG_COLOR_MASK_COLOR@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x8]
	ldr	x8, [sp, #8]
	tst	w10, w9
	b.eq	LBB0_32
; %bb.28:
	add	x9, x23, #24
	ldp	x10, x11, [sp, #16]
	b	LBB0_33
LBB0_29:
Lloh35:
	adrp	x1, l_.str.4@PAGE
Lloh36:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_benign_error
	ldr	x8, [sp, #40]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.30:
	mov	x0, x19
	mov	x1, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_png_crc_finish
LBB0_31:
Lloh40:
	adrp	x1, l_.str.4@PAGE
Lloh41:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_png_chunk_benign_error
	b	LBB0_34
LBB0_32:
	add	x9, x23, #8
	str	x8, [x19, #48]
	mov	x10, x8
	mov	x11, x8
LBB0_33:
	ldr	x9, [x9]
	stp	x10, x8, [x19, #32]
	str	x11, [x19, #24]
	mov	x2, x19
	str	x9, [x2, #16]!
	mov	x0, x19
	mov	x1, x20
	bl	_png_set_sBIT
LBB0_34:
	ldr	x8, [sp, #40]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.35:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_36:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_handle_sBIT"

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

	.comm	_PNG_HAVE_IDAT,4,2              ; @PNG_HAVE_IDAT
	.comm	_PNG_HAVE_PLTE,4,2              ; @PNG_HAVE_PLTE
l_.str.2:                               ; @.str.2
	.asciz	"out of place"

	.comm	_PNG_INFO_sBIT,4,2              ; @PNG_INFO_sBIT
l_.str.3:                               ; @.str.3
	.asciz	"duplicate"

	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ; @PNG_COLOR_TYPE_PALETTE
l_.str.4:                               ; @.str.4
	.asciz	"invalid"

	.comm	_PNG_COLOR_MASK_COLOR,4,2       ; @PNG_COLOR_MASK_COLOR
.subsections_via_symbols
