	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_pixel_add_alpha
_image_pixel_add_alpha:                 ## @image_pixel_add_alpha
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_image_pixel_convert_PLTE
	movq	(%rbx), %rax
LBB0_2:
	movq	_PNG_COLOR_MASK_ALPHA@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	testq	%rcx, %rax
	jne	LBB0_21
## %bb.3:
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_10
## %bb.4:
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.5:
	cmpl	$7, 8(%rbx)
	jg	LBB0_7
## %bb.6:
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, 8(%rbx)
LBB0_7:
	cmpq	$0, 64(%rbx)
	je	LBB0_17
## %bb.8:
	movq	$0, 64(%rbx)
	movq	16(%rbx), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_17
## %bb.9:
	movl	$0, 24(%rbx)
	jmp	LBB0_18
LBB0_10:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_20
## %bb.11:
	movl	$1, %eax
	cmpq	$0, 64(%rbx)
	je	LBB0_16
## %bb.12:
	movq	$0, 64(%rbx)
	movq	16(%rbx), %rax
	cmpq	8(%r14), %rax
	jne	LBB0_15
## %bb.13:
	movq	32(%rbx), %rax
	cmpq	16(%r14), %rax
	jne	LBB0_15
## %bb.14:
	movq	40(%rbx), %rcx
	xorl	%eax, %eax
	cmpq	24(%r14), %rcx
	je	LBB0_16
LBB0_15:
	movl	$1, %eax
LBB0_16:
	movl	%eax, 24(%rbx)
	movq	_PNG_COLOR_TYPE_RGB_ALPHA@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_17:
	movl	$1, 24(%rbx)
LBB0_18:
	movq	_PNG_COLOR_TYPE_GRAY_ALPHA@GOTPCREL(%rip), %rax
LBB0_19:
	movslq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_20:
	movq	$0, 56(%rbx)
	movl	(%r14), %eax
	movl	%eax, 48(%rbx)
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ## @PNG_COLOR_TYPE_PALETTE
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ## @PNG_COLOR_MASK_ALPHA
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ## @PNG_COLOR_TYPE_GRAY
	.comm	_PNG_COLOR_TYPE_GRAY_ALPHA,4,2  ## @PNG_COLOR_TYPE_GRAY_ALPHA
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ## @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,4,2   ## @PNG_COLOR_TYPE_RGB_ALPHA
	.no_dead_strip	_image_pixel_add_alpha
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_pixel_add_alpha
_image_pixel_add_alpha:                 ; @image_pixel_add_alpha
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0]
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.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_image_pixel_convert_PLTE
	ldr	x8, [x19]
LBB0_2:
Lloh3:
	adrp	x9, _PNG_COLOR_MASK_ALPHA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PNG_COLOR_MASK_ALPHA@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	tst	x8, x9
	b.ne	LBB0_22
; %bb.3:
Lloh6:
	adrp	x9, _PNG_COLOR_TYPE_GRAY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PNG_COLOR_TYPE_GRAY@GOTPAGEOFF]
Lloh8:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.4:
	cbnz	w21, LBB0_7
; %bb.5:
	ldr	w8, [x19, #8]
	cmp	w8, #7
	b.gt	LBB0_7
; %bb.6:
	movi.2s	v0, #8
	str	d0, [x19, #8]
LBB0_7:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_16
; %bb.8:
	str	xzr, [x19, #64]
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.9:
	str	wzr, [x19, #24]
	b	LBB0_17
LBB0_10:
Lloh9:
	adrp	x9, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh11:
	ldrsw	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.11:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_18
; %bb.12:
	str	xzr, [x19, #64]
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.13:
	ldr	x8, [x19, #32]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.14:
	ldr	x8, [x19, #40]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.15:
	mov	w8, #0
	b	LBB0_19
LBB0_16:
	mov	w8, #1
	str	w8, [x19, #24]
LBB0_17:
Lloh12:
	adrp	x8, _PNG_COLOR_TYPE_GRAY_ALPHA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PNG_COLOR_TYPE_GRAY_ALPHA@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	mov	w8, #1
LBB0_19:
	str	w8, [x19, #24]
Lloh14:
	adrp	x8, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGEOFF]
LBB0_20:
	ldrsw	x8, [x8]
	str	x8, [x19]
LBB0_21:
	str	xzr, [x19, #56]
	ldr	w8, [x20]
	str	w8, [x19, #48]
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ; @PNG_COLOR_TYPE_PALETTE
	.comm	_PNG_COLOR_MASK_ALPHA,4,2       ; @PNG_COLOR_MASK_ALPHA
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ; @PNG_COLOR_TYPE_GRAY
	.comm	_PNG_COLOR_TYPE_GRAY_ALPHA,4,2  ; @PNG_COLOR_TYPE_GRAY_ALPHA
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ; @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,4,2   ; @PNG_COLOR_TYPE_RGB_ALPHA
	.no_dead_strip	_image_pixel_add_alpha
.subsections_via_symbols
