	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_format_info                ## -- Begin function get_format_info
	.p2align	4, 0x90
_get_format_info:                       ## @get_format_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	movq	_formats@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	_D3DFMT_UNKNOWN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	$-1, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%edx
	movq	(%rax,%rdx,8), %rsi
	cmpq	%rbx, %rsi
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rcx, %rsi
	jne	LBB0_1
LBB0_3:
	movl	%edx, %r15d
	cmpq	%rcx, %rsi
	jne	LBB0_5
## %bb.4:
	leaq	-32(%rbp), %rdi
	movl	$4, %esi
	callq	_debugstr_an
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_FIXME
	movq	(%r14), %rax
LBB0_5:
	leaq	(%rax,%r15,8), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_formats,8,3                    ## @formats
	.comm	_D3DFMT_UNKNOWN,8,3             ## @D3DFMT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown format %#x (as FOURCC %s).\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_format_info                ; -- Begin function get_format_info
	.p2align	2
_get_format_info:                       ; @get_format_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _formats@GOTPAGE
Lloh1:
	ldr	x21, [x21, _formats@GOTPAGEOFF]
	str	x0, [sp, #8]
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _D3DFMT_UNKNOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D3DFMT_UNKNOWN@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	mov	w20, #-1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	w20, w20, #1
	ldr	x10, [x8, w20, uxtw #3]
	cmp	x10, x19
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_1
; %bb.2:
	cmp	x10, x9
	b.ne	LBB0_4
; %bb.3:
	add	x0, sp, #8
	mov	w1, #4
	bl	_debugstr_an
	mov	x2, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_FIXME
	ldr	x8, [x21]
LBB0_4:
	add	x0, x8, x20, lsl #3
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_formats,8,3                    ; @formats
	.comm	_D3DFMT_UNKNOWN,8,3             ; @D3DFMT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown format %#x (as FOURCC %s).\n"

.subsections_via_symbols
