	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_transform_png_set_add_alpha_mod
_image_transform_png_set_add_alpha_mod: ## @image_transform_png_set_add_alpha_mod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %r8
	movl	(%rsi), %ecx
	cmpl	$8, %ecx
	jl	LBB0_4
## %bb.1:
	movl	4(%rsi), %r9d
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	je	LBB0_3
## %bb.2:
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jne	LBB0_4
LBB0_3:
	movl	$-1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	notl	%eax
	movq	_data@GOTPCREL(%rip), %r10
	movl	(%r10), %ecx
	andl	%eax, %ecx
	movl	%ecx, 8(%rsi)
	cvtsi2sd	%rcx, %xmm0
	cvtsi2sd	%rax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, 16(%rsi)
	movq	$0, 32(%rsi)
	orl	$4, %r9d
	movl	%r9d, 4(%rsi)
	movq	8(%r10), %rax
	movq	_PNG_FILLER_BEFORE@GOTPCREL(%rip), %r9
	xorl	%ecx, %ecx
	cmpq	(%r9), %rax
	sete	%cl
	movl	%ecx, 24(%rsi)
LBB0_4:
	movq	(%rdi), %rdi
	movq	(%rdi), %rax
	movq	%r8, %rcx
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ## @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ## @PNG_COLOR_TYPE_GRAY
	.comm	_data,16,3                      ## @data
	.comm	_PNG_FILLER_BEFORE,8,3          ## @PNG_FILLER_BEFORE
	.no_dead_strip	_image_transform_png_set_add_alpha_mod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_transform_png_set_add_alpha_mod
_image_transform_png_set_add_alpha_mod: ; @image_transform_png_set_add_alpha_mod
	.cfi_startproc
; %bb.0:
	ldr	w9, [x1]
	cmp	w9, #8
	b.lt	LBB0_3
; %bb.1:
	ldr	w8, [x1, #4]
Lloh0:
	adrp	x10, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _PNG_COLOR_TYPE_GRAY@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PNG_COLOR_TYPE_GRAY@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w8, w10
	ccmp	w8, w11, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w10, w9
Lloh6:
	adrp	x11, _data@GOTPAGE
Lloh7:
	ldr	x11, [x11, _data@GOTPAGEOFF]
	ldr	w12, [x11]
	bic	w9, w12, w9
	ucvtf	d0, w9
	ucvtf	d1, w10
	fdiv	d0, d0, d1
	str	d0, [x1, #16]
	str	xzr, [x1, #32]
	orr	w8, w8, #0x4
	stp	w8, w9, [x1, #4]
	ldr	x8, [x11, #8]
Lloh8:
	adrp	x9, _PNG_FILLER_BEFORE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PNG_FILLER_BEFORE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x1, #24]
LBB0_3:
	ldr	x0, [x0]
	ldr	x4, [x0]
	br	x4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_RGB,4,2         ; @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_GRAY,4,2        ; @PNG_COLOR_TYPE_GRAY
	.comm	_data,16,3                      ; @data
	.comm	_PNG_FILLER_BEFORE,8,3          ; @PNG_FILLER_BEFORE
	.no_dead_strip	_image_transform_png_set_add_alpha_mod
.subsections_via_symbols
