	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_init_palette_transformations
_png_init_palette_transformations:      ## @png_init_palette_transformations
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rdx
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rsi
	cmpq	%rsi, %rcx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rsi,4), %eax
	cmpl	$255, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r8d
	jmp	LBB0_6
LBB0_1:
	xorl	%r8d, %r8d
LBB0_7:
	movq	_PNG_ENCODE_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	16(%rdi), %ecx
	movl	%ecx, 16(%rdi)
	movq	_PNG_FLAG_OPTIMIZE_ALPHA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 56(%rdi)
	testl	%r8d, %r8d
	je	LBB0_8
LBB0_9:
	popq	%rbp
	retq
LBB0_8:
	movq	_PNG_COMPOSE@GOTPCREL(%rip), %rax
	movq	_PNG_BACKGROUND_EXPAND@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, 16(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_ENCODE_ALPHA,4,2           ## @PNG_ENCODE_ALPHA
	.comm	_PNG_FLAG_OPTIMIZE_ALPHA,4,2    ## @PNG_FLAG_OPTIMIZE_ALPHA
	.comm	_PNG_COMPOSE,4,2                ## @PNG_COMPOSE
	.comm	_PNG_BACKGROUND_EXPAND,4,2      ## @PNG_BACKGROUND_EXPAND
	.comm	_PNG_EXPAND,4,2                 ## @PNG_EXPAND
	.comm	_PNG_EXPAND_tRNS,4,2            ## @PNG_EXPAND_tRNS
	.comm	_PNG_INVERT_ALPHA,4,2           ## @PNG_INVERT_ALPHA
	.no_dead_strip	_png_init_palette_transformations
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_init_palette_transformations
_png_init_palette_transformations:      ; @png_init_palette_transformations
	.cfi_startproc
; %bb.0:
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w8, #0
	ldr	x10, [x0, #8]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #4
	subs	x9, x9, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, #255
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	w11, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #1
	b	LBB0_2
LBB0_6:
	mov	w8, #0
LBB0_7:
Lloh0:
	adrp	x9, _PNG_ENCODE_ALPHA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_ENCODE_ALPHA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x0, #16]
	bic	w9, w10, w9
	str	w9, [x0, #16]
Lloh3:
	adrp	x10, _PNG_FLAG_OPTIMIZE_ALPHA@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PNG_FLAG_OPTIMIZE_ALPHA@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	ldr	w11, [x0, #56]
	bic	w10, w11, w10
	str	w10, [x0, #56]
	cbz	w8, LBB0_9
LBB0_8:
	ret
LBB0_9:
Lloh6:
	adrp	x8, _PNG_COMPOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PNG_COMPOSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x10, _PNG_BACKGROUND_EXPAND@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PNG_BACKGROUND_EXPAND@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w10, w8
	bic	w8, w9, w8
	str	w8, [x0, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_ENCODE_ALPHA,4,2           ; @PNG_ENCODE_ALPHA
	.comm	_PNG_FLAG_OPTIMIZE_ALPHA,4,2    ; @PNG_FLAG_OPTIMIZE_ALPHA
	.comm	_PNG_COMPOSE,4,2                ; @PNG_COMPOSE
	.comm	_PNG_BACKGROUND_EXPAND,4,2      ; @PNG_BACKGROUND_EXPAND
	.comm	_PNG_EXPAND,4,2                 ; @PNG_EXPAND
	.comm	_PNG_EXPAND_tRNS,4,2            ; @PNG_EXPAND_tRNS
	.comm	_PNG_INVERT_ALPHA,4,2           ; @PNG_INVERT_ALPHA
	.no_dead_strip	_png_init_palette_transformations
.subsections_via_symbols
