	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_do_expand_16
_png_do_expand_16:                      ## @png_do_expand_16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$8, (%rdi)
	jne	LBB0_6
## %bb.1:
	movq	8(%rdi), %rax
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movl	16(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	leaq	(%rsi,%rax,8), %rcx
	leaq	(%rcx,%rax,8), %rcx
	leaq	(%rsi,%rax,8), %rdx
	addq	$-8, %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx), %rsi
	movq	%rsi, -8(%rcx)
	movq	%rsi, -16(%rcx)
	addq	$-16, %rcx
	leaq	-8(%rdx), %rsi
	cmpq	%rdx, %rcx
	movq	%rsi, %rdx
	ja	LBB0_4
LBB0_5:
	addl	%eax, %eax
	movl	%eax, 16(%rdi)
	movl	$16, (%rdi)
	movslq	20(%rdi), %rax
	shlq	$4, %rax
	movq	%rax, 24(%rdi)
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ## @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_png_do_expand_16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_do_expand_16
_png_do_expand_16:                      ; @png_do_expand_16
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.2:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	lsl	x9, x8, #3
	add	x10, x1, x9
	add	x9, x10, x9
	sub	x11, x10, #8
	mov	x10, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x10], #-8
	stp	x12, x12, [x9, #-16]!
	cmp	x9, x11
	mov	x11, x10
	b.hi	LBB0_4
LBB0_5:
	lsl	w8, w8, #1
	str	w8, [x0, #16]
	mov	w8, #16
	str	w8, [x0]
	ldrsw	x8, [x0, #20]
	lsl	x8, x8, #4
	str	x8, [x0, #24]
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ; @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_png_do_expand_16
.subsections_via_symbols
