	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function buffer_check_attribute
_buffer_check_attribute:                ## @buffer_check_attribute
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r10
	movq	_FALSE@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movl	(%rsi), %edx
	btl	%ecx, %edx
	jae	LBB0_10
## %bb.1:
	movq	16(%rsi), %r11
	shlq	$4, %rcx
	leaq	(%r11,%rcx), %rdx
	movq	(%r10), %r10
	movq	(%rdx), %rbx
	cmpq	%rdi, (%r10,%rbx,8)
	je	LBB0_2
LBB0_10:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	8(%r11,%rcx), %rcx
	movl	(%rcx), %ecx
	movq	_WINED3D_BUFFER_FIXUP_D3DCOLOR@GOTPCREL(%rip), %rbx
	testl	%r8d, (%rbx)
	je	LBB0_6
## %bb.3:
	movq	_WINED3DFMT_B8G8R8A8_UNORM@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %ecx
	jne	LBB0_6
## %bb.4:
	movq	_CONV_D3DCOLOR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_WINED3D_BUFFER_FIXUP_XYZRHW@GOTPCREL(%rip), %rbx
	testl	%r8d, (%rbx)
	je	LBB0_12
## %bb.7:
	cmpq	$0, 8(%rsi)
	je	LBB0_12
## %bb.8:
	movq	_WINED3DFMT_R32G32B32A32_FLOAT@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_9
## %bb.11:
	movq	_CONV_POSITIONT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_12:
	cmpq	$0, (%rdi)
	je	LBB0_10
## %bb.13:
	movq	_CONV_NONE@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %esi
	movq	%r9, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_buffer_process_converted_attribute ## TAILCALL
LBB0_9:
	movl	%ecx, %edi
	callq	_debug_d3dformat
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
	movl	(%r14), %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_WINED3D_BUFFER_FIXUP_D3DCOLOR,4,2 ## @WINED3D_BUFFER_FIXUP_D3DCOLOR
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ## @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_CONV_D3DCOLOR,4,2              ## @CONV_D3DCOLOR
	.comm	_WINED3D_BUFFER_FIXUP_XYZRHW,4,2 ## @WINED3D_BUFFER_FIXUP_XYZRHW
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,4,2 ## @WINED3DFMT_R32G32B32A32_FLOAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected format %s for transformed position.\n"

	.comm	_CONV_POSITIONT,4,2             ## @CONV_POSITIONT
	.comm	_CONV_NONE,4,2                  ## @CONV_NONE
	.no_dead_strip	_buffer_check_attribute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function buffer_check_attribute
_buffer_check_attribute:                ; @buffer_check_attribute
	.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	x19, _FALSE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _FALSE@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w10, [x1]
	lsr	w10, w10, w3
	tbz	w10, #0, LBB0_2
; %bb.1:
	mov	x9, x2
	ldr	x10, [x1, #16]
	add	x2, x10, x3, lsl #4
	ldr	x9, [x9]
	ldr	x11, [x2]
	ldr	x9, [x9, x11, lsl #3]
	cmp	x9, x0
	b.eq	LBB0_3
LBB0_2:
	mov	x0, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	add	x9, x10, x3, lsl #4
	ldr	x9, [x9, #8]
	ldr	w9, [x9]
Lloh2:
	adrp	x10, _WINED3D_BUFFER_FIXUP_D3DCOLOR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WINED3D_BUFFER_FIXUP_D3DCOLOR@GOTPAGEOFF]
Lloh4:
	ldr	w10, [x10]
	and	w10, w10, w4
Lloh5:
	adrp	x11, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _WINED3DFMT_B8G8R8A8_UNORM@GOTPAGEOFF]
Lloh7:
	ldr	w11, [x11]
	cmp	w10, #0
	ccmp	w9, w11, #0, ne
	b.eq	LBB0_8
; %bb.4:
Lloh8:
	adrp	x10, _WINED3D_BUFFER_FIXUP_XYZRHW@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WINED3D_BUFFER_FIXUP_XYZRHW@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w4
	b.eq	LBB0_9
; %bb.5:
	ldr	x10, [x1, #8]
	cbz	x10, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WINED3DFMT_R32G32B32A32_FLOAT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_12
; %bb.7:
Lloh14:
	adrp	x8, _CONV_POSITIONT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CONV_POSITIONT@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh16:
	adrp	x8, _CONV_D3DCOLOR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONV_D3DCOLOR@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	x9, [x0]
	cbz	x9, LBB0_2
; %bb.10:
Lloh18:
	adrp	x8, _CONV_NONE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CONV_NONE@GOTPAGEOFF]
LBB0_11:
	ldr	w1, [x8]
	mov	x3, x5
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_buffer_process_converted_attribute
LBB0_12:
	mov	x0, x9
	bl	_debug_d3dformat
	mov	x1, x0
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	ldr	w8, [x19]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_WINED3D_BUFFER_FIXUP_D3DCOLOR,4,2 ; @WINED3D_BUFFER_FIXUP_D3DCOLOR
	.comm	_WINED3DFMT_B8G8R8A8_UNORM,4,2  ; @WINED3DFMT_B8G8R8A8_UNORM
	.comm	_CONV_D3DCOLOR,4,2              ; @CONV_D3DCOLOR
	.comm	_WINED3D_BUFFER_FIXUP_XYZRHW,4,2 ; @WINED3D_BUFFER_FIXUP_XYZRHW
	.comm	_WINED3DFMT_R32G32B32A32_FLOAT,4,2 ; @WINED3DFMT_R32G32B32A32_FLOAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected format %s for transformed position.\n"

	.comm	_CONV_POSITIONT,4,2             ; @CONV_POSITIONT
	.comm	_CONV_NONE,4,2                  ; @CONV_NONE
	.no_dead_strip	_buffer_check_attribute
.subsections_via_symbols
