	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnetgrent                    ## -- Begin function getnetgrent
	.p2align	4, 0x90
_getnetgrent:                           ## @getnetgrent
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_getnetgrent.ngrp_storage(%rip), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	_NGRP_STORAGE_INITIAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, _getnetgrent.ngrp_storage_size(%rip)
	callq	_malloc
	movq	%rax, _getnetgrent.ngrp_storage(%rip)
	testq	%rax, %rax
	je	LBB0_14
LBB0_2:
	movq	_ERANGE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$0, -44(%rbp)
	movq	_getnetgrent_dtab@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_NSDB_NETGROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_defaultsrc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	subq	$8, %rsp
	xorl	%edi, %edi
	leaq	L_.str(%rip), %rcx
	movq	%r13, %r9
	leaq	-44(%rbp), %rbx
	pushq	%rbx
	pushq	_getnetgrent.ngrp_storage_size(%rip)
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	callq	__nsdispatch
	addq	$48, %rsp
	movl	%eax, %r12d
	movq	_NS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$1, %ebx
	cmpl	%eax, %r12d
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	(%r14), %ecx
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_getnetgrent.ngrp_storage_size(%rip), %rsi
	addq	%rsi, %rsi
	movq	%rsi, _getnetgrent.ngrp_storage_size(%rip)
	movq	_getnetgrent.ngrp_storage(%rip), %rdi
	movq	_NGRP_STORAGE_MAX@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	ja	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_reallocf
	movq	%rax, _getnetgrent.ngrp_storage(%rip)
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_NS_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-44(%rbp), %ecx
	cmpl	%eax, %r12d
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	(%r14), %ecx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_getnetgrent.ngrp_storage(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	cmpl	%eax, %r12d
	jne	LBB0_13
	jmp	LBB0_15
LBB0_6:
	callq	_free
	movq	$0, _getnetgrent.ngrp_storage(%rip)
	movl	(%r14), %ecx
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_14:
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getnetgrent.ngrp_storage,8,3 ## @getnetgrent.ngrp_storage
.zerofill __DATA,__bss,_getnetgrent.ngrp_storage_size,8,3 ## @getnetgrent.ngrp_storage_size
	.comm	_NGRP_STORAGE_INITIAL,8,3       ## @NGRP_STORAGE_INITIAL
	.comm	_getnetgrent_dtab,4,2           ## @getnetgrent_dtab
	.comm	_NSDB_NETGROUP,4,2              ## @NSDB_NETGROUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"getnetgrent_r"

	.comm	_defaultsrc,4,2                 ## @defaultsrc
	.comm	_NS_SUCCESS,4,2                 ## @NS_SUCCESS
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_NGRP_STORAGE_MAX,8,3           ## @NGRP_STORAGE_MAX
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnetgrent                    ; -- Begin function getnetgrent
	.p2align	2
_getnetgrent:                           ; @getnetgrent
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	adrp	x24, _getnetgrent.ngrp_storage@PAGE
	ldr	x0, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	adrp	x25, _getnetgrent.ngrp_storage_size@PAGE
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _NGRP_STORAGE_INITIAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NGRP_STORAGE_INITIAL@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	str	x0, [x25, _getnetgrent.ngrp_storage_size@PAGEOFF]
	bl	_malloc
	str	x0, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	cbz	x0, LBB0_14
LBB0_2:
	add	x28, sp, #28
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
Lloh5:
	adrp	x27, _NS_SUCCESS@GOTPAGE
Lloh6:
	ldr	x27, [x27, _NS_SUCCESS@GOTPAGEOFF]
Lloh7:
	adrp	x26, _ERANGE@GOTPAGE
Lloh8:
	ldr	x26, [x26, _ERANGE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [sp, #28]
Lloh9:
	adrp	x8, _getnetgrent_dtab@GOTPAGE
Lloh10:
	ldr	x8, [x8, _getnetgrent_dtab@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _NSDB_NETGROUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NSDB_NETGROUP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x8, _defaultsrc@GOTPAGE
Lloh16:
	ldr	x8, [x8, _defaultsrc@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	ldr	x8, [x25, _getnetgrent.ngrp_storage_size@PAGEOFF]
	stp	x8, x28, [sp, #8]
	str	x0, [sp]
	mov	x0, #0
	mov	x3, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	__nsdispatch
	ldr	w8, [x27]
	cmp	w0, w8
	b.eq	LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	ldr	w9, [sp, #28]
	ldr	w10, [x26]
	cmp	w9, w10
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, _getnetgrent.ngrp_storage_size@PAGEOFF]
	lsl	x1, x8, #1
	str	x1, [x25, _getnetgrent.ngrp_storage_size@PAGEOFF]
Lloh18:
	adrp	x8, _NGRP_STORAGE_MAX@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NGRP_STORAGE_MAX@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x0, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	cmp	x1, x8
	b.hi	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_reallocf
	str	x0, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #28]
	ldr	w10, [x26]
	cmp	w23, w8
	ccmp	w9, w10, #0, ne
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	b	LBB0_3
LBB0_10:
	cmp	w23, w8
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #1
	b	LBB0_14
LBB0_12:
	bl	_free
	str	xzr, [x24, _getnetgrent.ngrp_storage@PAGEOFF]
	ldr	w9, [x26]
LBB0_13:
	mov	w0, #0
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	str	w9, [x8]
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getnetgrent.ngrp_storage,8,3 ; @getnetgrent.ngrp_storage
.zerofill __DATA,__bss,_getnetgrent.ngrp_storage_size,8,3 ; @getnetgrent.ngrp_storage_size
	.comm	_NGRP_STORAGE_INITIAL,8,3       ; @NGRP_STORAGE_INITIAL
	.comm	_getnetgrent_dtab,4,2           ; @getnetgrent_dtab
	.comm	_NSDB_NETGROUP,4,2              ; @NSDB_NETGROUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getnetgrent_r"

	.comm	_defaultsrc,4,2                 ; @defaultsrc
	.comm	_NS_SUCCESS,4,2                 ; @NS_SUCCESS
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_NGRP_STORAGE_MAX,8,3           ; @NGRP_STORAGE_MAX
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
