	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfx_slow_swizzling_blit        ## -- Begin function gfx_slow_swizzling_blit
	.p2align	4, 0x90
_gfx_slow_swizzling_blit:               ## @gfx_slow_swizzling_blit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	%r8d, %edi
	callq	_swizzle_x
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_swizzle_y
	movl	%eax, %r14d
	movl	$-1, %edi
	callq	_swizzle_x
	movl	%eax, %r12d
	movl	$-1, %edi
	callq	_swizzle_y
	movl	%eax, %r15d
	movl	$1280, %edi                     ## imm = 0x500
	callq	_swizzle_x
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movl	%ecx, %r11d
	movl	16(%rbp), %r9d
	addl	%r13d, %r11d
	leal	127(%r13), %r8d
	testl	%r13d, %r13d
	cmovnsl	%r13d, %r8d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leal	(%rcx,%rdx), %r10d
	sarl	$7, %r8d
	imull	%eax, %r8d
	addl	-44(%rbp), %r8d                 ## 4-byte Folded Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	%r15d, %r14d
	andl	%r15d, %r14d
	movl	$0, %ecx
	cmovel	%eax, %ecx
	addl	%ecx, %r8d
	incl	%r13d
	cmpl	%r11d, %r13d
	jge	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r14d, %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rdi
	movl	%r8d, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rdi,%rdx,4), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	addq	$4, %rbx
	movl	%esi, (%rdi,%rdx,4)
	subl	%r12d, %edx
	andl	%r12d, %edx
	incl	%ecx
	cmpl	%r10d, %ecx
	jge	LBB0_9
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx), %esi
	movslq	%edx, %rdx
	testl	%r9d, %r9d
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	cmpl	$16777216, %esi                 ## imm = 0x1000000
	jb	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	andl	$16777215, %esi                 ## imm = 0xFFFFFF
	jmp	LBB0_8
LBB0_10:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gfx_slow_swizzling_blit        ; -- Begin function gfx_slow_swizzling_blit
	.p2align	2
_gfx_slow_swizzling_blit:               ; @gfx_slow_swizzling_blit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x28, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	mov	x0, x4
	bl	_swizzle_x
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	mov	x0, x20
	bl	_swizzle_y
	mov	x25, x0
	mov	w0, #-1
	bl	_swizzle_x
	mov	x26, x0
	mov	w0, #-1
	bl	_swizzle_y
	mov	x27, x0
	mov	w0, #1280
	bl	_swizzle_x
	cmp	w28, #1
	b.lt	LBB0_10
; %bb.1:
	add	w8, w21, w22
	add	w9, w20, w28
	add	w10, w20, #127
	cmp	w20, #0
	csel	w10, w10, w20, lt
	asr	w10, w10, #7
	ldr	w11, [sp, #12]                  ; 4-byte Folded Reload
	madd	w10, w0, w10, w11
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w11, w25, w27
	ands	w25, w11, w27
	csel	w11, w0, wzr, eq
	add	w10, w11, w10
	add	w20, w20, #1
	cmp	w20, w9
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x24, w25, sxtw #2
	mov	x12, x10
	mov	x13, x21
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldr	w14, [x11, w12, sxtw #2]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w14, [x11, w12, sxtw #2]
	sub	w12, w12, w26
	and	w12, w12, w26
	add	w13, w13, #1
	cmp	w13, w8
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x23], #4
	cbz	w19, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	lsr	w15, w14, #24
	cbz	w15, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	and	w14, w14, #0xffffff
	b	LBB0_6
LBB0_10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
