	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function wined3d_caps_gl_ctx_test_viewport_subpixel_bits
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0xbefc0000                      ## float -0.4921875
LCPI0_2:
	.long	0x40800000                      ## float 4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wined3d_caps_gl_ctx_test_viewport_subpixel_bits
	.p2align	4, 0x90
_wined3d_caps_gl_ctx_test_viewport_subpixel_bits: ## @wined3d_caps_gl_ctx_test_viewport_subpixel_bits
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	leaq	-68(%rbp), %rsi
	movl	$1, %edi
	callq	*88(%r14)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-68(%rbp), %esi
	callq	*48(%r14)
	movl	(%rbx), %edi
	movq	_GL_TEXTURE_MAX_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*80(%r14)
	movq	72(%r14), %r13
	movl	(%rbx), %r15d
	movq	_GL_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-64(%rbp), %rdi
	callq	_ARRAY_SIZE
	movq	_GL_BGRA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	_GL_UNSIGNED_INT_8_8_8_8_REV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	movl	%r15d, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%r10
	callq	*%r13
	addq	$32, %rsp
	leaq	-72(%rbp), %r12
	movl	$1, %edi
	movq	%r12, %rsi
	callq	*24(%r14)
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	-72(%rbp), %esi
	callq	*(%r14)
	movl	(%r15), %edi
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	-68(%rbp), %ecx
	xorl	%r8d, %r8d
	callq	*16(%r14)
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	movaps	%xmm0, %xmm3
	callq	*64(%r14)
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*56(%r14)
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	LCPI0_2(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorl	%edi, %edi
	movaps	%xmm0, %xmm1
	movss	LCPI0_0(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	callq	_glViewportIndexedf
	movl	%eax, %edi
	callq	_GL_EXTCALL
	leaq	_wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_draw_test_quad
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movl	(%rbx), %edi
	movl	-68(%rbp), %esi
	callq	*48(%r14)
	movl	(%rbx), %edi
	movq	_GL_BGRA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_UNSIGNED_INT_8_8_8_8_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%esi, %esi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %r8
	callq	*40(%r14)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movl	-64(%rbp), %esi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-52(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdi
	callq	_TRACE
	movl	$1, %edi
	leaq	-68(%rbp), %rsi
	callq	*32(%r14)
	movl	$1, %edi
	movq	%r12, %rsi
	callq	*8(%r14)
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	*(%r14)
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	%rbx, %rdi
	callq	_ARRAY_SIZE
	movq	_TRUE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_FALSE@GOTPCREL(%rip), %r12
	leaq	-64(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$-65536, -64(%rbp,%rbx,4)       ## imm = 0xFFFF0000
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	cmpq	%rax, %rbx
	jb	LBB0_3
	jmp	LBB0_5
LBB0_4:
	movq	%r12, %r14
LBB0_5:
	movl	(%r14), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red
_wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red:
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1

	.comm	_GL_TEXTURE_2D,4,2              ## @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_MAX_LEVEL,4,2       ## @GL_TEXTURE_MAX_LEVEL
	.comm	_GL_RGBA8,4,2                   ## @GL_RGBA8
	.comm	_GL_BGRA,4,2                    ## @GL_BGRA
	.comm	_GL_UNSIGNED_INT_8_8_8_8_REV,4,2 ## @GL_UNSIGNED_INT_8_8_8_8_REV
	.comm	_GL_FRAMEBUFFER,4,2             ## @GL_FRAMEBUFFER
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create resources"

	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
L_.str.1:                               ## @.str.1
	.asciz	"draw"

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

L_.str.3:                               ## @.str.3
	.asciz	"Readback colors are 0x%08x, 0x%08x, 0x%08x, 0x%08x.\n"

L_.str.4:                               ## @.str.4
	.asciz	"delete resources"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_caps_gl_ctx_test_viewport_subpixel_bits ; -- Begin function wined3d_caps_gl_ctx_test_viewport_subpixel_bits
	.p2align	2
_wined3d_caps_gl_ctx_test_viewport_subpixel_bits: ; @wined3d_caps_gl_ctx_test_viewport_subpixel_bits
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x23, [x0]
	ldr	x8, [x23, #88]
	add	x1, sp, #20
	mov	w0, #1
	blr	x8
	ldr	x8, [x23, #48]
Lloh3:
	adrp	x24, _GL_TEXTURE_2D@GOTPAGE
Lloh4:
	ldr	x24, [x24, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [sp, #20]
	blr	x8
	ldr	x8, [x23, #80]
	ldr	w0, [x24]
Lloh5:
	adrp	x9, _GL_TEXTURE_MAX_LEVEL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GL_TEXTURE_MAX_LEVEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	mov	w2, #0
	blr	x8
	ldr	x27, [x23, #72]
	ldr	w20, [x24]
Lloh8:
	adrp	x8, _GL_RGBA8@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_RGBA8@GOTPAGEOFF]
Lloh10:
	ldr	w21, [x8]
	add	x22, sp, #24
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh11:
	adrp	x25, _GL_BGRA@GOTPAGE
Lloh12:
	ldr	x25, [x25, _GL_BGRA@GOTPAGEOFF]
	ldr	w6, [x25]
Lloh13:
	adrp	x26, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGE
Lloh14:
	ldr	x26, [x26, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGEOFF]
	ldr	w7, [x26]
	str	xzr, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	mov	w4, #1
	mov	w5, #0
	blr	x27
	ldr	x8, [x23, #24]
	add	x1, sp, #16
	mov	w0, #1
	blr	x8
	ldr	x8, [x23]
Lloh15:
	adrp	x20, _GL_FRAMEBUFFER@GOTPAGE
Lloh16:
	ldr	x20, [x20, _GL_FRAMEBUFFER@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [sp, #16]
	blr	x8
	ldr	x8, [x23, #16]
	ldr	w0, [x20]
Lloh17:
	adrp	x9, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	ldr	w2, [x24]
	ldr	w3, [sp, #20]
	mov	w4, #0
	blr	x8
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x23, #64]
	fmov	s0, #1.00000000
	fmov	s1, #1.00000000
	fmov	s2, #1.00000000
	fmov	s3, #1.00000000
	blr	x8
	ldr	x8, [x23, #56]
Lloh22:
	adrp	x9, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x9]
	blr	x8
	mov	w8, #-1090781184
	fmov	s0, w8
	fmov	s2, #4.00000000
	fmov	s3, #1.00000000
	mov	w0, #0
	fmov	s1, s0
	bl	_glViewportIndexedf
	bl	_GL_EXTCALL
Lloh25:
	adrp	x2, _wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red@PAGE
Lloh26:
	add	x2, x2, _wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red@PAGEOFF
	mov	x0, x19
	mov	x1, #0
	bl	_draw_test_quad
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x23, #48]
	ldr	w0, [x24]
	ldr	w1, [sp, #20]
	blr	x8
	ldr	x8, [x23, #40]
	ldr	w0, [x24]
	ldr	w2, [x25]
	ldr	w3, [x26]
	add	x4, sp, #24
	mov	w1, #0
	blr	x8
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	ldp	w1, w2, [sp, #24]
	ldp	w3, w4, [sp, #32]
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_TRACE
	ldr	x8, [x23, #32]
	add	x1, sp, #20
	mov	w0, #1
	blr	x8
	ldr	x8, [x23, #8]
	add	x1, sp, #16
	mov	w0, #1
	blr	x8
	ldr	x8, [x23]
	ldr	w0, [x20]
	mov	w1, #0
	blr	x8
Lloh33:
	adrp	x0, l_.str.4@PAGE
Lloh34:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_checkGLcall
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, #0
Lloh35:
	adrp	x21, _FALSE@GOTPAGE
Lloh36:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
Lloh37:
	adrp	x19, _TRUE@GOTPAGE
Lloh38:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22, x20, lsl #2]
	cmn	w8, #16, lsl #12                ; =65536
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	add	x0, sp, #24
	bl	_ARRAY_SIZE
	cmp	x20, w0, uxtw
	b.lo	LBB0_2
	b	LBB0_6
LBB0_4:
Lloh39:
	adrp	x19, _TRUE@GOTPAGE
Lloh40:
	ldr	x19, [x19, _TRUE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x19, x21
LBB0_6:
	ldr	w0, [x19]
	ldr	x8, [sp, #40]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red
_wined3d_caps_gl_ctx_test_viewport_subpixel_bits.red:
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1

	.comm	_GL_TEXTURE_2D,4,2              ; @GL_TEXTURE_2D
	.comm	_GL_TEXTURE_MAX_LEVEL,4,2       ; @GL_TEXTURE_MAX_LEVEL
	.comm	_GL_RGBA8,4,2                   ; @GL_RGBA8
	.comm	_GL_BGRA,4,2                    ; @GL_BGRA
	.comm	_GL_UNSIGNED_INT_8_8_8_8_REV,4,2 ; @GL_UNSIGNED_INT_8_8_8_8_REV
	.comm	_GL_FRAMEBUFFER,4,2             ; @GL_FRAMEBUFFER
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create resources"

	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
l_.str.1:                               ; @.str.1
	.asciz	"draw"

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

l_.str.3:                               ; @.str.3
	.asciz	"Readback colors are 0x%08x, 0x%08x, 0x%08x, 0x%08x.\n"

l_.str.4:                               ; @.str.4
	.asciz	"delete resources"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
