	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap_getpwcommon_r
_cap_getpwcommon_r:                     ## @cap_getpwcommon_r
	.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	%r9, %r14
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%edi, %edi
	callq	_nvlist_create
	movq	%rax, %r13
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%r15, %rdx
	callq	_nvlist_add_string
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_27
LBB0_6:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nvlist_add_number
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	_nvlist_add_string
LBB0_8:
	movq	24(%rbp), %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_cap_xfer_nvlist
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rax, %r12
	leaq	L_.str.9(%rip), %rsi
	movq	%rax, %rdi
	callq	_nvlist_get_number
	movq	%rax, %rbx
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.10:
	movq	%r12, %rdi
	callq	_nvlist_destroy
	movq	24(%rbp), %rax
	movq	$0, (%rax)
	jmp	LBB0_26
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %r14
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	callq	_assert
	movq	$0, (%rbx)
	movl	(%r14), %ebx
	jmp	LBB0_26
LBB0_12:
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	callq	_nvlist_exists_string
	testl	%eax, %eax
	je	LBB0_16
## %bb.13:
	movq	16(%rbp), %r13
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.15:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	setne	%r15b
	jmp	LBB0_19
LBB0_18:
	xorl	%r15d, %r15d
LBB0_19:
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_passwd_unpack
	movl	%eax, %ebx
	testb	%r15b, %r15b
	je	LBB0_25
## %bb.20:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_25
## %bb.21:
	movq	_gbufsize@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	_gbuffer@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	(%r15), %r13
	sete	%dil
	callq	_assert
	xorl	%eax, %eax
	callq	_passwd_resize
	testl	%eax, %eax
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movq	_gbuffer@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	(%r15), %r13
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	%r13, %rcx
	callq	_passwd_unpack
	movl	%eax, %ebx
	movq	_ERANGE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_22
	jmp	LBB0_25
LBB0_16:
	movq	%r12, %rdi
	callq	_nvlist_destroy
	movq	24(%rbp), %rax
	movq	$0, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_24:
	movl	%eax, %ebx
LBB0_25:
	movq	%r12, %rdi
	callq	_nvlist_destroy
	xorl	%eax, %eax
	testl	%ebx, %ebx
	cmoveq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	24(%rbp), %rcx
	movq	%rax, (%rcx)
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	xorl	%eax, %eax
	callq	_abort
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"getpwnam"

L_.str.4:                               ## @.str.4
	.asciz	"getpwnam_r"

L_.str.5:                               ## @.str.5
	.asciz	"name"

L_.str.6:                               ## @.str.6
	.asciz	"getpwuid"

L_.str.7:                               ## @.str.7
	.asciz	"getpwuid_r"

L_.str.8:                               ## @.str.8
	.asciz	"uid"

	.comm	_errno,8,3                      ## @errno
L_.str.9:                               ## @.str.9
	.asciz	"error"

L_.str.10:                              ## @.str.10
	.asciz	"pw_name"

	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_gbuffer,8,3                    ## @gbuffer
	.comm	_gbufsize,8,3                   ## @gbufsize
	.no_dead_strip	_cap_getpwcommon_r
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap_getpwcommon_r
_cap_getpwcommon_r:                     ; @cap_getpwcommon_r
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x21, x6
	mov	x22, x5
	mov	x20, x4
	mov	x26, x3
	mov	x27, x2
	mov	x24, x1
	mov	x23, x0
	mov	w0, #0
	bl	_nvlist_create
	mov	x25, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_nvlist_add_string
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.1:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_8
; %bb.2:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.3:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_7
; %bb.4:
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbnz	x0, LBB0_26
LBB0_6:
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x25
	mov	x2, x26
	bl	_nvlist_add_number
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x25
	mov	x2, x27
	bl	_nvlist_add_string
LBB0_8:
	mov	x0, x23
	mov	x1, x25
	bl	_cap_xfer_nvlist
	cbz	x0, LBB0_11
; %bb.9:
	mov	x23, x0
Lloh18:
	adrp	x1, l_.str.9@PAGE
Lloh19:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_nvlist_get_number
	mov	x25, x0
	cbz	w25, LBB0_12
; %bb.10:
	mov	x0, x23
	bl	_nvlist_destroy
	str	xzr, [x19]
	b	LBB0_25
LBB0_11:
Lloh20:
	adrp	x20, _errno@GOTPAGE
Lloh21:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [x19]
	ldr	w25, [x20]
	b	LBB0_25
LBB0_12:
Lloh22:
	adrp	x1, l_.str.10@PAGE
Lloh23:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x23
	bl	_nvlist_exists_string
	cbz	w0, LBB0_24
; %bb.13:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.14:
Lloh26:
	adrp	x1, l_.str.4@PAGE
Lloh27:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.15:
Lloh28:
	adrp	x1, l_.str.7@PAGE
Lloh29:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cmp	x0, #0
	cset	w24, ne
	b	LBB0_17
LBB0_16:
	mov	w24, #0
LBB0_17:
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_passwd_unpack
	mov	x25, x0
	cbz	w24, LBB0_23
; %bb.18:
Lloh30:
	adrp	x24, _ERANGE@GOTPAGE
Lloh31:
	ldr	x24, [x24, _ERANGE@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w25, w8
	b.ne	LBB0_23
; %bb.19:
Lloh32:
	adrp	x26, _gbuffer@GOTPAGE
Lloh33:
	ldr	x26, [x26, _gbuffer@GOTPAGEOFF]
Lloh34:
	adrp	x27, _gbufsize@GOTPAGE
Lloh35:
	ldr	x27, [x27, _gbufsize@GOTPAGEOFF]
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26]
	cmp	x22, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x27]
	cmp	x21, x8
	cset	w0, eq
	bl	_assert
	bl	_passwd_resize
	cbnz	w0, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x22, [x26]
	ldr	x21, [x27]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_passwd_unpack
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_20
LBB0_22:
	mov	x25, x0
LBB0_23:
	mov	x0, x23
	bl	_nvlist_destroy
	cmp	w25, #0
	csel	x8, x20, xzr, eq
	str	x8, [x19]
	b	LBB0_25
LBB0_24:
	mov	x0, x23
	bl	_nvlist_destroy
	mov	w25, #0
	str	xzr, [x19]
LBB0_25:
	mov	x0, x25
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	_abort
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"getpwnam"

l_.str.4:                               ; @.str.4
	.asciz	"getpwnam_r"

l_.str.5:                               ; @.str.5
	.asciz	"name"

l_.str.6:                               ; @.str.6
	.asciz	"getpwuid"

l_.str.7:                               ; @.str.7
	.asciz	"getpwuid_r"

l_.str.8:                               ; @.str.8
	.asciz	"uid"

	.comm	_errno,8,3                      ; @errno
l_.str.9:                               ; @.str.9
	.asciz	"error"

l_.str.10:                              ; @.str.10
	.asciz	"pw_name"

	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_gbuffer,8,3                    ; @gbuffer
	.comm	_gbufsize,8,3                   ; @gbufsize
	.no_dead_strip	_cap_getpwcommon_r
.subsections_via_symbols
