	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_arbfp_blitter_create   ## -- Begin function wined3d_arbfp_blitter_create
	.p2align	4, 0x90
_wined3d_arbfp_blitter_create:          ## @wined3d_arbfp_blitter_create
	.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	%rdi, %r14
	movq	(%rsi), %rax
	cmpq	_arb_program_shader_backend@GOTPCREL(%rip), %rax
	je	LBB0_2
## %bb.1:
	cmpq	_glsl_shader_backend@GOTPCREL(%rip), %rax
	jne	LBB0_6
LBB0_2:
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	movq	_ARB_FRAGMENT_PROGRAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_6
## %bb.3:
	movq	_WINED3D_GL_LEGACY_CONTEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_6
## %bb.4:
	movl	$32, %edi
	callq	_heap_alloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rax, %rbx
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_TRACE
	movq	_arbfp_blitter_ops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_arbfp_blit_type_compare@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_wine_rb_init
	movq	$0, 16(%rbx)
	movq	%rbx, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ERR                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_arb_program_shader_backend,4,2 ## @arb_program_shader_backend
	.comm	_glsl_shader_backend,4,2        ## @glsl_shader_backend
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ## @ARB_FRAGMENT_PROGRAM
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ## @WINED3D_GL_LEGACY_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate blitter.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Created blitter %p.\n"

	.comm	_arbfp_blitter_ops,4,2          ## @arbfp_blitter_ops
	.comm	_arbfp_blit_type_compare,4,2    ## @arbfp_blit_type_compare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_arbfp_blitter_create   ; -- Begin function wined3d_arbfp_blitter_create
	.p2align	2
_wined3d_arbfp_blitter_create:          ; @wined3d_arbfp_blitter_create
	.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
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _arb_program_shader_backend@GOTPAGE
Lloh1:
	ldr	x9, [x9, _arb_program_shader_backend@GOTPAGEOFF]
	cmp	x8, x9
Lloh2:
	adrp	x9, _glsl_shader_backend@GOTPAGE
Lloh3:
	ldr	x9, [x9, _glsl_shader_backend@GOTPAGEOFF]
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
Lloh4:
	adrp	x9, _ARB_FRAGMENT_PROGRAM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _ARB_FRAGMENT_PROGRAM@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
	cbz	w9, LBB0_5
; %bb.2:
Lloh7:
	adrp	x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x19, x0
	mov	w0, #32
	bl	_heap_alloc
	cbz	x0, LBB0_6
; %bb.4:
	mov	x20, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh12:
	adrp	x8, _arbfp_blitter_ops@GOTPAGE
Lloh13:
	ldr	x8, [x8, _arbfp_blitter_ops@GOTPAGEOFF]
	str	x8, [x20, #8]
	ldr	x8, [x19]
	str	x8, [x20]
	add	x0, x20, #24
Lloh14:
	adrp	x8, _arbfp_blit_type_compare@GOTPAGE
Lloh15:
	ldr	x8, [x8, _arbfp_blit_type_compare@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_wine_rb_init
	str	xzr, [x20, #16]
	str	x20, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ERR
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_arb_program_shader_backend,4,2 ; @arb_program_shader_backend
	.comm	_glsl_shader_backend,4,2        ; @glsl_shader_backend
	.comm	_ARB_FRAGMENT_PROGRAM,8,3       ; @ARB_FRAGMENT_PROGRAM
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ; @WINED3D_GL_LEGACY_CONTEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate blitter.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Created blitter %p.\n"

	.comm	_arbfp_blitter_ops,4,2          ; @arbfp_blitter_ops
	.comm	_arbfp_blit_type_compare,4,2    ; @arbfp_blit_type_compare
.subsections_via_symbols
