	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_dxt5_encode            ## -- Begin function wined3d_dxt5_encode
	.p2align	4, 0x90
_wined3d_dxt5_encode:                   ## @wined3d_dxt5_encode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_txc_dxtn_handle@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	movl	16(%rbp), %r10d
	cmpl	$128, %r8d
	je	LBB0_5
## %bb.2:
	cmpl	$129, %r8d
	jne	LBB0_6
## %bb.3:
	movq	_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	pushq	%rax
	pushq	%r11
	callq	_x8r8g8b8_to_dxtn
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_6:
	movl	%r8d, %edi
	callq	_debug_d3dformat
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_FIXME
LBB0_7:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_txc_dxtn_handle,4,2            ## @txc_dxtn_handle
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,4,2 ## @GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot find a conversion function from format %s to DXT5.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wined3d_dxt5_encode            ; -- Begin function wined3d_dxt5_encode
	.p2align	2
_wined3d_dxt5_encode:                   ; @wined3d_dxt5_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_7
; %bb.1:
	cmp	w4, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w4, #129
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TRUE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GL_COMPRESSED_RGBA_S3TC_DXT5_EXT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _FALSE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
LBB0_5:
	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_6:
	mov	x0, x4
	bl	_debug_d3dformat
	mov	x1, x0
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
LBB0_7:
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_txc_dxtn_handle,4,2            ; @txc_dxtn_handle
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_GL_COMPRESSED_RGBA_S3TC_DXT5_EXT,4,2 ; @GL_COMPRESSED_RGBA_S3TC_DXT5_EXT
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot find a conversion function from format %s to DXT5.\n"

.subsections_via_symbols
