	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r300_emit_raw_packet3
_r300_emit_raw_packet3:                 ## @r300_emit_raw_packet3
	.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	%rsi, %rbx
	movl	(%rsi), %edi
	callq	_drm_buffer_unprocessed
	cmpl	$4, %eax
	jl	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_drm_buffer_pointer_to_dword
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a packet3 header (0x%08x)\n"

	.comm	_RADEON_FLUSH_EMITED,4,2        ## @RADEON_FLUSH_EMITED
	.comm	_RADEON_PURGE_EMITED,4,2        ## @RADEON_PURGE_EMITED
	.no_dead_strip	_r300_emit_raw_packet3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r300_emit_raw_packet3
_r300_emit_raw_packet3:                 ; @r300_emit_raw_packet3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w0, [x1]
	bl	_drm_buffer_unprocessed
	cmp	w0, #4
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	mov	w1, #0
	bl	_drm_buffer_pointer_to_dword
	ldr	w8, [x0]
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_ERROR
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a packet3 header (0x%08x)\n"

	.comm	_RADEON_FLUSH_EMITED,4,2        ; @RADEON_FLUSH_EMITED
	.comm	_RADEON_PURGE_EMITED,4,2        ; @RADEON_PURGE_EMITED
	.no_dead_strip	_r300_emit_raw_packet3
.subsections_via_symbols
