	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ifa_add_groups_to_map
_ifa_add_groups_to_map:                 ## @ifa_add_groups_to_map
	.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	%rdi, %r15
	xorl	%eax, %eax
	callq	_get_query_socket
	movl	%eax, %ebx
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-64(%rbp), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	movq	_SIOCGIFGROUP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	movl	%r14d, %edx
	callq	_ioctl
	cmpq	$-1, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movl	-80(%rbp), %r13d
	movl	%r13d, %edi
	sarl	$3, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -72(%rbp)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	(%r15), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r14d, %edx
	callq	_ioctl
	cmpq	$-1, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movq	-72(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.7:
	cmpl	$8, %r13d
	jb	LBB0_20
## %bb.8:
	leaq	L_.str.2(%rip), %r12
	movq	_FIND@GOTPCREL(%rip), %r15
                                        ## implicit-def: $r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	%ecx, (%r14)
	movq	(%rbx), %rdi
	callq	_strdup
	movq	_ENTER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movq	%r14, %rsi
	leaq	-56(%rbp), %rcx
	movq	_isgroup_map@GOTPCREL(%rip), %r8
	callq	_hsearch_r
	testq	%rax, %rax
	movq	%r12, %r15
	je	LBB0_16
LBB0_17:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	L_.str.2(%rip), %r12
LBB0_18:                                ##   in Loop: Header=BB0_9 Depth=1
	addq	$8, %rbx
	cmpl	$7, %r13d
	jbe	LBB0_19
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	$-8, %r13d
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	movq	%r14, %rsi
	leaq	-56(%rbp), %rcx
	movq	_isgroup_map@GOTPCREL(%rip), %r8
	callq	_hsearch_r
	testq	%rax, %rax
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r15, %r12
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_err
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	leaq	-104(%rbp), %r15
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_bzero
	movl	-88(%rbp), %edi
	movq	(%rbx), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_SIOCGIFGMEMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_ioctl
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	-104(%rbp), %ecx
	jmp	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_err
	jmp	LBB0_17
LBB0_19:
	movq	-72(%rbp), %rbx
LBB0_20:
	movq	%rbx, %rdi
	callq	_free
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_SIOCGIFGROUP,4,2               ## @SIOCGIFGROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCGIFGROUP"

L_.str.1:                               ## @.str.1
	.asciz	"calloc"

L_.str.2:                               ## @.str.2
	.asciz	"all"

	.comm	_FIND,4,2                       ## @FIND
	.comm	_isgroup_map,4,2                ## @isgroup_map
L_.str.3:                               ## @.str.3
	.asciz	"malloc"

	.comm	_SIOCGIFGMEMB,4,2               ## @SIOCGIFGMEMB
	.comm	_ENTER,4,2                      ## @ENTER
L_.str.4:                               ## @.str.4
	.asciz	"interface group query response map insert"

	.no_dead_strip	_ifa_add_groups_to_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ifa_add_groups_to_map
_ifa_add_groups_to_map:                 ; @ifa_add_groups_to_map
	.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, x0
	bl	_get_query_socket
	mov	x19, x0
	add	x0, sp, #40
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #56]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
Lloh3:
	adrp	x20, _SIOCGIFGROUP@GOTPAGE
Lloh4:
	ldr	x20, [x20, _SIOCGIFGROUP@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #40
	mov	x0, x19
	bl	_ioctl
	cmn	x0, #1
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	w26, [sp, #40]
	asr	w0, w26, #3
	mov	w1, #8
	bl	_calloc
	str	x0, [sp, #48]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_4:
	ldr	w1, [x20]
	add	x2, sp, #40
	mov	x0, x19
	bl	_ioctl
	cmn	x0, #1
	b.ne	LBB0_6
; %bb.5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	x20, [sp, #48]
	cbz	x20, LBB0_17
; %bb.7:
	cmp	w26, #8
	b.lo	LBB0_17
; %bb.8:
Lloh11:
	adrp	x21, l_.str.2@PAGE
Lloh12:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh13:
	adrp	x27, _FIND@GOTPAGE
Lloh14:
	ldr	x27, [x27, _FIND@GOTPAGEOFF]
Lloh15:
	adrp	x22, _isgroup_map@GOTPAGE
Lloh16:
	ldr	x22, [x22, _isgroup_map@GOTPAGEOFF]
Lloh17:
	adrp	x28, _SIOCGIFGMEMB@GOTPAGE
Lloh18:
	ldr	x28, [x28, _SIOCGIFGMEMB@GOTPAGEOFF]
Lloh19:
	adrp	x23, _ENTER@GOTPAGE
Lloh20:
	ldr	x23, [x23, _ENTER@GOTPAGEOFF]
                                        ; implicit-def: $x25
Lloh21:
	adrp	x24, l_.str.4@PAGE
Lloh22:
	add	x24, x24, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x20, x20, #8
	cmp	w26, #7
	b.ls	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #8
	ldr	x0, [x20]
	mov	x1, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x0, [x20]
	ldr	w2, [x27]
	add	x3, sp, #32
	mov	x1, x25
	mov	x4, x22
	bl	_hsearch_r
	cbnz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #4
	bl	_malloc
	mov	x25, x0
	cbnz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_err
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
	ldr	w0, [sp, #24]
	ldr	x1, [x20]
	mov	w2, #4
	bl	_strlcpy
	ldr	w1, [x28]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	ldr	w8, [sp, #8]
	cmp	x0, #0
	csel	w8, w8, wzr, eq
	str	w8, [x25]
	ldr	x0, [x20]
	bl	_strdup
	ldr	w2, [x23]
	add	x3, sp, #32
	mov	x1, x25
	mov	x4, x22
	bl	_hsearch_r
	cbnz	x0, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #1
	mov	x1, x24
	bl	_err
	b	LBB0_9
LBB0_16:
	ldr	x20, [sp, #48]
LBB0_17:
	mov	x0, x20
	bl	_free
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_SIOCGIFGROUP,4,2               ; @SIOCGIFGROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCGIFGROUP"

l_.str.1:                               ; @.str.1
	.asciz	"calloc"

l_.str.2:                               ; @.str.2
	.asciz	"all"

	.comm	_FIND,4,2                       ; @FIND
	.comm	_isgroup_map,4,2                ; @isgroup_map
l_.str.3:                               ; @.str.3
	.asciz	"malloc"

	.comm	_SIOCGIFGMEMB,4,2               ; @SIOCGIFGMEMB
	.comm	_ENTER,4,2                      ; @ENTER
l_.str.4:                               ; @.str.4
	.asciz	"interface group query response map insert"

	.no_dead_strip	_ifa_add_groups_to_map
.subsections_via_symbols
