	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function d3d9_init_singlepass
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_d3d9_init_singlepass:                  ## @d3d9_init_singlepass
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	addq	$8, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$1, 8(%rbx)
	movq	16(%rbx), %r15
	movl	$1, 8(%r15)
	movq	_RARCH_SCALE_VIEWPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r15)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1.0E+0,1.0E+0]
	movups	%xmm0, 16(%r15)
	movl	%eax, 36(%r15)
	movl	(%rbx), %edi
	callq	_string_is_empty
	movl	$1, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movl	(%rbx), %esi
	movl	$4, %edx
	callq	_strlcpy
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_SCALE_VIEWPORT,4,2       ## @RARCH_SCALE_VIEWPORT
	.no_dead_strip	_d3d9_init_singlepass
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d9_init_singlepass
_d3d9_init_singlepass:                  ; @d3d9_init_singlepass
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	add	x0, x0, #8
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w20, #1
	str	w20, [x19, #8]
	ldr	x21, [x19, #16]
	str	w20, [x21, #8]
Lloh0:
	adrp	x8, _RARCH_SCALE_VIEWPORT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_SCALE_VIEWPORT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	fmov.2d	v0, #1.00000000
	str	q0, [x21, #16]
	stp	w8, w8, [x21, #32]
	ldr	w0, [x19]
	bl	_string_is_empty
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x19]
	mov	w2, #4
	bl	_strlcpy
	mov	w20, #1
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_SCALE_VIEWPORT,4,2       ; @RARCH_SCALE_VIEWPORT
	.no_dead_strip	_d3d9_init_singlepass
.subsections_via_symbols
