	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hw_atl_a0_hw_packet_filter_set
_hw_atl_a0_hw_packet_filter_set:        ## @hw_atl_a0_hw_packet_filter_set
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_FILTER_ENABLED
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hw_atl_rpfl2promiscuous_mode_en_set
	movq	_IFF_MULTICAST@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_IS_FILTER_ENABLED
	movq	%r14, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_hw_atl_rpfl2multicast_flr_en_set
	movq	_IFF_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_FILTER_ENABLED
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hw_atl_rpfl2broadcast_en_set
	movl	(%rbx), %edi
	callq	_IS_FILTER_ENABLED
	movq	(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	_HW_ATL_A0_MAC_MIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movq	_HW_ATL_A0_MAC_MAX@GOTPCREL(%rip), %r15
	cmpl	(%r15), %ebx
	jae	LBB0_6
	.p2align	4, 0x90
## %bb.1:
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	cmpl	(%rcx), %ebx
	setbe	%al
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	movzbl	%al, %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_hw_atl_rpfl2_uc_flr_en_set
	incl	%ebx
	cmpl	(%r15), %ebx
	jae	LBB0_6
## %bb.5:
	movq	(%r14), %rcx
	movq	8(%rcx), %rax
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_2
LBB0_6:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_aq_hw_err_from_flags           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_IFF_MULTICAST,4,2              ## @IFF_MULTICAST
	.comm	_IFF_BROADCAST,4,2              ## @IFF_BROADCAST
	.comm	_HW_ATL_A0_MAC_MIN,4,2          ## @HW_ATL_A0_MAC_MIN
	.comm	_HW_ATL_A0_MAC_MAX,4,2          ## @HW_ATL_A0_MAC_MAX
	.no_dead_strip	_hw_atl_a0_hw_packet_filter_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hw_atl_a0_hw_packet_filter_set
_hw_atl_a0_hw_packet_filter_set:        ; @hw_atl_a0_hw_packet_filter_set
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IFF_PROMISC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFF_PROMISC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_IS_FILTER_ENABLED
	mov	x1, x0
	mov	x0, x19
	bl	_hw_atl_rpfl2promiscuous_mode_en_set
Lloh3:
	adrp	x20, _IFF_MULTICAST@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IFF_MULTICAST@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_IS_FILTER_ENABLED
	mov	x1, x0
	mov	x0, x19
	mov	w2, #0
	bl	_hw_atl_rpfl2multicast_flr_en_set
Lloh5:
	adrp	x8, _IFF_BROADCAST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IFF_BROADCAST@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_FILTER_ENABLED
	mov	x1, x0
	mov	x0, x19
	bl	_hw_atl_rpfl2broadcast_en_set
	ldr	w0, [x20]
	bl	_IS_FILTER_ENABLED
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _HW_ATL_A0_MAC_MIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HW_ATL_A0_MAC_MIN@GOTPAGEOFF]
	str	x0, [x8, #8]
Lloh10:
	ldr	w20, [x9]
Lloh11:
	adrp	x21, _HW_ATL_A0_MAC_MAX@GOTPAGE
Lloh12:
	ldr	x21, [x21, _HW_ATL_A0_MAC_MAX@GOTPAGEOFF]
	ldr	w9, [x21]
	cmp	w20, w9
	b.hs	LBB0_6
; %bb.1:
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w8, [x8]
	cmp	w20, w8
	cset	w1, ls
	b	LBB0_4
LBB0_3:
	mov	w1, #0
LBB0_4:
	mov	x0, x19
	mov	x2, x20
	bl	_hw_atl_rpfl2_uc_flr_en_set
	add	w20, w20, #1
	ldr	w8, [x21]
	cmp	w20, w8
	b.hs	LBB0_6
; %bb.5:
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_2
	b	LBB0_3
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_aq_hw_err_from_flags
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_IFF_MULTICAST,4,2              ; @IFF_MULTICAST
	.comm	_IFF_BROADCAST,4,2              ; @IFF_BROADCAST
	.comm	_HW_ATL_A0_MAC_MIN,4,2          ; @HW_ATL_A0_MAC_MIN
	.comm	_HW_ATL_A0_MAC_MAX,4,2          ; @HW_ATL_A0_MAC_MAX
	.no_dead_strip	_hw_atl_a0_hw_packet_filter_set
.subsections_via_symbols
