	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rarch_softfilter_new           ## -- Begin function rarch_softfilter_new
	.p2align	4, 0x90
_rarch_softfilter_new:                  ## @rarch_softfilter_new
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	xorl	%eax, %eax
	callq	_cpu_features_get
	movl	%eax, %r14d
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_config_file_new_from_path_to_string
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_append_softfilter_plugs
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_create_softfilter_graph
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_RARCH_ERR
	jmp	LBB0_8
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_7:
	xorl	%eax, %eax
	callq	_RARCH_ERR
LBB0_8:
	movq	%rbx, %rdi
	callq	_rarch_softfilter_free
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[SoftFilter]: Did not find config: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"[SoftFitler]: Failed to append softfilter plugins...\n"

L_.str.2:                               ## @.str.2
	.asciz	"[SoftFitler]: Failed to create softfilter graph...\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rarch_softfilter_new           ; -- Begin function rarch_softfilter_new
	.p2align	2
_rarch_softfilter_new:                  ; @rarch_softfilter_new
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x21, x1
	mov	x25, x0
	bl	_cpu_features_get
	mov	x24, x0
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
	mov	x0, x25
	bl	_config_file_new_from_path_to_string
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, #0
	bl	_append_softfilter_plugs
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	mov	x4, x24
	mov	x5, x21
	bl	_create_softfilter_graph
	cbnz	w0, LBB0_8
; %bb.4:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_5:
	str	x25, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_RARCH_ERR
	mov	x0, x19
	bl	_rarch_softfilter_free
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[SoftFilter]: Did not find config: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"[SoftFitler]: Failed to append softfilter plugins...\n"

l_.str.2:                               ; @.str.2
	.asciz	"[SoftFitler]: Failed to create softfilter graph...\n"

.subsections_via_symbols
