	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function set_blit_dimension
LCPI0_0:
	.quad	0x4000000000000000              ## double 2
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.quad	0xbff0000000000000              ## double -1
LCPI0_2:
	.quad	0xbff0000000000000              ## double -1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_set_blit_dimension:                    ## @set_blit_dimension
	.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
	subq	$152, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movsd	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero
	movapd	%xmm3, %xmm2
	divsd	%xmm0, %xmm2
	movsd	%xmm2, -144(%rbp)
	divsd	%xmm1, %xmm3
	xorpd	%xmm2, %xmm2
	movupd	%xmm2, -136(%rbp)
	movupd	%xmm2, -120(%rbp)
	movsd	%xmm3, -104(%rbp)
	movapd	%xmm2, -80(%rbp)
	movapd	%xmm2, -96(%rbp)
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	movaps	%xmm2, -64(%rbp)
	movaps	LCPI0_1(%rip), %xmm2            ## xmm2 = [-1.0E+0,-1.0E+0]
	movaps	%xmm2, -48(%rbp)
	movaps	LCPI0_2(%rip), %xmm2            ## xmm2 = [-1.0E+0,1.0E+0]
	movaps	%xmm2, -32(%rbp)
	movq	24(%rdi), %rax
	movq	_WINED3D_GL_LEGACY_CONTEXT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movq	_GL_PROJECTION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movsd	%xmm1, -160(%rbp)               ## 8-byte Spill
	movsd	%xmm0, -152(%rbp)               ## 8-byte Spill
	callq	*16(%rbx)
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	leaq	-144(%rbp), %rdi
	callq	*8(%rbx)
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movsd	-152(%rbp), %xmm0               ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	-160(%rbp), %xmm1               ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
LBB0_2:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	*(%rbx)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$152, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ## @WINED3D_GL_LEGACY_CONTEXT
	.comm	_GL_PROJECTION,4,2              ## @GL_PROJECTION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glMatrixMode(GL_PROJECTION)"

L_.str.1:                               ## @.str.1
	.asciz	"glLoadMatrixd"

L_.str.2:                               ## @.str.2
	.asciz	"glViewport"

	.no_dead_strip	_set_blit_dimension
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function set_blit_dimension
lCPI0_0:
	.quad	0x4000000000000000              ; double 2
	.quad	0x0000000000000000              ; double 0
lCPI0_1:
	.quad	0xbff0000000000000              ; double -1
	.quad	0x3ff0000000000000              ; double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_set_blit_dimension:                    ; @set_blit_dimension
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #144]              ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	fmov	d8, d1
	fmov	d9, d0
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	fmov	d0, #2.00000000
	fdiv	d1, d0, d9
	str	d1, [sp, #8]
	fdiv	d0, d0, d8
	movi.2d	v1, #0000000000000000
	stp	q1, q1, [sp, #16]
	str	d0, [sp, #48]
	stur	q1, [sp, #56]
	stur	q1, [sp, #72]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	fmov.2d	v1, #-1.00000000
	stur	q0, [sp, #88]
	stur	q1, [sp, #104]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	q0, [x8, lCPI0_1@PAGEOFF]
	stur	q0, [sp, #120]
	ldr	x8, [x0, #24]
Lloh7:
	adrp	x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _WINED3D_GL_LEGACY_CONTEXT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #16]
Lloh10:
	adrp	x9, _GL_PROJECTION@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GL_PROJECTION@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x9]
	blr	x8
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19, #8]
	add	x0, sp, #8
	blr	x8
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
LBB0_2:
	ldr	x8, [x19]
	mov	w0, #0
	mov	w1, #0
	fmov	d0, d9
	fmov	d1, d8
	blr	x8
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #144]              ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3D_GL_LEGACY_CONTEXT,8,3  ; @WINED3D_GL_LEGACY_CONTEXT
	.comm	_GL_PROJECTION,4,2              ; @GL_PROJECTION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glMatrixMode(GL_PROJECTION)"

l_.str.1:                               ; @.str.1
	.asciz	"glLoadMatrixd"

l_.str.2:                               ; @.str.2
	.asciz	"glViewport"

	.no_dead_strip	_set_blit_dimension
.subsections_via_symbols
