	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_auto
_draw_auto:                             ## @draw_auto
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_RADEON_RING_TYPE_GFX_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	(%rdi), %rbx
	movq	_PACKET3_SET_CONFIG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_VGT_PRIMITIVE_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PACKET3_SET_CONFIG_REG_START@GOTPCREL(%rip), %rax
	subl	(%rax), %esi
	sarl	$2, %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	_DI_PT_RECTLIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	_PACKET3_INDEX_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	_DI_INDEX_SIZE_16_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_radeon_ring_write
	movq	_PACKET3_NUM_INSTANCES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_radeon_ring_write
	movq	_PACKET3_DRAW_INDEX_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_PACKET3
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_radeon_ring_write
	movq	%rbx, %rdi
	movl	$3, %esi
	callq	_radeon_ring_write
	movq	_DI_SRC_SEL_AUTO_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_radeon_ring_write              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ## @RADEON_RING_TYPE_GFX_INDEX
	.comm	_PACKET3_SET_CONFIG_REG,4,2     ## @PACKET3_SET_CONFIG_REG
	.comm	_VGT_PRIMITIVE_TYPE,4,2         ## @VGT_PRIMITIVE_TYPE
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ## @PACKET3_SET_CONFIG_REG_START
	.comm	_DI_PT_RECTLIST,4,2             ## @DI_PT_RECTLIST
	.comm	_PACKET3_INDEX_TYPE,4,2         ## @PACKET3_INDEX_TYPE
	.comm	_DI_INDEX_SIZE_16_BIT,4,2       ## @DI_INDEX_SIZE_16_BIT
	.comm	_PACKET3_NUM_INSTANCES,4,2      ## @PACKET3_NUM_INSTANCES
	.comm	_PACKET3_DRAW_INDEX_AUTO,4,2    ## @PACKET3_DRAW_INDEX_AUTO
	.comm	_DI_SRC_SEL_AUTO_INDEX,4,2      ## @DI_SRC_SEL_AUTO_INDEX
	.no_dead_strip	_draw_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_auto
_draw_auto:                             ; @draw_auto
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_RING_TYPE_GFX_INDEX@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	add	x19, x9, x8, lsl #2
Lloh3:
	adrp	x8, _PACKET3_SET_CONFIG_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PACKET3_SET_CONFIG_REG@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh6:
	adrp	x8, _VGT_PRIMITIVE_TYPE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VGT_PRIMITIVE_TYPE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PACKET3_SET_CONFIG_REG_START@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	sub	w8, w8, w9
	asr	w1, w8, #2
	mov	x0, x19
	bl	_radeon_ring_write
Lloh12:
	adrp	x8, _DI_PT_RECTLIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DI_PT_RECTLIST@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_radeon_ring_write
Lloh15:
	adrp	x8, _PACKET3_INDEX_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PACKET3_INDEX_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
Lloh18:
	adrp	x8, _DI_INDEX_SIZE_16_BIT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DI_INDEX_SIZE_16_BIT@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_radeon_ring_write
Lloh21:
	adrp	x8, _PACKET3_NUM_INSTANCES@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PACKET3_NUM_INSTANCES@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #1
	bl	_radeon_ring_write
Lloh24:
	adrp	x8, _PACKET3_DRAW_INDEX_AUTO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PACKET3_DRAW_INDEX_AUTO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_PACKET3
	mov	x1, x0
	mov	x0, x19
	bl	_radeon_ring_write
	mov	x0, x19
	mov	w1, #3
	bl	_radeon_ring_write
Lloh27:
	adrp	x8, _DI_SRC_SEL_AUTO_INDEX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DI_SRC_SEL_AUTO_INDEX@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_radeon_ring_write
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_RING_TYPE_GFX_INDEX,8,3 ; @RADEON_RING_TYPE_GFX_INDEX
	.comm	_PACKET3_SET_CONFIG_REG,4,2     ; @PACKET3_SET_CONFIG_REG
	.comm	_VGT_PRIMITIVE_TYPE,4,2         ; @VGT_PRIMITIVE_TYPE
	.comm	_PACKET3_SET_CONFIG_REG_START,4,2 ; @PACKET3_SET_CONFIG_REG_START
	.comm	_DI_PT_RECTLIST,4,2             ; @DI_PT_RECTLIST
	.comm	_PACKET3_INDEX_TYPE,4,2         ; @PACKET3_INDEX_TYPE
	.comm	_DI_INDEX_SIZE_16_BIT,4,2       ; @DI_INDEX_SIZE_16_BIT
	.comm	_PACKET3_NUM_INSTANCES,4,2      ; @PACKET3_NUM_INSTANCES
	.comm	_PACKET3_DRAW_INDEX_AUTO,4,2    ; @PACKET3_DRAW_INDEX_AUTO
	.comm	_DI_SRC_SEL_AUTO_INDEX,4,2      ; @DI_SRC_SEL_AUTO_INDEX
	.no_dead_strip	_draw_auto
.subsections_via_symbols
