	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_add_protocol_filter    ## -- Begin function qed_llh_add_protocol_filter
	.p2align	4, 0x90
_qed_llh_add_protocol_filter:           ## @qed_llh_add_protocol_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
	subq	$232, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -264(%rbp)                 ## 8-byte Spill
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_QED_LEADING_HWFN
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_qed_ptt_acquire
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -256(%rbp)
	movq	$0, -240(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	_QED_MF_LLH_PROTO_CLSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movl	%r13d, -180(%rbp)               ## 4-byte Spill
	leaq	-176(%rbp), %r8
	movq	%r14, %rdi
	movl	%r15d, -184(%rbp)               ## 4-byte Spill
	movl	%r15d, %esi
	movq	-224(%rbp), %r15                ## 8-byte Reload
	movq	%r15, %rdx
	movq	-264(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rcx
	movl	$128, %r9d
	callq	_qed_llh_protocol_filter_stringify
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-184(%rbp), %eax                ## 4-byte Reload
	movl	%eax, -256(%rbp)
	movq	%r15, -240(%rbp)
	movq	%rbx, -248(%rbp)
	movq	_QED_LLH_FILTER_TYPE_PROTOCOL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-256(%rbp), %rcx
	leaq	-196(%rbp), %r8
	leaq	-188(%rbp), %r9
	movq	%r14, %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	callq	_qed_llh_shadow_add_filter
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-192(%rbp), %rdx
	movq	%r14, %rdi
	movl	-180(%rbp), %esi                ## 4-byte Reload
	callq	_qed_llh_abs_ppfid
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_11
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	leaq	-176(%rbp), %rdx
	movq	%r12, %rdi
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	callq	_DP_NOTICE
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_8
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_9
LBB0_11:
	movq	%rbx, %rcx
	movl	-184(%rbp), %ebx                ## 4-byte Reload
	movl	-188(%rbp), %eax
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.12:
	leaq	-216(%rbp), %r8
	leaq	-212(%rbp), %r9
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	callq	_qed_llh_protocol_filter_to_hilo
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.13:
	movl	$1, %r8d
	movl	%ebx, %ecx
	shll	%cl, %r8d
	movl	-192(%rbp), %edx
	movl	-196(%rbp), %ecx
	movl	-216(%rbp), %r9d
	movl	-212(%rbp), %eax
	subq	$8, %rsp
	movq	%r12, %rdi
	movq	-208(%rbp), %rsi                ## 8-byte Reload
	pushq	%rax
	callq	_qed_llh_add_filter
	addq	$16, %rsp
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.14:
	movl	-188(%rbp), %eax
LBB0_15:
	movq	_QED_MSG_SP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	-192(%rbp), %r9d
	movl	-196(%rbp), %r10d
	leaq	L_.str(%rip), %rdx
	leaq	-176(%rbp), %rcx
	movq	%r14, %rdi
	movl	-180(%rbp), %r8d                ## 4-byte Reload
	pushq	%rax
	pushq	%r10
	callq	_DP_VERBOSE
	addq	$16, %rsp
	movq	-208(%rbp), %rbx                ## 8-byte Reload
LBB0_7:
	xorl	%r13d, %r13d
LBB0_8:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_qed_ptt_release
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.10:
	movl	%r13d, %eax
	addq	$232, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_QED_MF_LLH_PROTO_CLSS,4,2      ## @QED_MF_LLH_PROTO_CLSS
	.comm	_QED_LLH_FILTER_TYPE_PROTOCOL,4,2 ## @QED_LLH_FILTER_TYPE_PROTOCOL
	.comm	_QED_MSG_SP,4,2                 ## @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LLH: Added protocol filter [%s] to ppfid %hhd [abs %hhd] at idx %hhd [ref_cnt %d]\n"

L_.str.1:                               ## @.str.1
	.asciz	"LLH: Failed to add protocol filter [%s] to ppfid %hhd\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_llh_add_protocol_filter    ; -- Begin function qed_llh_add_protocol_filter
	.p2align	2
_qed_llh_add_protocol_filter:           ; @qed_llh_add_protocol_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #288
	.cfi_def_cfa_offset 288
	stp	x28, x27, [sp, #192]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #208]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #224]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #240]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #256]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #272]            ; 16-byte Folded Spill
	add	x29, sp, #272
	.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	x24, x4
	mov	x25, x3
	mov	x23, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_QED_LEADING_HWFN
	mov	x19, x0
	bl	_qed_ptt_acquire
	stp	xzr, xzr, [sp, #24]
	str	xzr, [sp, #40]
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _QED_MF_LLH_PROTO_CLSS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QED_MF_LLH_PROTO_CLSS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	cbz	w0, LBB0_12
; %bb.2:
	add	x4, sp, #56
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	mov	w5, #128
	bl	_qed_llh_protocol_filter_stringify
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.3:
	str	w23, [sp, #24]
	stp	x24, x25, [sp, #32]
Lloh6:
	adrp	x8, _QED_LLH_FILTER_TYPE_PROTOCOL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_LLH_FILTER_TYPE_PROTOCOL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #24
	add	x4, sp, #52
	add	x5, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_qed_llh_shadow_add_filter
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.4:
	add	x2, sp, #48
	mov	x0, x22
	mov	x1, x21
	bl	_qed_llh_abs_ppfid
	mov	x26, x0
	cbz	w0, LBB0_7
LBB0_5:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #56
	mov	x0, x19
	mov	x3, x21
	bl	_DP_NOTICE
	b	LBB0_13
LBB0_6:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_14
LBB0_7:
	ldr	w7, [sp, #12]
	cmp	w7, #1
	b.ne	LBB0_11
; %bb.8:
	add	x4, sp, #20
	add	x5, sp, #16
	mov	x0, x22
	mov	x1, x23
	mov	x2, x25
	mov	x3, x24
	bl	_qed_llh_protocol_filter_to_hilo
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.9:
	mov	w8, #1
	lsl	w4, w8, w23
	ldp	w2, w3, [sp, #48]
	ldp	w6, w5, [sp, #16]
	mov	x0, x19
	mov	x1, x20
	bl	_qed_llh_add_filter
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.10:
	ldr	w7, [sp, #12]
LBB0_11:
Lloh14:
	adrp	x8, _QED_MSG_SP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _QED_MSG_SP@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldp	w5, w6, [sp, #48]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #56
	mov	x0, x22
	mov	x4, x21
	bl	_DP_VERBOSE
LBB0_12:
	mov	w26, #0
LBB0_13:
	mov	x0, x19
	mov	x1, x20
	bl	_qed_ptt_release
LBB0_14:
	ldur	x8, [x29, #-88]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x26
	ldp	x29, x30, [sp, #272]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #256]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #240]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #224]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #208]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #192]            ; 16-byte Folded Reload
	add	sp, sp, #288
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_QED_MF_LLH_PROTO_CLSS,4,2      ; @QED_MF_LLH_PROTO_CLSS
	.comm	_QED_LLH_FILTER_TYPE_PROTOCOL,4,2 ; @QED_LLH_FILTER_TYPE_PROTOCOL
	.comm	_QED_MSG_SP,4,2                 ; @QED_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LLH: Added protocol filter [%s] to ppfid %hhd [abs %hhd] at idx %hhd [ref_cnt %d]\n"

l_.str.1:                               ; @.str.1
	.asciz	"LLH: Failed to add protocol filter [%s] to ppfid %hhd\n"

.subsections_via_symbols
