	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_dxt1_encode            ## -- Begin function wined3d_dxt1_encode
	.p2align	4, 0x90
_wined3d_dxt1_encode:                   ## @wined3d_dxt1_encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $r8d killed $r8d def $r8
	movq	_txc_dxtn_handle@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.1:
	leal	-128(%r8), %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.2:
	movl	16(%rbp), %r10d
	leaq	LJTI0_0(%rip), %r8
	movslq	(%r8,%rax,4), %rax
	addq	%r8, %rax
	jmpq	*%rax
LBB0_6:
	movq	_GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movl	%r8d, %edi
	callq	_debug_d3dformat
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_11:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_3:
	movq	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	pushq	%rax
	pushq	%r11
	callq	_x8r8g8b8_to_dxtn
	jmp	LBB0_5
LBB0_9:
	movq	_GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	pushq	%rax
	pushq	%r11
	callq	_x1r5g5b5_to_dxtn
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_txc_dxtn_handle,4,2            ## @txc_dxtn_handle
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT,4,2 ## @GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_GL_COMPRESSED_RGB_S3TC_DXT1_EXT,4,2 ## @GL_COMPRESSED_RGB_S3TC_DXT1_EXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find a conversion function from format %s to DXT1.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_dxt1_encode            ; -- Begin function wined3d_dxt1_encode
	.p2align	2
_wined3d_dxt1_encode:                   ; @wined3d_dxt1_encode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _txc_dxtn_handle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _txc_dxtn_handle@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_5
; %bb.1:
	sub	w8, w4, #128
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh3:
	adrp	x9, lJTI0_0@PAGE
Lloh4:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh5:
	adrp	x8, _GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _FALSE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
	mov	x0, x4
	bl	_debug_d3dformat
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_5:
Lloh12:
	adrp	x8, _FALSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh15:
	adrp	x8, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _TRUE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
LBB0_7:
	ldr	w7, [x9]
	mov	x4, x5
	mov	x5, x6
	mov	x6, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_x8r8g8b8_to_dxtn
LBB0_8:
Lloh20:
	adrp	x8, _GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GL_COMPRESSED_RGB_S3TC_DXT1_EXT@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _FALSE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GL_COMPRESSED_RGBA_S3TC_DXT1_EXT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _TRUE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
LBB0_10:
	ldr	w7, [x9]
	mov	x4, x5
	mov	x5, x6
	mov	x6, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_x1r5g5b5_to_dxtn
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
                                        ; -- End function
	.comm	_txc_dxtn_handle,4,2            ; @txc_dxtn_handle
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT1_EXT,4,2 ; @GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_GL_COMPRESSED_RGB_S3TC_DXT1_EXT,4,2 ; @GL_COMPRESSED_RGB_S3TC_DXT1_EXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find a conversion function from format %s to DXT1.\n"

.subsections_via_symbols
