	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getpw
_getpw:                                 ## @getpw
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_pwd_storage@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	jne	LBB0_3
## %bb.1:
	movq	_PWD_STORAGE_INITIAL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	%rax, %rdx
	movl	(%rbx), %eax
	movq	_pwd_storage_size@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	movq	_pwd_storage_size@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rcx
	movl	%r14d, %edi
	movq	_pwd@GOTPCREL(%rip), %rsi
	leaq	-48(%rbp), %r8
	callq	*%r13
	movl	%eax, %ebx
	movq	-48(%rbp), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %ebx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rdi
	callq	_free
	movl	(%r12), %edi
	addl	%edi, %edi
	movq	_PWD_STORAGE_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	jg	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%edi, (%r12)
	callq	_malloc
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%ecx, %ebx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r15), %rdx
	jmp	LBB0_4
LBB0_12:
	testl	%ebx, %ebx
	jne	LBB0_14
	jmp	LBB0_17
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_13:
	movq	$0, (%r15)
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%ebx, (%rcx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pwd_storage,8,3                ## @pwd_storage
	.comm	_PWD_STORAGE_INITIAL,4,2        ## @PWD_STORAGE_INITIAL
	.comm	_pwd_storage_size,4,2           ## @pwd_storage_size
	.comm	_pwd,4,2                        ## @pwd
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_PWD_STORAGE_MAX,4,2            ## @PWD_STORAGE_MAX
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_getpw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getpw
_getpw:                                 ; @getpw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _pwd_storage@GOTPAGE
Lloh1:
	ldr	x23, [x23, _pwd_storage@GOTPAGEOFF]
	ldr	x2, [x23]
Lloh2:
	adrp	x24, _pwd_storage_size@GOTPAGE
Lloh3:
	ldr	x24, [x24, _pwd_storage_size@GOTPAGEOFF]
	cbnz	x2, LBB0_3
; %bb.1:
Lloh4:
	adrp	x21, _PWD_STORAGE_INITIAL@GOTPAGE
Lloh5:
	ldr	x21, [x21, _PWD_STORAGE_INITIAL@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_malloc
	str	x0, [x23]
	cbz	x0, LBB0_13
; %bb.2:
	mov	x2, x0
	ldr	w8, [x21]
	str	w8, [x24]
LBB0_3:
	and	x20, x20, #0xffffffff
Lloh6:
	adrp	x21, _pwd@GOTPAGE
Lloh7:
	ldr	x21, [x21, _pwd@GOTPAGEOFF]
Lloh8:
	adrp	x25, _ERANGE@GOTPAGE
Lloh9:
	ldr	x25, [x25, _ERANGE@GOTPAGEOFF]
Lloh10:
	adrp	x26, _PWD_STORAGE_MAX@GOTPAGE
Lloh11:
	ldr	x26, [x26, _PWD_STORAGE_MAX@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x3, [x24]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x21
	blr	x19
	mov	x22, x0
	ldr	x0, [sp, #8]
	ldr	w8, [x25]
	cmp	x0, #0
	ccmp	w22, w8, #0, eq
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x23]
	bl	_free
	ldr	w8, [x24]
	lsl	w0, w8, #1
	ldr	w8, [x26]
	cmp	w0, w8
	b.gt	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w0, [x24]
	bl	_malloc
	str	x0, [x23]
	cbz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	ldr	w8, [x25]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x0, #0
	ccmp	w22, w8, #0, eq
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [x23]
	b	LBB0_4
LBB0_10:
	cbnz	w22, LBB0_12
	b	LBB0_13
LBB0_11:
	mov	x0, #0
	str	xzr, [x23]
	ldr	w22, [x25]
LBB0_12:
Lloh12:
	adrp	x8, _errno@GOTPAGE
Lloh13:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh14:
	str	w22, [x8]
LBB0_13:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_pwd_storage,8,3                ; @pwd_storage
	.comm	_PWD_STORAGE_INITIAL,4,2        ; @PWD_STORAGE_INITIAL
	.comm	_pwd_storage_size,4,2           ; @pwd_storage_size
	.comm	_pwd,4,2                        ; @pwd
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_PWD_STORAGE_MAX,4,2            ; @PWD_STORAGE_MAX
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_getpw
.subsections_via_symbols
