	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_apply_blit_state       ## -- Begin function context_apply_blit_state
	.p2align	4, 0x90
_context_apply_blit_state:              ## @context_apply_blit_state
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ORM_FBO@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wined3d_texture_load
	movq	16(%r15), %rax
	movq	16(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r15), %r8d
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_context_apply_fbo_state_blit
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_WINED3DFMT_NULL@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	setne	%r15b
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_context_generate_rt_mask_no_fbo
	jmp	LBB0_5
LBB0_3:
	movq	$0, 8(%rbx)
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_context_bind_fbo
	movq	%r15, %rdi
	callq	_context_generate_rt_mask_from_resource
LBB0_5:
	movl	%eax, %r15d
LBB0_6:
	movq	8(%rbx), %r12
	testq	%r12, %r12
	cmoveq	%rbx, %r12
	cmpl	(%r12), %r15d
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_context_apply_draw_buffers
	movl	%r15d, (%r12)
LBB0_8:
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.9:
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_context_check_fbo_status
LBB0_10:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_SetupForBlit
	movq	_STATE_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_context_invalidate_state       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GL_FRAMEBUFFER,4,2             ## @GL_FRAMEBUFFER
	.comm	_WINED3DFMT_NULL,8,3            ## @WINED3DFMT_NULL
	.comm	_STATE_FRAMEBUFFER,4,2          ## @STATE_FRAMEBUFFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_context_apply_blit_state       ; -- Begin function context_apply_blit_state
	.p2align	2
_context_apply_blit_state:              ; @context_apply_blit_state
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _wined3d_settings@GOTPAGE
Lloh1:
	ldr	x22, [x22, _wined3d_settings@GOTPAGEOFF]
	ldr	x21, [x0, #24]
	ldr	x8, [x22]
Lloh2:
	adrp	x23, _ORM_FBO@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ORM_FBO@GOTPAGEOFF]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_4
; %bb.2:
Lloh4:
	adrp	x8, _FALSE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_wined3d_texture_load
	ldr	x8, [x21, #16]
	ldr	x9, [x19, #16]
	ldr	x2, [x8, x9, lsl #3]
Lloh7:
	adrp	x8, _GL_FRAMEBUFFER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w4, [x21, #8]
	mov	x0, x19
	mov	x3, #0
	bl	_context_apply_fbo_state_blit
	ldr	x8, [x21]
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _WINED3DFMT_NULL@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WINED3DFMT_NULL@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w21, ne
	b	LBB0_6
LBB0_3:
	mov	x0, x19
	mov	x1, x21
	bl	_context_generate_rt_mask_no_fbo
	b	LBB0_5
LBB0_4:
	str	xzr, [x19, #8]
Lloh13:
	adrp	x8, _GL_FRAMEBUFFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_context_bind_fbo
	mov	x0, x21
	bl	_context_generate_rt_mask_from_resource
LBB0_5:
	mov	x21, x0
LBB0_6:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csel	x24, x19, x8, eq
	ldr	w8, [x24]
	cmp	w21, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x21
	bl	_context_apply_draw_buffers
	str	w21, [x24]
LBB0_8:
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
Lloh16:
	adrp	x8, _GL_FRAMEBUFFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_context_check_fbo_status
LBB0_10:
	mov	x0, x20
	mov	x1, x19
	bl	_SetupForBlit
Lloh19:
	adrp	x8, _STATE_FRAMEBUFFER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _STATE_FRAMEBUFFER@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_context_invalidate_state
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GL_FRAMEBUFFER,4,2             ; @GL_FRAMEBUFFER
	.comm	_WINED3DFMT_NULL,8,3            ; @WINED3DFMT_NULL
	.comm	_STATE_FRAMEBUFFER,4,2          ; @STATE_FRAMEBUFFER
.subsections_via_symbols
