	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function extract_ugid
_extract_ugid:                          ## @extract_ugid
	.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	%rsi, %r15
	movq	$0, 16(%rsi)
	callq	_strdup
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movq	%r14, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	callq	_strsep
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	cmpb	$0, (%rbx)
	je	LBB0_4
## %bb.3:
	cmpb	$0, (%rax)
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_usage
LBB0_5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, (%r15)
	movq	_ULONG_MAX@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_usage
LBB0_7:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_11
## %bb.8:
	movq	%rbx, %rdi
	callq	_getpwnam
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rdx
	callq	_errx
LBB0_10:
	movq	(%r12), %rax
	movq	%rax, (%r15)
LBB0_11:
	movl	$1, 16(%r15)
	movq	-48(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, 8(%r15)
	cmpq	(%r13), %rax
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_usage
LBB0_13:
	movq	-56(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_17
## %bb.14:
	movq	-48(%rbp), %rdi
	callq	_getgrnam
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.15:
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_16:
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
LBB0_17:
	movl	$1, 20(%r15)
	movq	%r14, %rdi
	callq	_free
	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	":"

	.comm	_ULONG_MAX,8,3                  ## @ULONG_MAX
L_.str.1:                               ## @.str.1
	.asciz	"invalid user: %s"

L_.str.2:                               ## @.str.2
	.asciz	"invalid group: %s"

	.no_dead_strip	_extract_ugid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function extract_ugid
_extract_ugid:                          ; @extract_ugid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	str	xzr, [x1, #16]
	bl	_strdup
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	str	x20, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	bl	_strsep
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.2:
	ldrb	w9, [x21]
	cbz	w9, LBB0_4
; %bb.3:
	ldrb	w8, [x8]
	cbnz	w8, LBB0_5
LBB0_4:
	bl	_usage
LBB0_5:
	mov	x1, sp
	mov	x0, x21
	mov	w2, #10
	bl	_strtoul
	str	x0, [x19]
Lloh2:
	adrp	x23, _ULONG_MAX@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ULONG_MAX@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.6:
	bl	_usage
LBB0_7:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_getpwnam
	mov	x22, x0
	cbnz	x0, LBB0_10
; %bb.9:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_errx
LBB0_10:
	ldr	x8, [x22]
	str	x8, [x19]
LBB0_11:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	x0, [sp, #8]
	mov	x1, sp
	mov	w2, #10
	bl	_strtoul
	str	x0, [x19, #8]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
	bl	_usage
LBB0_13:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_17
; %bb.14:
	ldr	x0, [sp, #8]
	bl	_getgrnam
	mov	x21, x0
	cbnz	x0, LBB0_16
; %bb.15:
	ldr	x2, [sp, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_16:
	ldr	x8, [x21]
	str	x8, [x19, #8]
LBB0_17:
	mov	w8, #1
	str	w8, [x19, #20]
	mov	x0, x20
	bl	_free
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":"

	.comm	_ULONG_MAX,8,3                  ; @ULONG_MAX
l_.str.1:                               ; @.str.1
	.asciz	"invalid user: %s"

l_.str.2:                               ; @.str.2
	.asciz	"invalid group: %s"

	.no_dead_strip	_extract_ugid
.subsections_via_symbols
