	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_set_trace_filter            ## -- Begin function t4_set_trace_filter
	.p2align	4, 0x90
_t4_set_trace_filter:                   ## @t4_set_trace_filter
	.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	%edx, %ebx
	movq	%rdi, %r15
	leal	(,%rbx,4), %r13d
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r12
	movq	_MPS_TRC_CFG_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_t4_read_reg
	movq	_TRCMULTIFILTER_F@GOTPCREL(%rip), %rdx
	movl	(%r12), %ecx
	testl	%eax, (%rdx)
	je	LBB0_5
## %bb.3:
	cmpl	$2545, %ecx                     ## imm = 0x9F1
	jl	LBB0_7
	jmp	LBB0_4
LBB0_1:
	movq	_MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_t4_write_reg
	jmp	LBB0_19
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_4
## %bb.6:
	cmpl	$9601, %ecx                     ## imm = 0x2581
	jge	LBB0_4
LBB0_7:
	movl	4(%r12), %r14d
	movl	(%r15), %edi
	callq	_is_t4
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
	leal	11(,%rcx,8), %eax
	cmpl	%eax, %r14d
	jg	LBB0_4
## %bb.8:
	cmpl	$1, 8(%r12)
	jg	LBB0_4
## %bb.9:
	movq	16(%r12), %rax
	movq	_TFLENGTH_M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.10:
	movq	24(%r12), %rax
	movq	_TFOFFSET_M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_4
## %bb.11:
	movq	32(%r12), %rax
	movq	_TFMINPKTSIZE_M@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_12
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	addl	%r13d, %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_t4_write_reg
	movq	_TRACE_LEN@GOTPCREL(%rip), %rax
	cmpl	$4, (%rax)
	jl	LBB0_15
## %bb.13:
	movq	_MPS_TRC_FILTER1_MATCH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_MPS_TRC_FILTER0_MATCH_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	%eax, %r13d
	imull	%ebx, %r13d
	movq	_MPS_TRC_FILTER0_DONT_CARE_A@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	addl	%r13d, %ebx
	addl	%eax, %r13d
	xorl	%r14d, %r14d
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rax
	movl	(%rax,%r14,4), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_t4_write_reg
	movq	48(%r12), %rax
	movl	(%rax,%r14,4), %edx
	notl	%edx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_t4_write_reg
	movq	_TRACE_LEN@GOTPCREL(%rip), %rax
	incq	%r14
	addl	$4, %r13d
	addl	$4, %ebx
	movl	(%rax), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rax
	cmpq	%rax, %r14
	jl	LBB0_14
LBB0_15:
	movq	_MPS_TRC_FILTER_MATCH_CTL_B_A@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%r14d, %r13d
	movl	(%r12), %edi
	callq	_TFCAPTUREMAX_V
	movl	%eax, %ebx
	movq	32(%r12), %rdi
	callq	_TFMINPKTSIZE_V
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_t4_write_reg
	movq	_MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movq	24(%r12), %rdi
	callq	_TFOFFSET_V
	movl	%eax, %r13d
	movq	16(%r12), %rdi
	callq	_TFLENGTH_V
	movl	%eax, %ebx
	orl	%r13d, %ebx
	movl	(%r15), %edi
	callq	_is_t4
	movl	4(%r12), %edi
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	callq	_TFPORT_V
	movl	%eax, %r13d
	movq	_TFEN_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	8(%r12), %edi
	callq	_TFINVERTMATCH_V
	jmp	LBB0_18
LBB0_17:
	callq	_T5_TFPORT_V
	movl	%eax, %r13d
	movq	_T5_TFEN_F@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	movl	8(%r12), %edi
	callq	_T5_TFINVERTMATCH_V
LBB0_18:
	orl	%r13d, %eax
	orl	%eax, %ebx
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	callq	_t4_write_reg
	xorl	%ebx, %ebx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_MPS_TRC_FILTER_MATCH_CTL_A_A,4,2 ## @MPS_TRC_FILTER_MATCH_CTL_A_A
	.comm	_MPS_TRC_CFG_A,4,2              ## @MPS_TRC_CFG_A
	.comm	_TRCMULTIFILTER_F,4,2           ## @TRCMULTIFILTER_F
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TFLENGTH_M,8,3                 ## @TFLENGTH_M
	.comm	_TFOFFSET_M,8,3                 ## @TFOFFSET_M
	.comm	_TFMINPKTSIZE_M,8,3             ## @TFMINPKTSIZE_M
	.comm	_MPS_TRC_FILTER1_MATCH_A,4,2    ## @MPS_TRC_FILTER1_MATCH_A
	.comm	_MPS_TRC_FILTER0_MATCH_A,4,2    ## @MPS_TRC_FILTER0_MATCH_A
	.comm	_MPS_TRC_FILTER0_DONT_CARE_A,4,2 ## @MPS_TRC_FILTER0_DONT_CARE_A
	.comm	_TRACE_LEN,4,2                  ## @TRACE_LEN
	.comm	_MPS_TRC_FILTER_MATCH_CTL_B_A,4,2 ## @MPS_TRC_FILTER_MATCH_CTL_B_A
	.comm	_TFEN_F,4,2                     ## @TFEN_F
	.comm	_T5_TFEN_F,4,2                  ## @T5_TFEN_F
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_t4_set_trace_filter            ; -- Begin function t4_set_trace_filter
	.p2align	2
_t4_set_trace_filter:                   ; @t4_set_trace_filter
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	lsl	w23, w2, #2
	cbz	w3, LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _MPS_TRC_CFG_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPS_TRC_CFG_A@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_t4_read_reg
Lloh3:
	adrp	x8, _TRCMULTIFILTER_F@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRCMULTIFILTER_F@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	ldr	w8, [x20]
	tst	w9, w0
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #2545
	b.lt	LBB0_7
	b	LBB0_12
LBB0_3:
Lloh6:
	adrp	x8, _MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w1, w8, w23
	mov	x0, x19
	mov	w2, #0
LBB0_4:
	bl	_t4_write_reg
	mov	w0, #0
	b	LBB0_13
LBB0_5:
	cbnz	w21, LBB0_12
; %bb.6:
	mov	w9, #9601
	cmp	w8, w9
	b.ge	LBB0_12
LBB0_7:
	ldr	w22, [x20, #4]
	ldr	w0, [x19]
	bl	_is_t4
	cmp	x0, #0
	mov	w8, #11
	mov	w9, #19
	csel	w8, w9, w8, eq
	cmp	w22, w8
	b.gt	LBB0_12
; %bb.8:
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.gt	LBB0_12
; %bb.9:
	ldr	x8, [x20, #16]
Lloh9:
	adrp	x9, _TFLENGTH_M@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TFLENGTH_M@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_12
; %bb.10:
	ldr	x8, [x20, #24]
Lloh12:
	adrp	x9, _TFOFFSET_M@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TFOFFSET_M@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_12
; %bb.11:
	ldr	x8, [x20, #32]
Lloh15:
	adrp	x9, _TFMINPKTSIZE_M@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TFMINPKTSIZE_M@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_14
LBB0_12:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh21:
	adrp	x24, _MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPAGE
Lloh22:
	ldr	x24, [x24, _MPS_TRC_FILTER_MATCH_CTL_A_A@GOTPAGEOFF]
	ldr	w8, [x24]
	add	w1, w8, w23
	mov	x0, x19
	mov	w2, #0
	bl	_t4_write_reg
Lloh23:
	adrp	x25, _TRACE_LEN@GOTPAGE
Lloh24:
	ldr	x25, [x25, _TRACE_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, #4
	b.lt	LBB0_17
; %bb.15:
	mov	x26, #0
Lloh25:
	adrp	x8, _MPS_TRC_FILTER1_MATCH_A@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MPS_TRC_FILTER1_MATCH_A@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MPS_TRC_FILTER0_MATCH_A@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MPS_TRC_FILTER0_MATCH_A@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	sub	w8, w8, w9
	mul	w8, w8, w21
Lloh31:
	adrp	x10, _MPS_TRC_FILTER0_DONT_CARE_A@GOTPAGE
Lloh32:
	ldr	x10, [x10, _MPS_TRC_FILTER0_DONT_CARE_A@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	add	w21, w8, w10
	add	w22, w8, w9
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #40]
	lsl	x27, x26, #2
	ldr	w2, [x8, x27]
	mov	x0, x19
	mov	x1, x22
	bl	_t4_write_reg
	ldr	x8, [x20, #48]
	ldr	w8, [x8, x27]
	mvn	w2, w8
	mov	x0, x19
	mov	x1, x21
	bl	_t4_write_reg
	add	x26, x26, #1
	add	w22, w22, #4
	add	w21, w21, #4
	ldr	w8, [x25]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	cmp	x26, w8, sxtw
	b.lt	LBB0_16
LBB0_17:
Lloh34:
	adrp	x8, _MPS_TRC_FILTER_MATCH_CTL_B_A@GOTPAGE
Lloh35:
	ldr	x8, [x8, _MPS_TRC_FILTER_MATCH_CTL_B_A@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	add	w21, w8, w23
	ldr	w0, [x20]
	bl	_TFCAPTUREMAX_V
	mov	x22, x0
	ldr	x0, [x20, #32]
	bl	_TFMINPKTSIZE_V
	orr	w2, w0, w22
	mov	x0, x19
	mov	x1, x21
	bl	_t4_write_reg
	ldr	w8, [x24]
	add	w21, w8, w23
	ldr	x0, [x20, #24]
	bl	_TFOFFSET_V
	mov	x22, x0
	ldr	x0, [x20, #16]
	bl	_TFLENGTH_V
	orr	w22, w0, w22
	ldr	w0, [x19]
	bl	_is_t4
	mov	x8, x0
	ldr	w0, [x20, #4]
	cbz	x8, LBB0_19
; %bb.18:
	bl	_TFPORT_V
Lloh37:
	adrp	x8, _TFEN_F@GOTPAGE
Lloh38:
	ldr	x8, [x8, _TFEN_F@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	orr	w23, w8, w0
	ldr	w0, [x20, #8]
	bl	_TFINVERTMATCH_V
	b	LBB0_20
LBB0_19:
	bl	_T5_TFPORT_V
Lloh40:
	adrp	x8, _T5_TFEN_F@GOTPAGE
Lloh41:
	ldr	x8, [x8, _T5_TFEN_F@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	orr	w23, w8, w0
	ldr	w0, [x20, #8]
	bl	_T5_TFINVERTMATCH_V
LBB0_20:
	orr	w8, w23, w0
	orr	w2, w22, w8
	mov	x0, x19
	mov	x1, x21
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MPS_TRC_FILTER_MATCH_CTL_A_A,4,2 ; @MPS_TRC_FILTER_MATCH_CTL_A_A
	.comm	_MPS_TRC_CFG_A,4,2              ; @MPS_TRC_CFG_A
	.comm	_TRCMULTIFILTER_F,4,2           ; @TRCMULTIFILTER_F
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TFLENGTH_M,8,3                 ; @TFLENGTH_M
	.comm	_TFOFFSET_M,8,3                 ; @TFOFFSET_M
	.comm	_TFMINPKTSIZE_M,8,3             ; @TFMINPKTSIZE_M
	.comm	_MPS_TRC_FILTER1_MATCH_A,4,2    ; @MPS_TRC_FILTER1_MATCH_A
	.comm	_MPS_TRC_FILTER0_MATCH_A,4,2    ; @MPS_TRC_FILTER0_MATCH_A
	.comm	_MPS_TRC_FILTER0_DONT_CARE_A,4,2 ; @MPS_TRC_FILTER0_DONT_CARE_A
	.comm	_TRACE_LEN,4,2                  ; @TRACE_LEN
	.comm	_MPS_TRC_FILTER_MATCH_CTL_B_A,4,2 ; @MPS_TRC_FILTER_MATCH_CTL_B_A
	.comm	_TFEN_F,4,2                     ; @TFEN_F
	.comm	_T5_TFEN_F,4,2                  ; @T5_TFEN_F
.subsections_via_symbols
