	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_groups            ## -- Begin function ifconfig_get_groups
	.p2align	4, 0x90
_ifconfig_get_groups:                   ## @ifconfig_get_groups
	.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	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	16(%rbx), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_strlcpy
	movq	_AF_LOCAL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SIOCGIFGROUP@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_ifconfig_ioctlwrap
	cmpl	$-1, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %r15d
	movl	%r15d, %edi
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_bzero
	movl	(%r12), %esi
	movl	(%r13), %edx
	movq	%r14, %rdi
	movq	%rbx, %rcx
	callq	_ifconfig_ioctlwrap
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$-1, %ecx
	sete	%al
	jmp	LBB0_5
LBB0_1:
	movq	(%r14), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setne	%cl
	movq	_ENOTTY@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	setne	%al
	andb	%cl, %al
	movzbl	%al, %eax
LBB0_5:
	negl	%eax
	jmp	LBB0_6
LBB0_3:
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_AF_LOCAL,4,2                   ## @AF_LOCAL
	.comm	_SIOCGIFGROUP,4,2               ## @SIOCGIFGROUP
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOTTY,8,3                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ifconfig_get_groups            ; -- Begin function ifconfig_get_groups
	.p2align	2
_ifconfig_get_groups:                   ; @ifconfig_get_groups
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x21
	bl	_strlcpy
Lloh3:
	adrp	x22, _AF_LOCAL@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AF_LOCAL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _SIOCGIFGROUP@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SIOCGIFGROUP@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x19
	bl	_ifconfig_ioctlwrap
	cmn	w0, #1
	b.eq	LBB0_3
; %bb.1:
	ldr	w21, [x19]
	mov	x0, x21
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
; %bb.2:
	mov	x1, x21
	bl	_bzero
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x19
	bl	_ifconfig_ioctlwrap
	cmn	w0, #1
	csetm	w0, eq
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20]
Lloh7:
	adrp	x9, _EINVAL@GOTPAGE
Lloh8:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh10:
	adrp	x9, _ENOTTY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ENOTTY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, ne
	sbfx	w0, w8, #0, #1
	b	LBB0_5
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_AF_LOCAL,4,2                   ; @AF_LOCAL
	.comm	_SIOCGIFGROUP,4,2               ; @SIOCGIFGROUP
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOTTY,8,3                     ; @ENOTTY
.subsections_via_symbols
