	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function efx_ptp_insert_multicast_filters
_efx_ptp_insert_multicast_filters:      ## @efx_ptp_insert_multicast_filters
	.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	%rdi, %r14
	movq	(%rdi), %r13
	movl	12(%r13), %edi
	xorl	%ebx, %ebx
	testl	%edi, %edi
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%r13)
	jne	LBB0_8
## %bb.2:
	movq	_EFX_FILTER_PRI_REQUIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_efx_channel_get_rx_queue
	movl	%eax, %edi
	callq	_efx_rx_queue_index
	leaq	-48(%rbp), %r15
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_efx_filter_init_rx
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_PTP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, %ebx
	movq	_PTP_EVENT_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_efx_filter_set_ipv4_local
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_IPPROTO_UDP@GOTPCREL(%rip), %r12
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_efx_filter_insert_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	movl	%ebx, 4(%r13)
	movq	_EFX_FILTER_PRI_REQUIRED@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movl	12(%r13), %edi
	callq	_efx_channel_get_rx_queue
	movl	%eax, %edi
	callq	_efx_rx_queue_index
	leaq	-48(%rbp), %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	callq	_efx_filter_init_rx
	movl	(%r12), %r12d
	movq	_PTP_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htonl
	movl	%eax, %ebx
	movq	_PTP_GENERAL_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	leaq	-48(%rbp), %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_efx_filter_set_ipv4_local
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
LBB0_7:
	movl	(%r15), %esi
	movl	4(%r13), %edx
	movq	%r14, %rdi
	callq	_efx_filter_remove_id_safe
	jmp	LBB0_8
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_efx_filter_insert_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.9:
	movl	%ebx, 8(%r13)
	movl	$1, (%r13)
	xorl	%ebx, %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EFX_FILTER_PRI_REQUIRED@GOTPCREL(%rip), %r15
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EFX_FILTER_PRI_REQUIRED,4,2    ## @EFX_FILTER_PRI_REQUIRED
	.comm	_IPPROTO_UDP,4,2                ## @IPPROTO_UDP
	.comm	_PTP_ADDRESS,4,2                ## @PTP_ADDRESS
	.comm	_PTP_EVENT_PORT,4,2             ## @PTP_EVENT_PORT
	.comm	_PTP_GENERAL_PORT,4,2           ## @PTP_GENERAL_PORT
	.no_dead_strip	_efx_ptp_insert_multicast_filters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function efx_ptp_insert_multicast_filters
_efx_ptp_insert_multicast_filters:      ; @efx_ptp_insert_multicast_filters
	.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	x19, x0
	ldr	x22, [x0]
	ldr	w0, [x22, #12]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	cbz	w8, LBB0_4
LBB0_2:
	mov	w20, #0
LBB0_3:
	mov	x0, x20
	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
LBB0_4:
Lloh0:
	adrp	x23, _EFX_FILTER_PRI_REQUIRED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EFX_FILTER_PRI_REQUIRED@GOTPAGEOFF]
	ldr	w20, [x23]
	bl	_efx_channel_get_rx_queue
	bl	_efx_rx_queue_index
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_efx_filter_init_rx
Lloh2:
	adrp	x24, _IPPROTO_UDP@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IPPROTO_UDP@GOTPAGEOFF]
	ldr	w20, [x24]
Lloh4:
	adrp	x25, _PTP_ADDRESS@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PTP_ADDRESS@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_htonl
	mov	x21, x0
Lloh6:
	adrp	x8, _PTP_EVENT_PORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTP_EVENT_PORT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_htons
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_efx_filter_set_ipv4_local
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.5:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_efx_filter_insert_filter
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.6:
	str	w20, [x22, #4]
	ldr	w20, [x23]
	ldr	w0, [x22, #12]
	bl	_efx_channel_get_rx_queue
	bl	_efx_rx_queue_index
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	w2, #0
	bl	_efx_filter_init_rx
	ldr	w20, [x24]
	ldr	w0, [x25]
	bl	_htonl
	mov	x21, x0
Lloh9:
	adrp	x8, _PTP_GENERAL_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PTP_GENERAL_PORT@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_htons
	mov	x3, x0
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_efx_filter_set_ipv4_local
	mov	x20, x0
	cbz	w0, LBB0_8
LBB0_7:
	ldr	w1, [x23]
	ldr	w2, [x22, #4]
	mov	x0, x19
	bl	_efx_filter_remove_id_safe
	b	LBB0_3
LBB0_8:
	mov	w21, #1
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_efx_filter_insert_filter
	mov	x20, x0
	tbnz	w0, #31, LBB0_7
; %bb.9:
	str	w20, [x22, #8]
	str	w21, [x22]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EFX_FILTER_PRI_REQUIRED,4,2    ; @EFX_FILTER_PRI_REQUIRED
	.comm	_IPPROTO_UDP,4,2                ; @IPPROTO_UDP
	.comm	_PTP_ADDRESS,4,2                ; @PTP_ADDRESS
	.comm	_PTP_EVENT_PORT,4,2             ; @PTP_EVENT_PORT
	.comm	_PTP_GENERAL_PORT,4,2           ; @PTP_GENERAL_PORT
	.no_dead_strip	_efx_ptp_insert_multicast_filters
.subsections_via_symbols
