	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dds_alpha_to_d3dformat
_dds_alpha_to_d3dformat:                ## @dds_alpha_to_d3dformat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %esi
	cmpl	$8, %esi
	jne	LBB0_3
## %bb.1:
	cmpl	$255, 4(%rdi)
	jne	LBB0_3
## %bb.2:
	movq	_D3DFMT_A8@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movl	8(%rdi), %edx
	leaq	L_.str(%rip), %rdi
	callq	_WARN
	movq	_D3DFMT_UNKNOWN@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DFMT_A8,4,2                  ## @D3DFMT_A8
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown Alpha pixel format (%u, %#x)\n"

	.comm	_D3DFMT_UNKNOWN,4,2             ## @D3DFMT_UNKNOWN
	.no_dead_strip	_dds_alpha_to_d3dformat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dds_alpha_to_d3dformat
_dds_alpha_to_d3dformat:                ; @dds_alpha_to_d3dformat
	.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
	ldr	w1, [x0]
	cmp	w1, #8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [x0, #4]
	cmp	w8, #255
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _D3DFMT_A8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DFMT_A8@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w2, [x0, #8]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
Lloh4:
	adrp	x8, _D3DFMT_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _D3DFMT_UNKNOWN@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DFMT_A8,4,2                  ; @D3DFMT_A8
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown Alpha pixel format (%u, %#x)\n"

	.comm	_D3DFMT_UNKNOWN,4,2             ; @D3DFMT_UNKNOWN
	.no_dead_strip	_dds_alpha_to_d3dformat
.subsections_via_symbols
