	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function needs_separate_srgb_gl_texture
_needs_separate_srgb_gl_texture:        ## @needs_separate_srgb_gl_texture
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	_EXT_TEXTURE_SRGB_DECODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	je	LBB0_3
## %bb.1:
	movq	_WINED3DFMT_FLAG_SRGB_READ@GOTPCREL(%rip), %rax
	movq	_WINED3DFMT_FLAG_SRGB_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	movl	(%rsi), %edx
	andl	%ecx, %edx
	je	LBB0_4
## %bb.2:
	cmpl	%ecx, %edx
	je	LBB0_4
LBB0_3:
	movq	(%rdi), %rcx
	movq	_WINED3D_SRGB_READ_WRITE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	setne	%al
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINED3DFMT_FLAG_SRGB_READ,4,2  ## @WINED3DFMT_FLAG_SRGB_READ
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ## @WINED3DFMT_FLAG_SRGB_WRITE
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ## @EXT_TEXTURE_SRGB_DECODE
	.comm	_WINED3D_SRGB_READ_WRITE_CONTROL,4,2 ## @WINED3D_SRGB_READ_WRITE_CONTROL
	.no_dead_strip	_needs_separate_srgb_gl_texture
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function needs_separate_srgb_gl_texture
_needs_separate_srgb_gl_texture:        ; @needs_separate_srgb_gl_texture
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x1]
Lloh3:
	adrp	x9, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WINED3DFMT_FLAG_SRGB_READ@GOTPAGEOFF]
Lloh5:
	adrp	x10, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _WINED3DFMT_FLAG_SRGB_WRITE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	and	w8, w9, w8
	cmp	w8, #0
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ret
LBB0_3:
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _WINED3D_SRGB_READ_WRITE_CONTROL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WINED3D_SRGB_READ_WRITE_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WINED3DFMT_FLAG_SRGB_READ,4,2  ; @WINED3DFMT_FLAG_SRGB_READ
	.comm	_WINED3DFMT_FLAG_SRGB_WRITE,4,2 ; @WINED3DFMT_FLAG_SRGB_WRITE
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ; @EXT_TEXTURE_SRGB_DECODE
	.comm	_WINED3D_SRGB_READ_WRITE_CONTROL,4,2 ; @WINED3D_SRGB_READ_WRITE_CONTROL
	.no_dead_strip	_needs_separate_srgb_gl_texture
.subsections_via_symbols
