	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_reloc_pitch_offset        ## -- Begin function r100_reloc_pitch_offset
	.p2align	4, 0x90
_r100_reloc_pitch_offset:               ## @r100_reloc_pitch_offset
	.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
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_radeon_cs_packet_next_reloc
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_radeon_cs_dump_packet
	jmp	LBB0_12
LBB0_2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_radeon_get_ib_value
	movl	%eax, %esi
	andl	$4194303, %esi                  ## imm = 0x3FFFFF
	movq	-48(%rbp), %rdx
	movl	8(%rdx), %ecx
	sarl	$10, %ecx
	addl	%esi, %ecx
	movq	_RADEON_CS_KEEP_TILING_FLAGS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%r13)
	je	LBB0_3
## %bb.10:
	andl	$-4194304, %eax                 ## imm = 0xFFC00000
	orl	%eax, %ecx
	jmp	LBB0_11
LBB0_3:
	movl	(%rdx), %esi
	movq	_RADEON_TILING_MACRO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%esi, %edx
	je	LBB0_5
## %bb.4:
	movq	_RADEON_DST_TILE_MACRO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_5:
	movq	_RADEON_TILING_MICRO@GOTPCREL(%rip), %rdi
	testl	%esi, (%rdi)
	je	LBB0_9
## %bb.6:
	movq	_RADEON_SRC_PITCH_OFFSET@GOTPCREL(%rip), %rsi
	cmpl	%r12d, (%rsi)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_radeon_cs_dump_packet
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_8:
	movq	_RADEON_DST_TILE_MICRO@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
LBB0_9:
	andl	$1069547520, %eax               ## imm = 0x3FC00000
	orl	%eax, %ecx
	orl	%edx, %ecx
LBB0_11:
	movq	8(%r13), %rax
	movl	%r14d, %edx
	movl	%ecx, (%rax,%rdx,4)
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No reloc for ib[%d]=0x%04X\n"

	.comm	_RADEON_CS_KEEP_TILING_FLAGS,4,2 ## @RADEON_CS_KEEP_TILING_FLAGS
	.comm	_RADEON_TILING_MACRO,4,2        ## @RADEON_TILING_MACRO
	.comm	_RADEON_DST_TILE_MACRO,4,2      ## @RADEON_DST_TILE_MACRO
	.comm	_RADEON_TILING_MICRO,4,2        ## @RADEON_TILING_MICRO
	.comm	_RADEON_SRC_PITCH_OFFSET,4,2    ## @RADEON_SRC_PITCH_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Cannot src blit from microtiled surface\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RADEON_DST_TILE_MICRO,4,2      ## @RADEON_DST_TILE_MICRO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_reloc_pitch_offset        ; -- Begin function r100_reloc_pitch_offset
	.p2align	2
_r100_reloc_pitch_offset:               ; @r100_reloc_pitch_offset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x1, sp, #24
	mov	w2, #0
	bl	_radeon_cs_packet_next_reloc
	cbz	w0, LBB0_2
; %bb.1:
	mov	x23, x0
	stp	x20, x22, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_cs_dump_packet
	b	LBB0_10
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_get_ib_value
	and	w8, w0, #0x3fffff
	ldr	x9, [sp, #24]
	ldr	w10, [x9, #8]
	add	w8, w8, w10, asr #10
	ldr	w10, [x19]
Lloh2:
	adrp	x11, _RADEON_CS_KEEP_TILING_FLAGS@GOTPAGE
Lloh3:
	ldr	x11, [x11, _RADEON_CS_KEEP_TILING_FLAGS@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_4
; %bb.3:
	mov	w23, #0
	and	w9, w0, #0xffc00000
	b	LBB0_9
LBB0_4:
	ldr	w10, [x9]
Lloh5:
	adrp	x9, _RADEON_TILING_MACRO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RADEON_TILING_MACRO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x11, _RADEON_DST_TILE_MACRO@GOTPAGE
Lloh9:
	ldr	x11, [x11, _RADEON_DST_TILE_MACRO@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w9, w10
	csel	w9, wzr, w11, eq
Lloh11:
	adrp	x11, _RADEON_TILING_MICRO@GOTPAGE
Lloh12:
	ldr	x11, [x11, _RADEON_TILING_MICRO@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_8
; %bb.5:
Lloh14:
	adrp	x10, _RADEON_SRC_PITCH_OFFSET@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RADEON_SRC_PITCH_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	cmp	w10, w22
	b.ne	LBB0_7
; %bb.6:
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_cs_dump_packet
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_10
LBB0_7:
Lloh22:
	adrp	x10, _RADEON_DST_TILE_MICRO@GOTPAGE
Lloh23:
	ldr	x10, [x10, _RADEON_DST_TILE_MICRO@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	orr	w9, w10, w9
LBB0_8:
	mov	w23, #0
	and	w10, w0, #0x3fc00000
	orr	w8, w8, w10
LBB0_9:
	orr	w8, w8, w9
	ldr	x9, [x19, #8]
	str	w8, [x9, w20, uxtw #2]
LBB0_10:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No reloc for ib[%d]=0x%04X\n"

	.comm	_RADEON_CS_KEEP_TILING_FLAGS,4,2 ; @RADEON_CS_KEEP_TILING_FLAGS
	.comm	_RADEON_TILING_MACRO,4,2        ; @RADEON_TILING_MACRO
	.comm	_RADEON_DST_TILE_MACRO,4,2      ; @RADEON_DST_TILE_MACRO
	.comm	_RADEON_TILING_MICRO,4,2        ; @RADEON_TILING_MICRO
	.comm	_RADEON_SRC_PITCH_OFFSET,4,2    ; @RADEON_SRC_PITCH_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Cannot src blit from microtiled surface\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RADEON_DST_TILE_MICRO,4,2      ; @RADEON_DST_TILE_MICRO
.subsections_via_symbols
