	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_do_packswap                ## -- Begin function png_do_packswap
	.p2align	4, 0x90
_png_do_packswap:                       ## @png_do_packswap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_png_debug
	movl	(%r14), %ecx
	cmpl	$7, %ecx
	jg	LBB0_10
## %bb.1:
	movslq	4(%r14), %rax
	cmpl	$1, %ecx
	je	LBB0_2
## %bb.3:
	cmpl	$4, %ecx
	je	LBB0_6
## %bb.4:
	cmpl	$2, %ecx
	jne	LBB0_10
## %bb.5:
	movq	_twobppswaptable@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jg	LBB0_8
	jmp	LBB0_10
LBB0_2:
	movq	_onebppswaptable@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jg	LBB0_8
	jmp	LBB0_10
LBB0_6:
	movq	_fourbppswaptable@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	jle	LBB0_10
LBB0_8:
	leaq	(%rbx,%rax,8), %rax
	movq	(%rcx), %rcx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	%rdx, (%rbx)
	addq	$8, %rbx
	cmpq	%rax, %rbx
	jb	LBB0_9
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"in png_do_packswap\n"

	.comm	_onebppswaptable,8,3            ## @onebppswaptable
	.comm	_twobppswaptable,8,3            ## @twobppswaptable
	.comm	_fourbppswaptable,8,3           ## @fourbppswaptable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_do_packswap                ; -- Begin function png_do_packswap
	.p2align	2
_png_do_packswap:                       ; @png_do_packswap
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_png_debug
	ldr	w9, [x20]
	cmp	w9, #7
	b.gt	LBB0_9
; %bb.1:
	ldrsw	x8, [x20, #4]
	cmp	w9, #1
	b.eq	LBB0_5
; %bb.2:
	cmp	w9, #4
	b.eq	LBB0_6
; %bb.3:
	cmp	w9, #2
	b.ne	LBB0_9
; %bb.4:
Lloh2:
	adrp	x9, _twobppswaptable@GOTPAGE
Lloh3:
	ldr	x9, [x9, _twobppswaptable@GOTPAGEOFF]
	cmp	w8, #1
	b.ge	LBB0_7
	b	LBB0_9
LBB0_5:
Lloh4:
	adrp	x9, _onebppswaptable@GOTPAGE
Lloh5:
	ldr	x9, [x9, _onebppswaptable@GOTPAGEOFF]
	cmp	w8, #1
	b.ge	LBB0_7
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x9, _fourbppswaptable@GOTPAGE
Lloh7:
	ldr	x9, [x9, _fourbppswaptable@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
LBB0_7:
	add	x8, x19, x8, lsl #3
	ldr	x9, [x9]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x19]
	ldr	x10, [x9, x10, lsl #3]
	str	x10, [x19], #8
	cmp	x19, x8
	b.lo	LBB0_8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"in png_do_packswap\n"

	.comm	_onebppswaptable,8,3            ; @onebppswaptable
	.comm	_twobppswaptable,8,3            ; @twobppswaptable
	.comm	_fourbppswaptable,8,3           ; @fourbppswaptable
.subsections_via_symbols
