	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getifgroups
_getifgroups:                           ## @getifgroups
	.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	%edi, %r15d
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_name@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	_SIOCGIFGROUP@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r15d, %edi
	movl	%r14d, %edx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.1:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.2:
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_4:
	movl	-64(%rbp), %r13d
	movl	%r13d, %edi
	sarl	$3, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_6:
	movl	(%rbx), %esi
	movl	%r15d, %edi
	movl	%r14d, %edx
	callq	_ioctl
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_8:
	movq	-56(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_18
## %bb.9:
	cmpl	$8, %r13d
	jb	LBB0_18
## %bb.10:
	leaq	L_.str.2(%rip), %r12
	leaq	L_.str.4(%rip), %r15
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%r14d
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_printf
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	$8, %rbx
	cmpl	$7, %r13d
	jbe	LBB0_16
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	$-8, %r13d
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_14
LBB0_16:
	testl	%r14d, %r14d
	je	LBB0_18
## %bb.17:
	movl	$10, %edi
	callq	_putchar
LBB0_18:
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_name,4,2                       ## @name
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_SIOCGIFGROUP,4,2               ## @SIOCGIFGROUP
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_ENOTTY,8,3                     ## @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCGIFGROUP"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"\tgroups:"

L_.str.4:                               ## @.str.4
	.asciz	" %s"

	.no_dead_strip	_getifgroups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getifgroups
_getifgroups:                           ; @getifgroups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #24]
Lloh0:
	adrp	x8, _name@GOTPAGE
Lloh1:
	ldr	x8, [x8, _name@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_strlcpy
Lloh6:
	adrp	x20, _SIOCGIFGROUP@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SIOCGIFGROUP@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _EINVAL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _ENOTTY@GOTPAGE
Lloh15:
	ldr	x10, [x10, _ENOTTY@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_18
; %bb.2:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_3:
	ldr	w22, [sp, #8]
	asr	w0, w22, #3
	mov	w1, #8
	bl	_calloc
	str	x0, [sp, #16]
	cbnz	x0, LBB0_5
; %bb.4:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_5:
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_ioctl
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_7:
	ldr	x23, [sp, #16]
	cbz	x23, LBB0_17
; %bb.8:
	cmp	w22, #8
	b.lo	LBB0_17
; %bb.9:
	mov	w24, #0
Lloh23:
	adrp	x19, l_.str.2@PAGE
Lloh24:
	add	x19, x19, l_.str.2@PAGEOFF
Lloh25:
	adrp	x20, l_.str.3@PAGE
Lloh26:
	add	x20, x20, l_.str.3@PAGEOFF
Lloh27:
	adrp	x21, l_.str.4@PAGE
Lloh28:
	add	x21, x21, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w24, w24, #1
	ldr	x8, [x23]
	str	x8, [sp]
	mov	x0, x21
	bl	_printf
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x23, x23, #8
	cmp	w22, #7
	b.ls	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #8
	ldr	x0, [x23]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w24, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x0, x20
	bl	_printf
	b	LBB0_10
LBB0_15:
	cbz	w24, LBB0_17
; %bb.16:
	mov	w0, #10
	bl	_putchar
LBB0_17:
	ldr	x0, [sp, #16]
	bl	_free
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_name,4,2                       ; @name
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_SIOCGIFGROUP,4,2               ; @SIOCGIFGROUP
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_ENOTTY,8,3                     ; @ENOTTY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCGIFGROUP"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"\tgroups:"

l_.str.4:                               ; @.str.4
	.asciz	" %s"

	.no_dead_strip	_getifgroups
.subsections_via_symbols
