	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r300_emit_bitblt_multi
_r300_emit_bitblt_multi:                ## @r300_emit_bitblt_multi
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	(%rsi), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_drm_buffer_pointer_to_dword
	movl	(%rax), %eax
	movq	_RADEON_CP_PACKET_COUNT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	%eax, %ebx
	testl	$32768, %eax                    ## imm = 0x8000
	je	LBB0_10
## %bb.1:
	movl	(%r15), %edi
	movl	$1, %esi
	callq	_drm_buffer_pointer_to_dword
	movq	%rax, %r13
	movl	(%rax), %eax
	movq	_RADEON_GMC_SRC_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_RADEON_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edx
	orl	%ecx, %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.2:
	movl	(%r15), %edi
	movl	$2, %esi
	callq	_drm_buffer_pointer_to_dword
	movq	%r12, %rdi
	movl	(%rax), %r12d
	shll	$10, %r12d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r12d, %esi
	callq	_radeon_check_offset
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:
	movl	(%r13), %eax
	movq	_RADEON_GMC_SRC_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	_RADEON_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rsi
LBB0_4:
	testl	%eax, %ecx
	je	LBB0_10
## %bb.5:
	testl	%eax, (%rsi)
	je	LBB0_10
## %bb.6:
	movl	(%r15), %edi
	movl	$3, %esi
	callq	_drm_buffer_pointer_to_dword
	movq	%r12, %rdi
	movl	(%rax), %r12d
	shll	$10, %r12d
	movl	%r12d, %esi
	callq	_radeon_check_offset
	testl	%eax, %eax
	je	LBB0_7
LBB0_10:
	sarl	$16, %ebx
	addl	$2, %ebx
	movl	%ebx, %edi
	callq	_BEGIN_RING
	movl	(%r15), %edi
	movl	%ebx, %esi
	callq	_OUT_RING_DRM_BUFFER
	xorl	%eax, %eax
	callq	_ADVANCE_RING
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rdi
LBB0_9:
	movl	%r12d, %esi
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.comm	_RADEON_CP_PACKET_COUNT_MASK,4,2 ## @RADEON_CP_PACKET_COUNT_MASK
	.comm	_RADEON_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ## @RADEON_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_RADEON_GMC_DST_PITCH_OFFSET_CNTL,4,2 ## @RADEON_GMC_DST_PITCH_OFFSET_CNTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid bitblt first offset is %08X\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Invalid bitblt second offset is %08X\n"

	.no_dead_strip	_r300_emit_bitblt_multi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r300_emit_bitblt_multi
_r300_emit_bitblt_multi:                ; @r300_emit_bitblt_multi
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w0, [x1]
	mov	w1, #0
	bl	_drm_buffer_pointer_to_dword
	ldr	w23, [x0]
Lloh0:
	adrp	x8, _RADEON_CP_PACKET_COUNT_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_CP_PACKET_COUNT_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	tbz	w23, #15, LBB0_7
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #1
	bl	_drm_buffer_pointer_to_dword
	ldr	w8, [x0]
Lloh3:
	adrp	x26, _RADEON_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _RADEON_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh5:
	adrp	x25, _RADEON_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RADEON_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w10, w10, w9
	tst	w10, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
	mov	w1, #2
	bl	_drm_buffer_pointer_to_dword
	ldr	w8, [x0]
	lsl	w22, w8, #10
	mov	x0, x20
	mov	x1, x22
	bl	_radeon_check_offset
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w8, [x21]
	ldr	w9, [x26]
LBB0_4:
	tst	w9, w8
	b.eq	LBB0_7
; %bb.5:
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19]
	mov	w1, #3
	bl	_drm_buffer_pointer_to_dword
	ldr	w8, [x0]
	lsl	w21, w8, #10
	mov	x0, x20
	mov	x1, x21
	bl	_radeon_check_offset
	cbz	w0, LBB0_10
LBB0_7:
	and	w8, w24, w23
	asr	w8, w8, #16
	add	w20, w8, #2
	mov	x0, x20
	bl	_BEGIN_RING
	ldr	w0, [x19]
	mov	x1, x20
	bl	_OUT_RING_DRM_BUFFER
	bl	_ADVANCE_RING
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
LBB0_11:
	bl	_DRM_ERROR
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.comm	_RADEON_CP_PACKET_COUNT_MASK,4,2 ; @RADEON_CP_PACKET_COUNT_MASK
	.comm	_RADEON_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ; @RADEON_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_RADEON_GMC_DST_PITCH_OFFSET_CNTL,4,2 ; @RADEON_GMC_DST_PITCH_OFFSET_CNTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid bitblt first offset is %08X\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Invalid bitblt second offset is %08X\n"

	.no_dead_strip	_r300_emit_bitblt_multi
.subsections_via_symbols
