	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function image_transform_png_set_background_mod
_image_transform_png_set_background_mod: ## @image_transform_png_set_background_mod
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r12
	cmpq	$0, 88(%rsi)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_image_pixel_add_alpha
LBB0_3:
	cmpl	$0, 8(%rbx)
	jg	LBB0_5
## %bb.4:
	movq	_data@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, 16(%rbx)
	movups	16(%rax), %xmm0
	movups	%xmm0, 32(%rbx)
	movups	32(%rax), %xmm0
	movups	%xmm0, 48(%rbx)
	movl	56(%rax), %ecx
	movl	%ecx, 80(%rbx)
	movl	52(%rax), %ecx
	movl	%ecx, 76(%rbx)
	movl	48(%rax), %eax
	movl	%eax, 72(%rbx)
	movl	$1, 8(%rbx)
	movq	$0, 64(%rbx)
LBB0_5:
	movq	(%rbx), %rax
	movq	_PNG_COLOR_TYPE_RGB_ALPHA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_PNG_COLOR_TYPE_RGB@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_PNG_COLOR_TYPE_GRAY_ALPHA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:
	movq	_PNG_COLOR_TYPE_GRAY@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_10:
	movq	(%r12), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movq	%r15, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ## @PNG_COLOR_TYPE_PALETTE
	.comm	_data,64,3                      ## @data
	.comm	_DBL_EPSILON,8,3                ## @DBL_EPSILON
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,8,3   ## @PNG_COLOR_TYPE_RGB_ALPHA
	.comm	_PNG_COLOR_TYPE_RGB,8,3         ## @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_GRAY_ALPHA,8,3  ## @PNG_COLOR_TYPE_GRAY_ALPHA
	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ## @PNG_COLOR_TYPE_GRAY
	.no_dead_strip	_image_transform_png_set_background_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_background_mod
_image_transform_png_set_background_mod: ; @image_transform_png_set_background_mod
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x1, #88]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x21]
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_3
; %bb.2:
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_image_pixel_add_alpha
LBB0_3:
	ldr	w8, [x21, #8]
	cmp	w8, #0
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _data@GOTPAGE
Lloh4:
	ldr	x8, [x8, _data@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [x21, #16]
	ldr	q0, [x8, #16]
	str	q0, [x21, #32]
	ldr	q0, [x8, #32]
	str	q0, [x21, #48]
	ldr	w9, [x8, #56]
	str	w9, [x21, #80]
	ldr	d0, [x8, #48]
	str	d0, [x21, #72]
	mov	w8, #1
	str	w8, [x21, #8]
	str	xzr, [x21, #64]
LBB0_5:
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PNG_COLOR_TYPE_RGB_ALPHA@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh8:
	adrp	x8, _PNG_COLOR_TYPE_RGB@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PNG_COLOR_TYPE_RGB@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh10:
	adrp	x9, _PNG_COLOR_TYPE_GRAY_ALPHA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PNG_COLOR_TYPE_GRAY_ALPHA@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh13:
	adrp	x8, _PNG_COLOR_TYPE_GRAY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PNG_COLOR_TYPE_GRAY@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x21]
LBB0_10:
	ldr	x0, [x22]
	ldr	x4, [x0]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	br	x4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ; @PNG_COLOR_TYPE_PALETTE
	.comm	_data,64,3                      ; @data
	.comm	_DBL_EPSILON,8,3                ; @DBL_EPSILON
	.comm	_PNG_COLOR_TYPE_RGB_ALPHA,8,3   ; @PNG_COLOR_TYPE_RGB_ALPHA
	.comm	_PNG_COLOR_TYPE_RGB,8,3         ; @PNG_COLOR_TYPE_RGB
	.comm	_PNG_COLOR_TYPE_GRAY_ALPHA,8,3  ; @PNG_COLOR_TYPE_GRAY_ALPHA
	.comm	_PNG_COLOR_TYPE_GRAY,8,3        ; @PNG_COLOR_TYPE_GRAY
	.no_dead_strip	_image_transform_png_set_background_mod
.subsections_via_symbols
