	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_filter_smac
_configure_filter_smac:                 ## @configure_filter_smac
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edx
	movq	_TF_CCTRL_CWR_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$1, %r8d
	movl	$1, %r9d
	callq	_set_tcb_tflag
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movl	(%r15), %r12d
	movq	_TCB_SMAC_SEL_W@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_TCB_SMAC_SEL_M@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_TCB_SMAC_SEL_V
	movl	%eax, %ebx
	movq	8(%r15), %rax
	movl	(%rax), %edi
	callq	_TCB_SMAC_SEL_V
	movl	$1, (%rsp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	%ebx, %r8d
	movl	%eax, %r9d
	callq	_set_tcb_field
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %ecx
	callq	_dev_err
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_TF_CCTRL_CWR_S,4,2             ## @TF_CCTRL_CWR_S
	.comm	_TCB_SMAC_SEL_W,4,2             ## @TCB_SMAC_SEL_W
	.comm	_TCB_SMAC_SEL_M,4,2             ## @TCB_SMAC_SEL_M
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filter %u smac config failed with error %u\n"

	.no_dead_strip	_configure_filter_smac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_filter_smac
_configure_filter_smac:                 ; @configure_filter_smac
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w2, [x1]
Lloh0:
	adrp	x8, _TF_CCTRL_CWR_S@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TF_CCTRL_CWR_S@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w4, #1
	mov	w5, #1
	bl	_set_tcb_tflag
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w21, [x19]
Lloh3:
	adrp	x8, _TCB_SMAC_SEL_W@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCB_SMAC_SEL_W@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _TCB_SMAC_SEL_M@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TCB_SMAC_SEL_M@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_TCB_SMAC_SEL_V
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_TCB_SMAC_SEL_V
	mov	x5, x0
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	w6, #1
	bl	_set_tcb_field
	mov	x21, x0
	cbz	w0, LBB0_3
LBB0_2:
	ldr	w0, [x20]
	ldr	w2, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x21
	bl	_dev_err
LBB0_3:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TF_CCTRL_CWR_S,4,2             ; @TF_CCTRL_CWR_S
	.comm	_TCB_SMAC_SEL_W,4,2             ; @TCB_SMAC_SEL_W
	.comm	_TCB_SMAC_SEL_M,4,2             ; @TCB_SMAC_SEL_M
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filter %u smac config failed with error %u\n"

	.no_dead_strip	_configure_filter_smac
.subsections_via_symbols
