	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_textured_quad             ## -- Begin function draw_textured_quad
	.p2align	4, 0x90
_draw_textured_quad:                    ## @draw_textured_quad
	.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
	movl	%r9d, %r13d
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdx), %r12
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	leaq	-56(%rbp), %rax
	movq	%rcx, %rdx
	movq	%rax, %rcx
	callq	_texture2d_get_blt_info
	movl	-56(%rbp), %edi
	callq	*48(%r12)
	leaq	L_.str(%rip), %rdi
	callq	_checkGLcall
	movl	-56(%rbp), %esi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %edx
	movq	%r14, %rdi
	callq	_context_bind_texture
	movq	40(%r12), %r15
	movl	-56(%rbp), %ebx
	movq	_GL_TEXTURE_MAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r13d, %edi
	callq	_wined3d_gl_mag_filter
	movl	%ebx, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	*%r15
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movq	40(%r12), %r14
	movl	-56(%rbp), %ebx
	movq	_GL_TEXTURE_MIN_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_WINED3D_TEXF_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_wined3d_gl_min_mip_filter
	movl	%ebx, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	*%r14
	leaq	L_.str.1(%rip), %rdi
	callq	_checkGLcall
	movl	-56(%rbp), %edi
	movq	_GL_TEXTURE_WRAP_S@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_CLAMP_TO_EDGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	callq	*40(%r12)
	movl	-56(%rbp), %edi
	movq	_GL_TEXTURE_WRAP_T@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	callq	*40(%r12)
	movq	(%r14), %rax
	movq	56(%rax), %rax
	movq	_EXT_TEXTURE_SRGB_DECODE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$0, (%rax,%rcx,8)
	je	LBB0_2
## %bb.1:
	movl	-56(%rbp), %edi
	movq	_GL_TEXTURE_SRGB_DECODE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_SKIP_DECODE_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*40(%r12)
LBB0_2:
	movq	_GL_TEXTURE_ENV@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GL_TEXTURE_ENV_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GL_REPLACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	*32(%r12)
	leaq	L_.str.2(%rip), %rdi
	callq	_checkGLcall
	movq	_GL_TRIANGLE_STRIP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	*24(%r12)
	movq	-48(%rbp), %rdi
	callq	*16(%r12)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	callq	*8(%r12)
	movq	-48(%rbp), %rdi
	addq	$4, %rdi
	callq	*16(%r12)
	movl	4(%rbx), %edi
	movl	12(%rbx), %esi
	callq	*8(%r12)
	movq	-48(%rbp), %rdi
	addq	$8, %rdi
	callq	*16(%r12)
	movl	(%rbx), %esi
	movl	8(%rbx), %edi
	callq	*8(%r12)
	movq	-48(%rbp), %rdi
	addq	$12, %rdi
	callq	*16(%r12)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	*8(%r12)
	xorl	%eax, %eax
	callq	*(%r12)
	movl	-56(%rbp), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_context_bind_texture
	movq	_WINED3D_TEXF_POINT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 16(%rcx)
	movq	%rax, 8(%rcx)
	movq	_WINED3D_TEXF_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"glEnable(bind_target)"

	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ## @GL_TEXTURE_MAG_FILTER
L_.str.1:                               ## @.str.1
	.asciz	"glTexParameteri"

	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ## @GL_TEXTURE_MIN_FILTER
	.comm	_WINED3D_TEXF_NONE,4,2          ## @WINED3D_TEXF_NONE
	.comm	_GL_TEXTURE_WRAP_S,4,2          ## @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ## @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ## @GL_TEXTURE_WRAP_T
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ## @EXT_TEXTURE_SRGB_DECODE
	.comm	_GL_TEXTURE_SRGB_DECODE_EXT,4,2 ## @GL_TEXTURE_SRGB_DECODE_EXT
	.comm	_GL_SKIP_DECODE_EXT,4,2         ## @GL_SKIP_DECODE_EXT
	.comm	_GL_TEXTURE_ENV,4,2             ## @GL_TEXTURE_ENV
	.comm	_GL_TEXTURE_ENV_MODE,4,2        ## @GL_TEXTURE_ENV_MODE
	.comm	_GL_REPLACE,4,2                 ## @GL_REPLACE
L_.str.2:                               ## @.str.2
	.asciz	"glTexEnvi"

	.comm	_GL_TRIANGLE_STRIP,4,2          ## @GL_TRIANGLE_STRIP
	.comm	_WINED3D_TEXF_POINT,8,3         ## @WINED3D_TEXF_POINT
	.comm	_FALSE,4,2                      ## @FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_draw_textured_quad             ; -- Begin function draw_textured_quad
	.p2align	2
_draw_textured_quad:                    ; @draw_textured_quad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.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
	mov	x22, x5
	mov	x21, x4
	mov	x8, x3
	mov	x20, x2
	mov	x19, x0
	ldr	x26, [x2]
	mov	x3, sp
	mov	x2, x8
	bl	_texture2d_get_blt_info
	ldr	x8, [x26, #48]
	ldr	w0, [sp]
	blr	x8
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_checkGLcall
	ldr	w1, [sp]
	ldr	w2, [x19, #24]
	mov	x0, x20
	bl	_context_bind_texture
	ldr	x25, [x26, #40]
	ldr	w23, [sp]
Lloh2:
	adrp	x8, _GL_TEXTURE_MAG_FILTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GL_TEXTURE_MAG_FILTER@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
	mov	x0, x22
	bl	_wined3d_gl_mag_filter
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	blr	x25
Lloh5:
	adrp	x23, l_.str.1@PAGE
Lloh6:
	add	x23, x23, l_.str.1@PAGEOFF
	mov	x0, x23
	bl	_checkGLcall
	ldr	x28, [x26, #40]
	ldr	w24, [sp]
Lloh7:
	adrp	x8, _GL_TEXTURE_MIN_FILTER@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GL_TEXTURE_MIN_FILTER@GOTPAGEOFF]
Lloh9:
	ldr	w25, [x8]
Lloh10:
	adrp	x27, _WINED3D_TEXF_NONE@GOTPAGE
Lloh11:
	ldr	x27, [x27, _WINED3D_TEXF_NONE@GOTPAGEOFF]
	ldr	w1, [x27]
	mov	x0, x22
	bl	_wined3d_gl_min_mip_filter
	mov	x2, x0
	mov	x0, x24
	mov	x1, x25
	blr	x28
	mov	x0, x23
	bl	_checkGLcall
	ldr	x8, [x26, #40]
	ldr	w0, [sp]
Lloh12:
	adrp	x9, _GL_TEXTURE_WRAP_S@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GL_TEXTURE_WRAP_S@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
Lloh15:
	adrp	x22, _GL_CLAMP_TO_EDGE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GL_CLAMP_TO_EDGE@GOTPAGEOFF]
	ldr	w2, [x22]
	blr	x8
	ldr	x8, [x26, #40]
	ldr	w0, [sp]
Lloh17:
	adrp	x9, _GL_TEXTURE_WRAP_T@GOTPAGE
Lloh18:
	ldr	x9, [x9, _GL_TEXTURE_WRAP_T@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	ldr	w2, [x22]
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, #56]
Lloh20:
	adrp	x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXT_TEXTURE_SRGB_DECODE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x26, #40]
	ldr	w0, [sp]
Lloh23:
	adrp	x9, _GL_TEXTURE_SRGB_DECODE_EXT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GL_TEXTURE_SRGB_DECODE_EXT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
Lloh26:
	adrp	x9, _GL_SKIP_DECODE_EXT@GOTPAGE
Lloh27:
	ldr	x9, [x9, _GL_SKIP_DECODE_EXT@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x9]
	blr	x8
LBB0_2:
	ldr	x8, [x26, #32]
Lloh29:
	adrp	x9, _GL_TEXTURE_ENV@GOTPAGE
Lloh30:
	ldr	x9, [x9, _GL_TEXTURE_ENV@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
Lloh32:
	adrp	x9, _GL_TEXTURE_ENV_MODE@GOTPAGE
Lloh33:
	ldr	x9, [x9, _GL_TEXTURE_ENV_MODE@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
Lloh35:
	adrp	x9, _GL_REPLACE@GOTPAGE
Lloh36:
	ldr	x9, [x9, _GL_REPLACE@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x9]
	blr	x8
Lloh38:
	adrp	x0, l_.str.2@PAGE
Lloh39:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_checkGLcall
	ldr	x8, [x26, #24]
Lloh40:
	adrp	x9, _GL_TRIANGLE_STRIP@GOTPAGE
Lloh41:
	ldr	x9, [x9, _GL_TRIANGLE_STRIP@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x9]
	blr	x8
	ldr	x8, [x26, #16]
	ldr	x0, [sp, #8]
	blr	x8
	ldr	x8, [x26, #8]
	ldp	w0, w1, [x21, #8]
	blr	x8
	ldr	x8, [x26, #16]
	ldr	x9, [sp, #8]
	add	x0, x9, #4
	blr	x8
	ldr	x8, [x26, #8]
	ldr	w0, [x21, #4]
	ldr	w1, [x21, #12]
	blr	x8
	ldr	x8, [x26, #16]
	ldr	x9, [sp, #8]
	add	x0, x9, #8
	blr	x8
	ldr	x8, [x26, #8]
	ldr	w0, [x21, #8]
	ldr	w1, [x21]
	blr	x8
	ldr	x8, [x26, #16]
	ldr	x9, [sp, #8]
	add	x0, x9, #12
	blr	x8
	ldr	x8, [x26, #8]
	ldp	w1, w0, [x21]
	blr	x8
	ldr	x8, [x26]
	blr	x8
	ldr	w1, [sp]
	mov	x0, x20
	mov	w2, #0
	bl	_context_bind_texture
Lloh43:
	adrp	x8, _WINED3D_TEXF_POINT@GOTPAGE
Lloh44:
	ldr	x8, [x8, _WINED3D_TEXF_POINT@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #8]
	ldr	w8, [x27]
Lloh46:
	adrp	x9, _FALSE@GOTPAGE
Lloh47:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
	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
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"glEnable(bind_target)"

	.comm	_GL_TEXTURE_MAG_FILTER,4,2      ; @GL_TEXTURE_MAG_FILTER
l_.str.1:                               ; @.str.1
	.asciz	"glTexParameteri"

	.comm	_GL_TEXTURE_MIN_FILTER,4,2      ; @GL_TEXTURE_MIN_FILTER
	.comm	_WINED3D_TEXF_NONE,4,2          ; @WINED3D_TEXF_NONE
	.comm	_GL_TEXTURE_WRAP_S,4,2          ; @GL_TEXTURE_WRAP_S
	.comm	_GL_CLAMP_TO_EDGE,4,2           ; @GL_CLAMP_TO_EDGE
	.comm	_GL_TEXTURE_WRAP_T,4,2          ; @GL_TEXTURE_WRAP_T
	.comm	_EXT_TEXTURE_SRGB_DECODE,8,3    ; @EXT_TEXTURE_SRGB_DECODE
	.comm	_GL_TEXTURE_SRGB_DECODE_EXT,4,2 ; @GL_TEXTURE_SRGB_DECODE_EXT
	.comm	_GL_SKIP_DECODE_EXT,4,2         ; @GL_SKIP_DECODE_EXT
	.comm	_GL_TEXTURE_ENV,4,2             ; @GL_TEXTURE_ENV
	.comm	_GL_TEXTURE_ENV_MODE,4,2        ; @GL_TEXTURE_ENV_MODE
	.comm	_GL_REPLACE,4,2                 ; @GL_REPLACE
l_.str.2:                               ; @.str.2
	.asciz	"glTexEnvi"

	.comm	_GL_TRIANGLE_STRIP,4,2          ; @GL_TRIANGLE_STRIP
	.comm	_WINED3D_TEXF_POINT,8,3         ; @WINED3D_TEXF_POINT
	.comm	_FALSE,4,2                      ; @FALSE
.subsections_via_symbols
