	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifa_grouplookup                ## -- Begin function ifa_grouplookup
	.p2align	4, 0x90
_ifa_grouplookup:                       ## @ifa_grouplookup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_get_query_socket
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_is_a_group
	testl	%eax, %eax
	je	LBB0_15
## %bb.1:
	movl	%eax, %r12d
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	callq	_bzero
	movl	-48(%rbp), %edi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_strlcpy
	movl	%r12d, -64(%rbp)
	movl	$1, %edi
	movl	%r12d, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_3:
	movq	_SIOCGIFGMEMB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movl	%r13d, %edi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_5:
	movq	-56(%rbp), %rbx
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.6:
	cmpl	$4, %r12d
	jb	LBB0_14
## %bb.7:
	xorl	%r15d, %r15d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	cmpl	$3, %r12d
	jbe	LBB0_13
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	addl	$-4, %r12d
	movl	(%rbx), %edi
	movl	%r14d, %esi
	callq	_ifa_lookup
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	testq	%r15, %r15
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r15
	jmp	LBB0_12
LBB0_13:
	movq	-56(%rbp), %rbx
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
LBB0_15:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calloc"

	.comm	_SIOCGIFGMEMB,4,2               ## @SIOCGIFGMEMB
L_.str.1:                               ## @.str.1
	.asciz	"SIOCGIFGMEMB"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifa_grouplookup                ; -- Begin function ifa_grouplookup
	.p2align	2
_ifa_grouplookup:                       ; @ifa_grouplookup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x22, x0
	bl	_get_query_socket
	mov	x21, x0
	mov	x0, x22
	bl	_is_a_group
	cbz	w0, LBB0_13
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #24
	bl	_bzero
	ldr	w0, [sp, #24]
	mov	x1, x22
	mov	w2, #4
	bl	_strlcpy
	str	w20, [sp, #8]
	mov	w0, #1
	mov	x1, x20
	bl	_calloc
	str	x0, [sp, #16]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
Lloh2:
	adrp	x8, _SIOCGIFGMEMB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGIFGMEMB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	mov	x21, #0
	ldr	x22, [sp, #16]
	cbz	x22, LBB0_15
; %bb.6:
	cmp	w20, #4
	b.lo	LBB0_15
; %bb.7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x21]
	str	x0, [x8]
	ldr	x8, [x0]
	str	x8, [x21]
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #4
	cmp	w20, #3
	b.ls	LBB0_14
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w20, w20, #4
	ldr	w0, [x22]
	mov	x1, x19
	bl	_ifa_lookup
	cbz	x0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cbnz	x21, LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x21, x0
	b	LBB0_9
LBB0_13:
	mov	x21, #0
	b	LBB0_16
LBB0_14:
	ldr	x22, [sp, #16]
LBB0_15:
	mov	x0, x22
	bl	_free
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calloc"

	.comm	_SIOCGIFGMEMB,4,2               ; @SIOCGIFGMEMB
l_.str.1:                               ; @.str.1
	.asciz	"SIOCGIFGMEMB"

.subsections_via_symbols
