	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getipv4sourcefilter            ## -- Begin function getipv4sourcefilter
	.p2align	4, 0x90
_getipv4sourcefilter:                   ## @getipv4sourcefilter
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r15
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r12d
	movl	%edi, %r13d
	xorl	%edi, %edi
	cmpl	$-1, %r13d
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	$0, (%r15)
	movl	%r14d, %edi
	callq	_ntohl
	movl	%eax, %edi
	callq	_IN_MULTICAST
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_5
## %bb.2:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %r12d
LBB0_19:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%r12d, %edi
	callq	___inaddr_to_index
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r12
	leaq	-88(%rbp), %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movl	$4, -88(%rbp)
	movl	%r14d, -84(%rbp)
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.8:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_10
## %bb.9:
	movq	$0, (%rsp)
	leaq	-88(%rbp), %rdx
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$4, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	_getsourcefilter
	movl	%eax, %r12d
	jmp	LBB0_19
LBB0_6:
	movq	_EADDRNOTAVAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$24, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	%rax, (%rsp)
	leaq	-88(%rbp), %rdx
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$4, %ecx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	_getsourcefilter
	movl	%eax, %r12d
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.13:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_MIN
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	addq	$16, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	incq	%r14
	movq	(%r15), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_MIN
	addq	$24, %rbx
	cmpq	%rax, %r14
	jae	LBB0_18
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	movq	_AF_INET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-12(%rbx), %eax
	movl	%eax, (%r13)
	addq	$4, %r13
	jmp	LBB0_17
LBB0_11:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_18:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_EADDRNOTAVAIL,4,2              ## @EADDRNOTAVAIL
	.comm	_AF_INET,8,3                    ## @AF_INET
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getipv4sourcefilter            ; -- Begin function getipv4sourcefilter
	.p2align	2
_getipv4sourcefilter:                   ; @getipv4sourcefilter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x5
	mov	x19, x4
	mov	x22, x3
	mov	x24, x2
	mov	x25, x1
	mov	x23, x0
	cmn	w0, #1
	cset	w0, ne
	bl	_assert
	cmp	x22, #0
	cset	w0, ne
	bl	_assert
	cmp	x19, #0
	cset	w0, ne
	bl	_assert
	ldr	x21, [x19]
	str	xzr, [x19]
	mov	x0, x24
	bl	_ntohl
	bl	_IN_MULTICAST
	cbz	w0, LBB0_3
; %bb.1:
	cbnz	x20, LBB0_6
; %bb.2:
	cbz	x21, LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
Lloh2:
	adrp	x9, _errno@GOTPAGE
Lloh3:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh4:
	str	w8, [x9]
	mov	w22, #-1
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	mov	x0, x25
	bl	___inaddr_to_index
	cbz	x0, LBB0_10
; %bb.7:
	mov	x25, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh5:
	adrp	x26, _AF_INET@GOTPAGE
Lloh6:
	ldr	x26, [x26, _AF_INET@GOTPAGEOFF]
	ldr	x8, [x26]
	str	x8, [sp, #16]
	mov	w8, #4
	stp	w8, w24, [sp, #8]
	cbnz	x20, LBB0_11
; %bb.8:
	cbnz	x21, LBB0_11
; %bb.9:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x25
	mov	w3, #4
	mov	x4, x22
	mov	x5, x19
	mov	x6, #0
	bl	_getsourcefilter
	mov	x22, x0
	b	LBB0_5
LBB0_10:
Lloh7:
	adrp	x8, _EADDRNOTAVAIL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EADDRNOTAVAIL@GOTPAGEOFF]
	b	LBB0_4
LBB0_11:
	mov	x0, x21
	mov	w1, #24
	bl	_calloc
	cbz	x0, LBB0_18
; %bb.12:
	mov	x24, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x25
	mov	w3, #4
	mov	x4, x22
	mov	x5, x19
	mov	x6, x24
	bl	_getsourcefilter
	mov	x22, x0
	ldr	x1, [x19]
	cbz	x1, LBB0_5
; %bb.13:
	mov	x0, x21
	bl	_MIN
	cbz	x0, LBB0_19
; %bb.14:
	mov	x23, #0
	add	x25, x24, #16
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x23, x23, #1
	ldr	x1, [x19]
	mov	x0, x21
	bl	_MIN
	add	x25, x25, #24
	cmp	x23, x0
	b.hs	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	w8, [x25, #-12]
	str	w8, [x20], #4
	b	LBB0_15
LBB0_18:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_19:
	mov	x0, x24
	bl	_free
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_EADDRNOTAVAIL,4,2              ; @EADDRNOTAVAIL
	.comm	_AF_INET,8,3                    ; @AF_INET
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
