	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d8_get_color_format_backbuffer
_d3d8_get_color_format_backbuffer:      ## @d3d8_get_color_format_backbuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_D3DFMT_X8R8G8B8@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	testl	%esi, %esi
	je	LBB0_3
## %bb.1:
	movq	_g_pD3D8@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-16(%rbp), %rdx
	xorl	%esi, %esi
	callq	_d3d8_get_adapter_display_mode
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	-16(%rbp), %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DFMT_X8R8G8B8,4,2            ## @D3DFMT_X8R8G8B8
	.comm	_g_pD3D8,4,2                    ## @g_pD3D8
	.no_dead_strip	_d3d8_get_color_format_backbuffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d8_get_color_format_backbuffer
_d3d8_get_color_format_backbuffer:      ; @d3d8_get_color_format_backbuffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _D3DFMT_X8R8G8B8@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DFMT_X8R8G8B8@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	cbz	w1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _g_pD3D8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_pD3D8@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x2, sp, #8
	mov	w1, #0
	bl	_d3d8_get_adapter_display_mode
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csel	w19, w19, w8, eq
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DFMT_X8R8G8B8,4,2            ; @D3DFMT_X8R8G8B8
	.comm	_g_pD3D8,4,2                    ; @g_pD3D8
	.no_dead_strip	_d3d8_get_color_format_backbuffer
.subsections_via_symbols
