	.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_adapter_find_polyoffset_scale
LCPI0_0:
	.long	0x4b000000                      ## float 8388608
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
LCPI0_2:
	.long	0x3e800000                      ## float 0.25
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_wined3d_adapter_find_polyoffset_scale: ## @wined3d_adapter_find_polyoffset_scale
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_wined3d_settings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ORM_FBO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	%esi, %r15d
	movq	%rdi, -1096(%rbp)               ## 8-byte Spill
	movq	(%rdi), %r14
	leaq	-1076(%rbp), %rsi
	movl	$1, %edi
	callq	*96(%r14)
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	-1076(%rbp), %esi
	callq	*24(%r14)
	movl	(%r12), %edi
	movq	_GL_TEXTURE_MAX_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	*88(%r14)
	movl	(%r12), %edi
	movq	_GL_RGBA8@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_GL_BGRA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GL_UNSIGNED_INT_8_8_8_8_REV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	$256, %ecx                      ## imm = 0x100
	movl	$1, %r8d
	xorl	%r9d, %r9d
	pushq	$0
	pushq	%rbx
	pushq	%rax
	callq	*80(%r14)
	addq	$32, %rsp
	leaq	-1080(%rbp), %rsi
	movl	$1, %edi
	callq	*168(%r14)
	movq	_GL_RENDERBUFFER@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	-1080(%rbp), %esi
	callq	*160(%r14)
	movl	(%r13), %edi
	movl	%r15d, -1088(%rbp)              ## 4-byte Spill
	movl	%r15d, %esi
	movl	$256, %edx                      ## imm = 0x100
	movl	$1, %ecx
	callq	*152(%r14)
	leaq	-1084(%rbp), %rsi
	movl	$1, %edi
	callq	*144(%r14)
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-1084(%rbp), %esi
	callq	*104(%r14)
	movl	(%rbx), %edi
	movq	_GL_COLOR_ATTACHMENT0@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movl	-1076(%rbp), %ecx
	xorl	%r8d, %r8d
	callq	*136(%r14)
	movl	(%rbx), %edi
	movq	_GL_DEPTH_ATTACHMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movl	-1080(%rbp), %ecx
	callq	*128(%r14)
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	xorps	%xmm0, %xmm0
	xorps	%xmm1, %xmm1
	xorps	%xmm3, %xmm3
	callq	*72(%r14)
	movss	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	callq	*64(%r14)
	movq	_GL_DEPTH_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*56(%r14)
	movq	_GL_POLYGON_OFFSET_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*56(%r14)
	xorl	%edi, %edi
	xorl	%esi, %esi
	movl	$256, %edx                      ## imm = 0x100
	movl	$1, %ecx
	callq	*48(%r14)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movl	$32, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%r12d, %eax
	subl	%r15d, %eax
	cmpl	$2, %eax
	jb	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r15), %r13d
	shrl	%r13d
	movq	_GL_DEPTH_BUFFER_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_COLOR_BUFFER_BIT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	*40(%r14)
	movl	$1, %eax
	movl	%r13d, %ecx
	shll	%cl, %eax
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rax, %xmm1
	mulss	LCPI0_2(%rip), %xmm1
	xorps	%xmm0, %xmm0
	callq	*32(%r14)
	movq	-1096(%rbp), %rdi               ## 8-byte Reload
	leaq	_wined3d_adapter_find_polyoffset_scale.geometry(%rip), %rsi
	leaq	_wined3d_adapter_find_polyoffset_scale.blue(%rip), %rdx
	callq	_draw_test_quad
	leaq	L_.str.4(%rip), %rdi
	callq	_checkGLcall
	movq	_GL_TEXTURE_2D@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-1076(%rbp), %esi
	callq	*24(%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	-1072(%rbp), %r8
	callq	*16(%r14)
	leaq	L_.str.5(%rip), %rdi
	callq	_checkGLcall
	movl	-1072(%rbp), %r8d
	movl	-572(%rbp), %r9d
	movl	-548(%rbp), %r10d
	movl	-52(%rbp), %ebx
	leaq	L_.str.6(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	callq	_TRACE
	addq	$16, %rsp
	movl	-572(%rbp), %eax
	movl	$224, %ecx
	andl	%ecx, %eax
	cmpl	$160, %eax
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-548(%rbp), %eax
	cmpl	$160, %eax
	jbe	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, %r15d
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	$23, %esi
	callq	_FIXME
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	movl	$23, %r13d
	movl	$23, %esi
	callq	_ERR
	jmp	LBB0_9
LBB0_12:
	leaq	L_.str.7(%rip), %rdi
	movl	%r13d, %esi
	movl	-1088(%rbp), %edx               ## 4-byte Reload
	xorl	%eax, %eax
	callq	_TRACE
LBB0_9:
	movl	$1, %r15d
	leaq	-1076(%rbp), %rsi
	movl	$1, %edi
	callq	*8(%r14)
	leaq	-1080(%rbp), %rsi
	movl	$1, %edi
	callq	*120(%r14)
	leaq	-1084(%rbp), %rsi
	movl	$1, %edi
	callq	*112(%r14)
	movq	_GL_FRAMEBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	*104(%r14)
	leaq	L_.str.8(%rip), %rdi
	callq	_checkGLcall
	movq	_GL_DEPTH_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*(%r14)
	movq	_GL_POLYGON_OFFSET_FILL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*(%r14)
	movl	%r13d, %ecx
	shll	%cl, %r15d
	cvtsi2ss	%r15, %xmm0
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.11:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @wined3d_adapter_find_polyoffset_scale.blue
_wined3d_adapter_find_polyoffset_scale.blue:
	.long	0x00000000                      ## float 0
	.long	0x00000000                      ## float 0
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1

	.p2align	4                               ## @wined3d_adapter_find_polyoffset_scale.geometry
_wined3d_adapter_find_polyoffset_scale.geometry:
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
	.long	0xbf800000                      ## float -1
	.long	0x3f800000                      ## float 1
	.long	0xbf800000                      ## float -1
	.long	0x00000000                      ## float 0
	.long	0xbf800000                      ## float -1
	.long	0x3f800000                      ## float 1
	.long	0xbf800000                      ## float -1
	.long	0x3f800000                      ## float 1
	.long	0x3f800000                      ## float 1
	.long	0x00000000                      ## float 0

	.comm	_wined3d_settings,8,3           ## @wined3d_settings
	.comm	_ORM_FBO,8,3                    ## @ORM_FBO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No FBOs, assuming polyoffset scale of 2^%u.\n"

	.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_RENDERBUFFER,4,2            ## @GL_RENDERBUFFER
	.comm	_GL_FRAMEBUFFER,4,2             ## @GL_FRAMEBUFFER
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ## @GL_COLOR_ATTACHMENT0
	.comm	_GL_DEPTH_ATTACHMENT,4,2        ## @GL_DEPTH_ATTACHMENT
L_.str.1:                               ## @.str.1
	.asciz	"Setup framebuffer"

	.comm	_GL_DEPTH_TEST,4,2              ## @GL_DEPTH_TEST
	.comm	_GL_POLYGON_OFFSET_FILL,4,2     ## @GL_POLYGON_OFFSET_FILL
L_.str.2:                               ## @.str.2
	.asciz	"Misc parameters"

L_.str.3:                               ## @.str.3
	.asciz	"PolygonOffset scale factor detection failed, using fallback value 2^%u.\n"

	.comm	_GL_COLOR_BUFFER_BIT,4,2        ## @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ## @GL_DEPTH_BUFFER_BIT
L_.str.4:                               ## @.str.4
	.asciz	"Test draw"

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

L_.str.6:                               ## @.str.6
	.asciz	"low %02u, high %02u, cur %2u, 0=0x%08x, 125=0x%08x, 131=0x%08x, 255=0x%08x\n"

L_.str.7:                               ## @.str.7
	.asciz	"Found scale factor 2^%u for format %x.\n"

L_.str.8:                               ## @.str.8
	.asciz	"Delete framebuffer"

	.no_dead_strip	_wined3d_adapter_find_polyoffset_scale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wined3d_adapter_find_polyoffset_scale
_wined3d_adapter_find_polyoffset_scale: ; @wined3d_adapter_find_polyoffset_scale
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-112]!            ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	sub	sp, sp, #1120
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _wined3d_settings@GOTPAGE
Lloh4:
	ldr	x9, [x9, _wined3d_settings@GOTPAGEOFF]
	stur	x8, [x29, #-112]
Lloh5:
	ldr	x8, [x9]
Lloh6:
	adrp	x9, _ORM_FBO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ORM_FBO@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	mov	x21, x1
	str	x0, [sp, #56]                   ; 8-byte Folded Spill
	ldr	x19, [x0]
	ldr	x8, [x19, #96]
	add	x1, sp, #72
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x22, _GL_TEXTURE_2D@GOTPAGE
Lloh10:
	ldr	x22, [x22, _GL_TEXTURE_2D@GOTPAGEOFF]
	ldr	w0, [x22]
	ldr	w1, [sp, #72]
	blr	x8
	ldr	x8, [x19, #88]
	ldr	w0, [x22]
Lloh11:
	adrp	x9, _GL_TEXTURE_MAX_LEVEL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _GL_TEXTURE_MAX_LEVEL@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x9]
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #80]
	ldr	w0, [x22]
Lloh14:
	adrp	x9, _GL_RGBA8@GOTPAGE
Lloh15:
	ldr	x9, [x9, _GL_RGBA8@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x9]
Lloh17:
	adrp	x9, _GL_BGRA@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GL_BGRA@GOTPAGEOFF]
Lloh19:
	ldr	w6, [x9]
Lloh20:
	adrp	x9, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGE
Lloh21:
	ldr	x9, [x9, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGEOFF]
Lloh22:
	ldr	w7, [x9]
	str	wzr, [sp]
	mov	w1, #0
	mov	w3, #256
	mov	w4, #1
	mov	w5, #0
	blr	x8
	ldr	x8, [x19, #168]
	add	x1, sp, #68
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #160]
Lloh23:
	adrp	x20, _GL_RENDERBUFFER@GOTPAGE
Lloh24:
	ldr	x20, [x20, _GL_RENDERBUFFER@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w1, [sp, #68]
	blr	x8
	ldr	x8, [x19, #152]
	ldr	w0, [x20]
	str	w21, [sp, #52]                  ; 4-byte Folded Spill
	mov	x1, x21
	mov	w2, #256
	mov	w3, #1
	blr	x8
	ldr	x8, [x19, #144]
	add	x1, sp, #76
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #104]
Lloh25:
	adrp	x21, _GL_FRAMEBUFFER@GOTPAGE
Lloh26:
	ldr	x21, [x21, _GL_FRAMEBUFFER@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [sp, #76]
	blr	x8
	ldr	x8, [x19, #136]
	ldr	w0, [x21]
Lloh27:
	adrp	x9, _GL_COLOR_ATTACHMENT0@GOTPAGE
Lloh28:
	ldr	x9, [x9, _GL_COLOR_ATTACHMENT0@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x9]
	ldr	w2, [x22]
	ldr	w3, [sp, #72]
	mov	w4, #0
	blr	x8
	ldr	x8, [x19, #128]
	ldr	w0, [x21]
Lloh30:
	adrp	x9, _GL_DEPTH_ATTACHMENT@GOTPAGE
Lloh31:
	ldr	x9, [x9, _GL_DEPTH_ATTACHMENT@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x9]
	ldr	w2, [x20]
	ldr	w3, [sp, #68]
	blr	x8
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19, #72]
	movi	d0, #0000000000000000
	movi	d1, #0000000000000000
	fmov	s2, #0.50000000
	movi	d3, #0000000000000000
	blr	x8
	ldr	x8, [x19, #64]
	fmov	s0, #0.50000000
	blr	x8
	ldr	x8, [x19, #56]
Lloh35:
	adrp	x9, _GL_DEPTH_TEST@GOTPAGE
Lloh36:
	ldr	x9, [x9, _GL_DEPTH_TEST@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #56]
Lloh38:
	adrp	x9, _GL_POLYGON_OFFSET_FILL@GOTPAGE
Lloh39:
	ldr	x9, [x9, _GL_POLYGON_OFFSET_FILL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19, #48]
	mov	w0, #0
	mov	w1, #0
	mov	w2, #256
	mov	w3, #1
	blr	x8
Lloh41:
	adrp	x0, l_.str.2@PAGE
Lloh42:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	mov	w22, #0
	mov	w24, #32
Lloh43:
	adrp	x23, _wined3d_adapter_find_polyoffset_scale.geometry@PAGE
Lloh44:
	add	x23, x23, _wined3d_adapter_find_polyoffset_scale.geometry@PAGEOFF
	fmov	s8, #0.25000000
Lloh45:
	adrp	x25, _wined3d_adapter_find_polyoffset_scale.blue@PAGE
Lloh46:
	add	x25, x25, _wined3d_adapter_find_polyoffset_scale.blue@PAGEOFF
Lloh47:
	adrp	x26, l_.str.4@PAGE
Lloh48:
	add	x26, x26, l_.str.4@PAGEOFF
Lloh49:
	adrp	x27, l_.str.5@PAGE
Lloh50:
	add	x27, x27, l_.str.5@PAGEOFF
Lloh51:
	adrp	x28, l_.str.6@PAGE
Lloh52:
	add	x28, x28, l_.str.6@PAGEOFF
Lloh53:
	adrp	x20, _GL_TEXTURE_2D@GOTPAGE
Lloh54:
	ldr	x20, [x20, _GL_TEXTURE_2D@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x21
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w24, w22
	cmp	w8, #2
	b.lo	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w24, w22
	lsr	w21, w8, #1
	ldr	x8, [x19, #40]
Lloh55:
	adrp	x9, _GL_COLOR_BUFFER_BIT@GOTPAGE
Lloh56:
	ldr	x9, [x9, _GL_COLOR_BUFFER_BIT@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
Lloh58:
	adrp	x10, _GL_DEPTH_BUFFER_BIT@GOTPAGE
Lloh59:
	ldr	x10, [x10, _GL_DEPTH_BUFFER_BIT@GOTPAGEOFF]
Lloh60:
	ldr	w10, [x10]
	orr	w0, w10, w9
	blr	x8
	ldr	x8, [x19, #32]
	mov	w9, #1
	lsl	w9, w9, w21
	ucvtf	s0, w9
	fmul	s1, s0, s8
	movi	d0, #0000000000000000
	blr	x8
	ldr	x0, [sp, #56]                   ; 8-byte Folded Reload
	mov	x1, x23
	mov	x2, x25
	bl	_draw_test_quad
	mov	x0, x26
	bl	_checkGLcall
	ldr	x8, [x19, #24]
	ldr	w0, [x20]
	ldr	w1, [sp, #72]
	blr	x8
	ldr	x8, [x19, #16]
	ldr	w0, [x20]
Lloh61:
	adrp	x9, _GL_BGRA@GOTPAGE
Lloh62:
	ldr	x9, [x9, _GL_BGRA@GOTPAGEOFF]
Lloh63:
	ldr	w2, [x9]
Lloh64:
	adrp	x9, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGE
Lloh65:
	ldr	x9, [x9, _GL_UNSIGNED_INT_8_8_8_8_REV@GOTPAGEOFF]
Lloh66:
	ldr	w3, [x9]
	add	x4, sp, #80
	mov	w1, #0
	blr	x8
	mov	x0, x27
	bl	_checkGLcall
	ldr	w8, [sp, #80]
	ldr	w9, [sp, #580]
	ldr	w10, [sp, #604]
	ldr	w11, [sp, #1100]
	stp	x10, x11, [sp, #24]
	stp	x8, x9, [sp, #8]
	str	x21, [sp]
	mov	x0, x28
	mov	x1, x22
	mov	x2, x24
	bl	_TRACE
	ldr	w8, [sp, #580]
	and	w8, w8, #0xe0
	cmp	w8, #160
	b.lo	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [sp, #604]
	cmp	w8, #160
	b.ls	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x21
	b	LBB0_3
LBB0_7:
Lloh67:
	adrp	x0, l_.str@PAGE
Lloh68:
	add	x0, x0, l_.str@PAGEOFF
	mov	w1, #23
	bl	_FIXME
	movi.2s	v0, #75, lsl #24
	b	LBB0_11
LBB0_8:
Lloh69:
	adrp	x0, l_.str.3@PAGE
Lloh70:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	w21, #23
	mov	w1, #23
	bl	_ERR
	b	LBB0_10
LBB0_9:
Lloh71:
	adrp	x0, l_.str.7@PAGE
Lloh72:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x21
	ldr	w2, [sp, #52]                   ; 4-byte Folded Reload
	bl	_TRACE
LBB0_10:
	ldr	x8, [x19, #8]
	mov	w20, #1
	add	x1, sp, #72
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #120]
	add	x1, sp, #68
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #112]
	add	x1, sp, #76
	mov	w0, #1
	blr	x8
	ldr	x8, [x19, #104]
Lloh73:
	adrp	x9, _GL_FRAMEBUFFER@GOTPAGE
Lloh74:
	ldr	x9, [x9, _GL_FRAMEBUFFER@GOTPAGEOFF]
Lloh75:
	ldr	w0, [x9]
	mov	w1, #0
	blr	x8
Lloh76:
	adrp	x0, l_.str.8@PAGE
Lloh77:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x19]
Lloh78:
	adrp	x9, _GL_DEPTH_TEST@GOTPAGE
Lloh79:
	ldr	x9, [x9, _GL_DEPTH_TEST@GOTPAGEOFF]
Lloh80:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x19]
Lloh81:
	adrp	x9, _GL_POLYGON_OFFSET_FILL@GOTPAGE
Lloh82:
	ldr	x9, [x9, _GL_POLYGON_OFFSET_FILL@GOTPAGEOFF]
Lloh83:
	ldr	w0, [x9]
	blr	x8
	lsl	w8, w20, w21
	ucvtf	s0, w8
LBB0_11:
	ldur	x8, [x29, #-112]
Lloh84:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh85:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh86:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
                                        ; kill: def $s0 killed $s0 killed $d0
	add	sp, sp, #1120
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #112              ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh84, Lloh85, Lloh86
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @wined3d_adapter_find_polyoffset_scale.blue
_wined3d_adapter_find_polyoffset_scale.blue:
	.long	0x00000000                      ; float 0
	.long	0x00000000                      ; float 0
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1

	.p2align	2                               ; @wined3d_adapter_find_polyoffset_scale.geometry
_wined3d_adapter_find_polyoffset_scale.geometry:
	.long	0xbf800000                      ; float -1
	.long	0xbf800000                      ; float -1
	.long	0xbf800000                      ; float -1
	.long	0x3f800000                      ; float 1
	.long	0xbf800000                      ; float -1
	.long	0x00000000                      ; float 0
	.long	0xbf800000                      ; float -1
	.long	0x3f800000                      ; float 1
	.long	0xbf800000                      ; float -1
	.long	0x3f800000                      ; float 1
	.long	0x3f800000                      ; float 1
	.long	0x00000000                      ; float 0

	.comm	_wined3d_settings,8,3           ; @wined3d_settings
	.comm	_ORM_FBO,8,3                    ; @ORM_FBO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No FBOs, assuming polyoffset scale of 2^%u.\n"

	.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_RENDERBUFFER,4,2            ; @GL_RENDERBUFFER
	.comm	_GL_FRAMEBUFFER,4,2             ; @GL_FRAMEBUFFER
	.comm	_GL_COLOR_ATTACHMENT0,4,2       ; @GL_COLOR_ATTACHMENT0
	.comm	_GL_DEPTH_ATTACHMENT,4,2        ; @GL_DEPTH_ATTACHMENT
l_.str.1:                               ; @.str.1
	.asciz	"Setup framebuffer"

	.comm	_GL_DEPTH_TEST,4,2              ; @GL_DEPTH_TEST
	.comm	_GL_POLYGON_OFFSET_FILL,4,2     ; @GL_POLYGON_OFFSET_FILL
l_.str.2:                               ; @.str.2
	.asciz	"Misc parameters"

l_.str.3:                               ; @.str.3
	.asciz	"PolygonOffset scale factor detection failed, using fallback value 2^%u.\n"

	.comm	_GL_COLOR_BUFFER_BIT,4,2        ; @GL_COLOR_BUFFER_BIT
	.comm	_GL_DEPTH_BUFFER_BIT,4,2        ; @GL_DEPTH_BUFFER_BIT
l_.str.4:                               ; @.str.4
	.asciz	"Test draw"

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

l_.str.6:                               ; @.str.6
	.asciz	"low %02u, high %02u, cur %2u, 0=0x%08x, 125=0x%08x, 131=0x%08x, 255=0x%08x\n"

l_.str.7:                               ; @.str.7
	.asciz	"Found scale factor 2^%u for format %x.\n"

l_.str.8:                               ; @.str.8
	.asciz	"Delete framebuffer"

	.no_dead_strip	_wined3d_adapter_find_polyoffset_scale
.subsections_via_symbols
