	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_foreach_ifaddr              ## -- Begin function pg_foreach_ifaddr
	.p2align	4, 0x90
_pg_foreach_ifaddr:                     ## @pg_foreach_ifaddr
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	movq	_AF_INET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SOCK_DGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	movq	_PGINVALID_SOCKET@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.1:
	movl	$1024, %r15d                    ## imm = 0x400
	xorl	%r13d, %r13d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpq	$102399, %r15                   ## imm = 0x18FFF
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r14
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1024(%r15), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	%rax, %r13
	leaq	-104(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r13, -104(%rbp)
	movq	%rbx, -96(%rbp)
	movq	_SIOCGIFCONF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_7
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	-96(%rbp), %r12
	cmpq	$101375, %r15                   ## imm = 0x18BFF
	ja	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	%r13, %r14
	cmpq	%r15, %r12
	movq	%rbx, %r15
	jae	LBB0_4
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	$1024, %r15                     ## imm = 0x400
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.8:
	movq	%r13, %rdi
	callq	_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_close
	movl	$-1, %edx
	jmp	LBB0_19
LBB0_5:
	movq	%r14, %rdi
	callq	_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_close
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_errno@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$-1, %edx
	jmp	LBB0_19
LBB0_11:
	movq	-96(%rbp), %r12
LBB0_12:
	addq	%r13, %r12
	movq	-88(%rbp), %rbx
	cmpq	%r12, %rbx
	jae	LBB0_18
## %bb.13:
	leaq	-80(%rbp), %r14
	leaq	-72(%rbp), %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rbx), %edi
	callq	__SIZEOF_ADDR_IFREQ
	cltq
	addq	%rax, %rbx
	cmpq	%r12, %rbx
	jae	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_SIOCGIFADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_SIOCGIFNETMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r15, %rcx
	callq	_run_ifaddr_callback
	jmp	LBB0_17
LBB0_18:
	movq	%r13, %rdi
	callq	_free
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_close
	xorl	%edx, %edx
LBB0_19:
	movl	%edx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ## @SOCK_DGRAM
	.comm	_PGINVALID_SOCKET,8,3           ## @PGINVALID_SOCKET
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.comm	_errno,8,3                      ## @errno
	.comm	_SIOCGIFCONF,4,2                ## @SIOCGIFCONF
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_SIOCGIFADDR,4,2                ## @SIOCGIFADDR
	.comm	_SIOCGIFNETMASK,4,2             ## @SIOCGIFNETMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pg_foreach_ifaddr              ; -- Begin function pg_foreach_ifaddr
	.p2align	2
_pg_foreach_ifaddr:                     ; @pg_foreach_ifaddr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _AF_INET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AF_INET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SOCK_DGRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_DGRAM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
Lloh6:
	adrp	x8, _PGINVALID_SOCKET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGINVALID_SOCKET@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_20
LBB0_2:
	mov	x19, x0
	mov	x22, #0
	mov	w26, #1024
	mov	w27, #35840
	movk	w27, #1, lsl #16
	add	x28, sp, #40
Lloh9:
	adrp	x25, _SIOCGIFCONF@GOTPAGE
Lloh10:
	ldr	x25, [x25, _SIOCGIFCONF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	x8, x27, #1024
	cmp	x26, x8
	b.hs	LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x22
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x24, x26, #1024
	mov	x0, x23
	mov	x1, x24
	bl	_realloc
	cbz	x0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x22, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	stp	x22, x24, [sp, #40]
	ldr	w1, [x25]
	str	x28, [sp]
	mov	x0, x19
	bl	_ioctl
	tbnz	x0, #63, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x8, [sp, #48]
	cmp	x26, x27
	b.hs	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x9, x26, #1024
	mov	x23, x22
	cmp	x8, x26
	mov	x26, x9
	b.hs	LBB0_5
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _EINVAL@GOTPAGE
Lloh15:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x26, x26, #1024
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.10:
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_close
	mov	w0, #-1
	b	LBB0_20
LBB0_11:
	mov	x0, x23
	bl	_free
	mov	x0, x19
	bl	_close
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _errno@GOTPAGE
Lloh21:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
	mov	w0, #-1
	b	LBB0_20
LBB0_12:
	ldr	x8, [sp, #48]
LBB0_13:
	str	w21, [sp, #20]                  ; 4-byte Folded Spill
	ldr	x23, [sp, #56]
	add	x24, x22, x8
	cmp	x23, x24
	b.hs	LBB0_19
; %bb.14:
	mov	x21, x20
	add	x25, sp, #32
	mov	w26, #4
	add	x27, sp, #24
Lloh23:
	adrp	x28, _SIOCGIFADDR@GOTPAGE
Lloh24:
	ldr	x28, [x28, _SIOCGIFADDR@GOTPAGEOFF]
Lloh25:
	adrp	x20, _SIOCGIFNETMASK@GOTPAGE
Lloh26:
	ldr	x20, [x20, _SIOCGIFNETMASK@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w0, [x23]
	bl	__SIZEOF_ADDR_IFREQ
	add	x23, x23, w0, sxtw
	cmp	x23, x24
	b.hs	LBB0_19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	add	x0, sp, #24
	mov	x1, x23
	mov	w2, #4
	bl	_memcpy
	ldr	w1, [x28]
	stp	x25, x26, [sp]
	mov	x0, x19
	bl	_ioctl
	cbnz	x0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x20]
	stp	x27, x26, [sp]
	mov	x0, x19
	bl	_ioctl
	cbnz	x0, LBB0_15
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x2, sp, #32
	add	x3, sp, #24
	ldr	w0, [sp, #20]                   ; 4-byte Folded Reload
	mov	x1, x21
	bl	_run_ifaddr_callback
	b	LBB0_15
LBB0_19:
	mov	x0, x22
	bl	_free
	mov	x0, x19
	bl	_close
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_SOCK_DGRAM,4,2                 ; @SOCK_DGRAM
	.comm	_PGINVALID_SOCKET,8,3           ; @PGINVALID_SOCKET
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.comm	_errno,8,3                      ; @errno
	.comm	_SIOCGIFCONF,4,2                ; @SIOCGIFCONF
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_SIOCGIFADDR,4,2                ; @SIOCGIFADDR
	.comm	_SIOCGIFNETMASK,4,2             ; @SIOCGIFNETMASK
.subsections_via_symbols
