	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_blit_swap                 ## -- Begin function r600_blit_swap
	.p2align	4, 0x90
_r600_blit_swap:                        ## @r600_blit_swap
	.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
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	8(%r15), %rax
	movq	(%rax), %rcx
	addq	$48, %rcx
	cmpq	8(%rax), %rcx
	jle	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_r600_nomm_put_vb
	movq	%rbx, %rdi
	callq	_r600_nomm_get_vb
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_set_shaders
LBB0_3:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, -76(%rbp)                ## 4-byte Spill
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movl	32(%rbp), %r15d
	movl	24(%rbp), %r12d
	movq	%rbx, %rdi
	callq	_r600_nomm_get_vb_ptr
	movq	%rax, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	leal	(%r12,%rbx), %eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	addl	%r13d, %r12d
	addl	16(%rbp), %r15d
	movl	%r13d, %edi
	callq	_int2float
	movl	%eax, (%r14)
	movl	16(%rbp), %edi
	callq	_int2float
	movl	%eax, 4(%r14)
	movl	%ebx, %edi
	callq	_int2float
	movl	%eax, 8(%r14)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_int2float
	movl	%eax, 12(%r14)
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	callq	_int2float
	movl	%eax, 16(%r14)
	movl	%r15d, %edi
	callq	_int2float
	movl	%eax, 20(%r14)
	movl	%ebx, %edi
	movl	-68(%rbp), %ebx                 ## 4-byte Reload
	callq	_int2float
	movl	%eax, 24(%r14)
	movl	%ebx, %edi
	callq	_int2float
	movl	%eax, 28(%r14)
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	movq	%r15, %r12
	callq	_int2float
	movl	%eax, 32(%r14)
	movl	%r12d, %edi
	callq	_int2float
	movl	%eax, 36(%r14)
	movl	-72(%rbp), %edi                 ## 4-byte Reload
	callq	_int2float
	movl	%eax, 40(%r14)
	movl	%ebx, %edi
	callq	_int2float
	movl	56(%rbp), %edi
	movl	%eax, 44(%r14)
	cmpl	$4, %edi
	je	LBB0_4
## %bb.5:
	cmpl	$2, %edi
	jne	LBB0_7
## %bb.6:
	movq	_COLOR_5_6_5@GOTPCREL(%rip), %rax
	movq	_FMT_5_6_5@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	_COLOR_8_8_8_8@GOTPCREL(%rip), %rax
	movq	_FMT_8_8_8_8@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_7:
	movq	_COLOR_8@GOTPCREL(%rip), %rax
	movq	_FMT_8@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rcx), %esi
	movl	40(%rbp), %r13d
	movl	%r13d, %eax
	cltd
	idivl	%edi
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movl	-76(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r9d
	callq	_set_tex_resource
	movq	_R600_TC_ACTION_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	imull	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_cp_set_surface_sync
	movl	48(%rbp), %r14d
	movl	%r14d, %eax
	cltd
	idivl	56(%rbp)
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movl	%r12d, %ecx
	movl	-80(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_set_render_target
	movq	%r15, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	16(%rbp), %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r12d, %r8d
	callq	_set_scissors
	movq	8(%r15), %rax
	movq	16(%rax), %rsi
	addq	(%r15), %rsi
	addq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_set_vtx_resource
	movq	%r15, %rdi
	callq	_draw_auto
	movq	_R600_CB_ACTION_ENA@GOTPCREL(%rip), %rax
	movq	_R600_CB0_DEST_BASE_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	imull	%r14d, %r12d
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	callq	_cp_set_surface_sync
	movq	8(%r15), %rax
	addq	$48, (%rax)
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COLOR_8_8_8_8,4,2              ## @COLOR_8_8_8_8
	.comm	_FMT_8_8_8_8,4,2                ## @FMT_8_8_8_8
	.comm	_COLOR_5_6_5,4,2                ## @COLOR_5_6_5
	.comm	_FMT_5_6_5,4,2                  ## @FMT_5_6_5
	.comm	_COLOR_8,4,2                    ## @COLOR_8
	.comm	_FMT_8,4,2                      ## @FMT_8
	.comm	_R600_TC_ACTION_ENA,4,2         ## @R600_TC_ACTION_ENA
	.comm	_R600_CB_ACTION_ENA,4,2         ## @R600_CB_ACTION_ENA
	.comm	_R600_CB0_DEST_BASE_ENA,4,2     ## @R600_CB0_DEST_BASE_ENA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_blit_swap                 ; -- Begin function r600_blit_swap
	.p2align	2
_r600_blit_swap:                        ; @r600_blit_swap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x24, x7
	mov	x25, x6
	mov	x22, x5
	mov	x23, x4
	mov	x27, x3
	mov	x21, x2
	mov	x26, x1
	mov	x20, x0
	ldr	x19, [x0]
	ldr	x8, [x19, #8]
	ldp	x9, x8, [x8]
	add	x9, x9, #48
	cmp	x9, x8
	b.le	LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_r600_nomm_put_vb
	mov	x0, x20
	bl	_r600_nomm_get_vb
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_set_shaders
LBB0_3:
	ldr	w8, [x29, #28]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w8, [x29, #24]
	str	w8, [sp, #24]                   ; 4-byte Folded Spill
	ldr	w8, [x29, #20]
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	str	w21, [sp, #28]                  ; 4-byte Folded Spill
	ldr	w21, [x29, #16]
	mov	x0, x20
	bl	_r600_nomm_get_vb_ptr
	mov	x28, x0
	add	w8, w24, w27
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	str	w26, [sp, #12]                  ; 4-byte Folded Spill
	add	w26, w21, w23
	mov	x0, x22
	add	w22, w24, w22
	mov	x20, x25
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	add	w24, w21, w25
	mov	x25, x0
	bl	_int2float
	str	w0, [x28]
	mov	x0, x20
	bl	_int2float
	str	w0, [x28, #4]
	mov	x0, x27
	bl	_int2float
	str	w0, [x28, #8]
	mov	x0, x23
	bl	_int2float
	str	w0, [x28, #12]
	mov	x0, x25
	bl	_int2float
	str	w0, [x28, #16]
	mov	x0, x24
	bl	_int2float
	str	w0, [x28, #20]
	mov	x0, x27
	bl	_int2float
	str	w0, [x28, #24]
	mov	x0, x26
	bl	_int2float
	str	w0, [x28, #28]
	mov	x0, x22
	bl	_int2float
	str	w0, [x28, #32]
	mov	x0, x24
	bl	_int2float
	str	w0, [x28, #36]
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	_int2float
	str	w0, [x28, #40]
	mov	x0, x26
	bl	_int2float
Lloh0:
	adrp	x8, _COLOR_8_8_8_8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLOR_8_8_8_8@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FMT_8_8_8_8@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FMT_8_8_8_8@GOTPAGEOFF]
	str	w0, [x28, #44]
	ldr	w14, [sp, #8]                   ; 4-byte Folded Reload
	cmp	w14, #2
Lloh4:
	adrp	x10, _COLOR_8@GOTPAGE
Lloh5:
	ldr	x10, [x10, _COLOR_8@GOTPAGEOFF]
Lloh6:
	adrp	x11, _FMT_8@GOTPAGE
Lloh7:
	ldr	x11, [x11, _FMT_8@GOTPAGEOFF]
Lloh8:
	adrp	x12, _COLOR_5_6_5@GOTPAGE
Lloh9:
	ldr	x12, [x12, _COLOR_5_6_5@GOTPAGEOFF]
Lloh10:
	adrp	x13, _FMT_5_6_5@GOTPAGE
Lloh11:
	ldr	x13, [x13, _FMT_5_6_5@GOTPAGEOFF]
	csel	x11, x11, x13, ne
	csel	x10, x10, x12, ne
	cmp	w14, #4
	csel	x9, x9, x11, eq
	csel	x8, x8, x10, eq
	ldr	w20, [x8]
	ldr	w1, [x9]
	ldp	w27, w21, [sp, #12]             ; 8-byte Folded Reload
	sdiv	w2, w21, w14
	mov	x23, x14
	mov	x0, x19
	mov	x3, x26
	mov	x4, x2
	mov	x5, x27
	bl	_set_tex_resource
Lloh12:
	adrp	x8, _R600_TC_ACTION_ENA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _R600_TC_ACTION_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mul	w2, w26, w21
	mov	x0, x19
	mov	x3, x27
	bl	_cp_set_surface_sync
	ldr	w21, [sp, #24]                  ; 4-byte Folded Reload
	sdiv	w2, w21, w23
	mov	x0, x19
	mov	x1, x20
	mov	x3, x24
	ldr	w20, [sp, #28]                  ; 4-byte Folded Reload
	mov	x4, x20
	bl	_set_render_target
	mov	x0, x19
	mov	x1, x25
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	mov	x3, x22
	mov	x4, x24
	bl	_set_scissors
	ldp	x8, x9, [x19]
	ldr	x10, [x9, #16]
	ldr	x9, [x9]
	add	x8, x10, x8
	add	x1, x8, x9
	mov	x0, x19
	bl	_set_vtx_resource
	mov	x0, x19
	bl	_draw_auto
Lloh15:
	adrp	x8, _R600_CB_ACTION_ENA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _R600_CB_ACTION_ENA@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _R600_CB0_DEST_BASE_ENA@GOTPAGE
Lloh19:
	ldr	x9, [x9, _R600_CB0_DEST_BASE_ENA@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mul	w2, w24, w21
	mov	x0, x19
	mov	x3, x20
	bl	_cp_set_surface_sync
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	add	x9, x9, #48
	str	x9, [x8]
LBB0_4:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_COLOR_8_8_8_8,4,2              ; @COLOR_8_8_8_8
	.comm	_FMT_8_8_8_8,4,2                ; @FMT_8_8_8_8
	.comm	_COLOR_5_6_5,4,2                ; @COLOR_5_6_5
	.comm	_FMT_5_6_5,4,2                  ; @FMT_5_6_5
	.comm	_COLOR_8,4,2                    ; @COLOR_8
	.comm	_FMT_8,4,2                      ; @FMT_8
	.comm	_R600_TC_ACTION_ENA,4,2         ; @R600_TC_ACTION_ENA
	.comm	_R600_CB_ACTION_ENA,4,2         ; @R600_CB_ACTION_ENA
	.comm	_R600_CB0_DEST_BASE_ENA,4,2     ; @R600_CB0_DEST_BASE_ENA
.subsections_via_symbols
