	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d3d10_set_filtering
_d3d10_set_filtering:                   ## @d3d10_set_filtering
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RARCH_WRAP_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_RARCH_FILTER_UNSPEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	(%rdi), %rdi
	testl	%edx, %edx
	jne	LBB0_2
## %bb.3:
	movq	_RARCH_FILTER_NEAREST@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_RARCH_FILTER_LINEAR@GOTPCREL(%rip), %rcx
LBB0_4:
	movq	(%rcx), %rcx
	movq	(%rdi,%rcx,8), %rcx
	movq	(%rdi,%rsi,8), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	movl	%edi, (%rdx,%rsi,4)
	incq	%rsi
	movl	(%rax), %edi
	cmpq	%rdi, %rsi
	jb	LBB0_5
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_WRAP_MAX,4,2             ## @RARCH_WRAP_MAX
	.comm	_RARCH_FILTER_LINEAR,8,3        ## @RARCH_FILTER_LINEAR
	.comm	_RARCH_FILTER_UNSPEC,8,3        ## @RARCH_FILTER_UNSPEC
	.comm	_RARCH_FILTER_NEAREST,8,3       ## @RARCH_FILTER_NEAREST
	.no_dead_strip	_d3d10_set_filtering
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d3d10_set_filtering
_d3d10_set_filtering:                   ; @d3d10_set_filtering
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RARCH_WRAP_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_WRAP_MAX@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_3
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _RARCH_FILTER_LINEAR@GOTPAGE
Lloh3:
	ldr	x10, [x10, _RARCH_FILTER_LINEAR@GOTPAGEOFF]
Lloh4:
	adrp	x11, _RARCH_FILTER_UNSPEC@GOTPAGE
Lloh5:
	ldr	x11, [x11, _RARCH_FILTER_UNSPEC@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
Lloh7:
	adrp	x12, _RARCH_FILTER_NEAREST@GOTPAGE
Lloh8:
	ldr	x12, [x12, _RARCH_FILTER_NEAREST@GOTPAGEOFF]
	ldr	x13, [x0]
	cmp	w2, #0
	csel	x10, x12, x10, eq
	ldr	x10, [x10]
	ldr	x10, [x13, x10, lsl #3]
	ldr	x11, [x13, x11, lsl #3]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldr	w12, [x8]
	cmp	x9, x12
	b.lo	LBB0_2
LBB0_3:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_WRAP_MAX,4,2             ; @RARCH_WRAP_MAX
	.comm	_RARCH_FILTER_LINEAR,8,3        ; @RARCH_FILTER_LINEAR
	.comm	_RARCH_FILTER_UNSPEC,8,3        ; @RARCH_FILTER_UNSPEC
	.comm	_RARCH_FILTER_NEAREST,8,3       ; @RARCH_FILTER_NEAREST
	.no_dead_strip	_d3d10_set_filtering
.subsections_via_symbols
