	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sbit_modify
_sbit_modify:                           ## @sbit_modify
	.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
	movq	%rdi, %rbx
	movq	(%rsi), %r15
	cmpq	%r15, (%rdi)
	jle	LBB0_13
## %bb.1:
	movl	8(%rbx), %eax
	xorl	%r12d, %r12d
	cmpq	$6, %rax
	ja	LBB0_7
## %bb.2:
	movl	$1, %r14d
	movb	$1, %r13b
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movl	$3, %r14d
	jmp	LBB0_4
LBB0_13:
	xorl	%eax, %eax
	testl	%edx, %edx
	jne	LBB0_15
## %bb.14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$1, %eax
	jmp	LBB0_15
LBB0_7:
	movl	40(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_png_error
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movl	$2, %r14d
	jmp	LBB0_4
LBB0_6:
	movl	$4, %r14d
LBB0_4:
	movb	$1, %r13b
	movb	$1, %r12b
LBB0_8:
	movq	32(%rbx), %rdi
	movl	%r14d, %esi
	callq	_png_save_uint_32
	movq	32(%rbx), %rdi
	addq	$32, %rdi
	movq	_CHUNK_sBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_png_save_uint_32
	movl	$1, %eax
	testb	%r13b, %r13b
	je	LBB0_15
## %bb.9:
	movq	32(%rbx), %rcx
	movl	%r14d, %edx
	leaq	-1(%rdx), %rsi
	movl	%esi, %edi
	movq	%r15, 64(%rcx,%rdi,8)
	testb	%r12b, %r12b
	je	LBB0_15
## %bb.10:
	leaq	-2(%rdx), %rdi
	movl	%edi, %ebx
	movq	%r15, 64(%rcx,%rbx,8)
	cmpq	$2, %rsi
	jb	LBB0_15
## %bb.11:
	leal	-3(%rdx), %esi
	movq	%r15, 64(%rcx,%rsi,8)
	cmpq	$2, %rdi
	jb	LBB0_15
## %bb.12:
	movl	$4294967292, %esi               ## imm = 0xFFFFFFFC
	addl	%esi, %edx
	movq	%r15, 64(%rcx,%rdx,8)
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected colour type in sBIT modification"

	.comm	_CHUNK_sBIT,4,2                 ## @CHUNK_sBIT
	.no_dead_strip	_sbit_modify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sbit_modify
_sbit_modify:                           ; @sbit_modify
	.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
	mov	x19, x0
	ldr	x21, [x1]
	ldr	x8, [x0]
	cmp	x8, x21
	b.le	LBB0_4
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, #6
	b.hi	LBB0_7
; %bb.2:
	mov	w22, #0
	mov	w23, #1
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	mov	w20, #1
	br	x10
LBB0_3:
	mov	w20, #3
	b	LBB0_10
LBB0_4:
	cbz	w2, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_17
LBB0_6:
	stp	xzr, xzr, [x19, #16]
	b	LBB0_16
LBB0_7:
	ldr	w0, [x19, #40]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_png_error
	mov	w23, #0
	mov	w22, #0
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	w20, #2
	b	LBB0_10
LBB0_9:
	mov	w20, #4
LBB0_10:
	mov	w23, #1
	mov	w22, #1
LBB0_11:
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_png_save_uint_32
	ldr	x8, [x19, #32]
	add	x0, x8, #32
Lloh4:
	adrp	x8, _CHUNK_sBIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CHUNK_sBIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_png_save_uint_32
	cbz	w23, LBB0_16
; %bb.12:
	ldr	x8, [x19, #32]
	add	x8, x8, #64
	mov	w9, w20
	sub	x10, x9, #1
	str	x21, [x8, w10, uxtw #3]
	cbz	w22, LBB0_16
; %bb.13:
	sub	x11, x9, #2
	str	x21, [x8, w11, uxtw #3]
	cmp	x10, #2
	b.lo	LBB0_16
; %bb.14:
	sub	w10, w9, #3
	str	x21, [x8, w10, uxtw #3]
	cmp	x11, #2
	b.lo	LBB0_16
; %bb.15:
	sub	w9, w9, #4
	str	x21, [x8, w9, uxtw #3]
LBB0_16:
	mov	w0, #1
LBB0_17:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected colour type in sBIT modification"

	.comm	_CHUNK_sBIT,4,2                 ; @CHUNK_sBIT
	.no_dead_strip	_sbit_modify
.subsections_via_symbols
