	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_packet3_load_vbpntr       ## -- Begin function r100_packet3_load_vbpntr
	.p2align	4, 0x90
_r100_packet3_load_vbpntr:              ## @r100_packet3_load_vbpntr
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %r13
	movq	8(%rdi), %rbx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	callq	_radeon_get_ib_value
	movl	%eax, %edx
	andl	$31, %edx
	cmpl	$17, %edx
	jb	LBB0_2
## %bb.1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_radeon_cs_dump_packet
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_16
LBB0_2:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incl	%ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, (%r13)
	xorl	%ecx, %ecx
	decl	%edx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.4:
	movl	%eax, -92(%rbp)                 ## 4-byte Spill
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rbx,%rax,4), %r14
	addq	$8, %r14
	leaq	-56(%rbp), %r15
	movq	%rbx, -104(%rbp)                ## 8-byte Spill
	movl	%edx, -96(%rbp)                 ## 4-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_radeon_cs_packet_next_reloc
	movq	%r12, %r13
	testl	%eax, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_radeon_get_ib_value
	movq	%r13, %rdi
	movl	%eax, %r12d
	leal	1(%rbx), %esi
	callq	_radeon_get_ib_value
	movq	-56(%rbp), %rcx
	addl	8(%rcx), %eax
	movq	%r14, %r13
	movl	%eax, -4(%r14)
	movl	%r12d, %eax
	shrl	$8, %eax
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rdx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %esi
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rdx,%rsi,8)
	andl	$127, %eax
	movl	%eax, (%rdx,%rsi,8)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_radeon_cs_packet_next_reloc
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	leal	2(%rbx), %esi
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_radeon_get_ib_value
	movq	-56(%rbp), %rcx
	addl	8(%rcx), %eax
	movl	%eax, (%r13)
	movl	(%rcx), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	leal	1(%r14), %edx
	movl	%eax, 4(%rcx,%rdx,8)
	shrl	$24, %r12d
	andl	$127, %r12d
	movl	%r12d, (%rcx,%rdx,8)
	addl	$2, %r14d
	addl	$3, %ebx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	addq	$12, %r13
	movl	-96(%rbp), %edx                 ## 4-byte Reload
	cmpl	%edx, %r14d
	movq	%r15, %r12
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%r14, %rcx
	movq	%r13, %r14
	leaq	-56(%rbp), %r15
	jb	LBB0_5
## %bb.11:
	movq	%r12, %r14
	movl	%ecx, %ecx
	movl	-92(%rbp), %eax                 ## 4-byte Reload
	jmp	LBB0_12
LBB0_3:
	movq	%r12, %r14
LBB0_12:
	xorl	%r12d, %r12d
	testb	$1, %al
	je	LBB0_16
## %bb.13:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_radeon_cs_packet_next_reloc
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r12d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movq	%r14, %rdi
	jmp	LBB0_7
LBB0_6:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %r12d
	callq	_DRM_ERROR
	movq	%r13, %rdi
	jmp	LBB0_7
LBB0_9:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %r12d
	callq	_DRM_ERROR
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	movq	%rbx, %rsi
	callq	_radeon_cs_dump_packet
LBB0_16:
	movl	%r12d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_radeon_get_ib_value
	movl	%eax, %r12d
	leal	1(%r15), %esi
	movq	%r14, %rdi
	callq	_radeon_get_ib_value
	movq	-56(%rbp), %rcx
	addl	8(%rcx), %eax
	movslq	%r15d, %rdx
	movl	%eax, 4(%rbx,%rdx,4)
	movl	(%rcx), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%rdx,8)
	shrl	$8, %r12d
	andl	$127, %r12d
	movl	%r12d, (%rcx,%rdx,8)
	xorl	%r12d, %r12d
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Only 16 vertex buffers are allowed %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"No reloc for packet3 %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r100_packet3_load_vbpntr       ; -- Begin function r100_packet3_load_vbpntr
	.p2align	2
_r100_packet3_load_vbpntr:              ; @r100_packet3_load_vbpntr
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x25, x26, [x0]
	mov	x1, x2
	bl	_radeon_get_ib_value
	and	w8, w0, #0x1f
	cmp	w8, #17
	b.lo	LBB0_2
; %bb.1:
	ldr	w1, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_cs_dump_packet
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_2:
	mov	x22, x0
	add	w21, w21, #1
	str	w8, [x25]
	subs	w27, w8, #1
	b.eq	LBB0_12
; %bb.3:
	str	x26, [sp]                       ; 8-byte Folded Spill
	add	x8, x26, w21, sxtw #2
	add	x28, x8, #8
	mov	w26, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_cs_packet_next_reloc
	cbnz	w0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w23, w26, #1
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_get_ib_value
	mov	x24, x0
	add	w1, w21, #1
	mov	x0, x19
	bl	_radeon_get_ib_value
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #8]
	add	w9, w0, w9
	stur	w9, [x28, #-4]
	ldr	x9, [x25, #8]
	add	x9, x9, w23, uxtw #3
	ldr	w8, [x8]
	ubfx	w10, w24, #8, #7
	stp	w10, w8, [x9]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_cs_packet_next_reloc
	cbnz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w1, w21, #2
	mov	x0, x19
	bl	_radeon_get_ib_value
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #8]
	add	w9, w0, w9
	str	w9, [x28], #12
	ldr	w8, [x8]
	ldr	x9, [x25, #8]
	add	x9, x9, w26, uxtw #3
	ubfx	w10, w24, #24, #7
	stp	w10, w8, [x9]
	add	w21, w21, #3
	add	w8, w26, #2
	add	w9, w26, #1
	mov	x26, x8
	cmp	w9, w27
	b.lo	LBB0_4
; %bb.7:
	sub	w24, w8, #1
	ldr	x26, [sp]                       ; 8-byte Folded Reload
	tbz	w22, #0, LBB0_13
LBB0_8:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	bl	_radeon_cs_packet_next_reloc
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_get_ib_value
	mov	x20, x0
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_radeon_get_ib_value
	ldr	x8, [sp, #8]
	ldr	w9, [x8, #8]
	add	w9, w0, w9
	str	w9, [x26, w21, sxtw #2]
	ldr	w8, [x8]
	ldr	x9, [x25, #8]
	add	x9, x9, x24, lsl #3
	ubfx	w10, w20, #8, #7
	stp	w10, w8, [x9]
	b	LBB0_14
LBB0_10:
	mov	x23, x0
LBB0_11:
	ldr	w1, [x20]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	x0, x19
	mov	x1, x20
	bl	_radeon_cs_dump_packet
	b	LBB0_14
LBB0_12:
	mov	x24, #0
	tbnz	w22, #0, LBB0_8
LBB0_13:
	mov	w23, #0
LBB0_14:
	mov	x0, x23
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Only 16 vertex buffers are allowed %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"No reloc for packet3 %d\n"

.subsections_via_symbols
