	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function d3d8_init_internal
LCPI0_0:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
LCPI0_1:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	4294967295                      ## 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3d8_init_internal:                    ## @d3d8_init_internal
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$1, %edi
	movl	$16, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, 24(%rbx)
	movl	$0, 12(%rbx)
	movq	(%rax), %rcx
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,0,1,1]
	movups	%xmm0, (%rcx)
	movq	8(%rax), %rax
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [0,1,1,4294967295]
	movups	%xmm0, (%rax)
	leaq	-56(%rbp), %r15
	leaq	-52(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	callq	_d3d8_get_video_size
	leaq	4(%r14), %rax
	cmpl	$0, 8(%r14)
	cmoveq	%r14, %r15
	movl	(%r15), %ecx
	movl	%ecx, -48(%rbp)
	cmovneq	%r12, %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_video_driver_set_size
	movq	%rbx, %rdi
	callq	_d3d8_init_singlepass
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	8(%r14), %eax
	movl	%eax, 8(%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_d3d8_initialize
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movl	4(%rax), %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_d3d_input_driver
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movl	$1, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[D3D8]: Init complete.\n"

	.comm	_WndProcD3D,4,2                 ## @WndProcD3D
	.comm	_g_win32_resize_height,4,2      ## @g_win32_resize_height
	.comm	_g_win32_resize_width,4,2       ## @g_win32_resize_width
	.no_dead_strip	_d3d8_init_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function d3d8_init_internal
lCPI0_0:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
lCPI0_1:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	4294967295                      ; 0xffffffff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_d3d8_init_internal:                    ; @d3d8_init_internal
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x23, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	bl	_config_get_ptr
	mov	x21, x0
	mov	w0, #1
	mov	w1, #16
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	str	x0, [x22, #24]
	str	wzr, [x22, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	str	q0, [x8]
	ldr	x8, [x0, #8]
Lloh2:
	adrp	x9, lCPI0_1@PAGE
Lloh3:
	ldr	q0, [x9, lCPI0_1@PAGEOFF]
	str	q0, [x8]
	add	x24, sp, #12
	add	x25, sp, #8
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x22
	bl	_d3d8_get_video_size
	ldr	w8, [x23, #8]
	cmp	w8, #0
	csel	x8, x23, x24, eq
	ldr	w9, [x8]
	add	x8, x23, #4
	csel	x8, x8, x25, eq
	ldr	w8, [x8]
	stp	w8, w9, [sp]
	add	x0, sp, #4
	mov	x1, sp
	bl	_video_driver_set_size
	mov	x0, x22
	bl	_d3d8_init_singlepass
	cbz	w0, LBB0_4
; %bb.2:
	ldr	x8, [x23]
	ldr	w9, [x23, #8]
	str	w9, [x22, #8]
	str	x8, [x22]
	mov	x0, x22
	mov	x1, x22
	bl	_d3d8_initialize
	cbz	w0, LBB0_4
; %bb.3:
	ldp	w1, w0, [x21]
	mov	x2, x20
	mov	x3, x19
	bl	_d3d_input_driver
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_LOG
	mov	w0, #1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[D3D8]: Init complete.\n"

	.comm	_WndProcD3D,4,2                 ; @WndProcD3D
	.comm	_g_win32_resize_height,4,2      ; @g_win32_resize_height
	.comm	_g_win32_resize_width,4,2       ; @g_win32_resize_width
	.no_dead_strip	_d3d8_init_internal
.subsections_via_symbols
