	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getloginname
_getloginname:                          ## @getloginname
	.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
	movq	_MAXLOGNAME@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	leaq	-1(%rbx), %r13
	movq	_EOF@GOTPCREL(%rip), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %r15
	jne	LBB0_11
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	_prompt@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str.1(%rip), %rdi
	callq	_printf
	xorl	%eax, %eax
	callq	_getchar
	movq	%rbx, %r15
	cmpl	$10, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	xorl	%eax, %eax
	callq	_getchar
	movl	%eax, %ebx
	cmpl	$10, %eax
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%r14), %ebx
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	_username@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_badlogin
	movq	_NO_SLEEP_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_bail
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movslq	(%r12), %rax
	addq	%r13, %rax
	cmpq	%rax, %r15
	jae	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movb	%bl, (%r15)
	incq	%r15
	jmp	LBB0_9
LBB0_11:
	movb	$0, (%r15)
	cmpb	$45, (%rbx)
	jne	LBB0_13
## %bb.12:
	movq	_pam_silent@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_memmove
	jmp	LBB0_14
LBB0_13:
	movq	_PAM_SILENT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_pam_silent@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLOGNAME,4,2                 ## @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc()"

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

	.comm	_prompt,8,3                     ## @prompt
	.comm	_EOF,4,2                        ## @EOF
	.comm	_username,4,2                   ## @username
	.comm	_NO_SLEEP_EXIT,4,2              ## @NO_SLEEP_EXIT
	.comm	_pam_silent,8,3                 ## @pam_silent
	.comm	_PAM_SILENT,8,3                 ## @PAM_SILENT
	.no_dead_strip	_getloginname
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getloginname
_getloginname:                          ; @getloginname
	.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
Lloh0:
	adrp	x22, _MAXLOGNAME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAXLOGNAME@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	sub	x23, x19, #1
Lloh4:
	adrp	x24, _prompt@GOTPAGE
Lloh5:
	ldr	x24, [x24, _prompt@GOTPAGEOFF]
Lloh6:
	adrp	x25, _EOF@GOTPAGE
Lloh7:
	ldr	x25, [x25, _EOF@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str.1@PAGE
Lloh9:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh10:
	adrp	x26, _username@GOTPAGE
Lloh11:
	ldr	x26, [x26, _username@GOTPAGEOFF]
Lloh12:
	adrp	x27, _NO_SLEEP_EXIT@GOTPAGE
Lloh13:
	ldr	x27, [x27, _NO_SLEEP_EXIT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x28, x19
	b.ne	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	x1, [x24]
	mov	x0, x20
	bl	_printf
	bl	_getchar
	mov	x28, x19
	cmp	w0, #10
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	x28, x19
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	bl	_getchar
	mov	x21, x0
	cmp	w0, #10
	b.eq	LBB0_3
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x25]
	cmp	w21, w8
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w0, [x26]
	bl	_badlogin
	ldr	w0, [x27]
	mov	w1, #0
	bl	_bail
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=2
	ldrsw	x8, [x22]
	add	x8, x23, x8
	cmp	x28, x8
	b.hs	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	strb	w21, [x28], #1
	b	LBB0_6
LBB0_11:
	strb	wzr, [x28]
	ldrb	w8, [x19]
	cmp	w8, #45
	b.ne	LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _pam_silent@GOTPAGE
Lloh15:
	ldr	x8, [x8, _pam_silent@GOTPAGEOFF]
Lloh16:
	str	xzr, [x8]
	add	x20, x19, #1
	mov	x0, x19
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_memmove
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _PAM_SILENT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PAM_SILENT@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _pam_silent@GOTPAGE
Lloh21:
	ldr	x9, [x9, _pam_silent@GOTPAGEOFF]
Lloh22:
	str	x8, [x9]
LBB0_14:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotStr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLOGNAME,4,2                 ; @MAXLOGNAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc()"

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

	.comm	_prompt,8,3                     ; @prompt
	.comm	_EOF,4,2                        ; @EOF
	.comm	_username,4,2                   ; @username
	.comm	_NO_SLEEP_EXIT,4,2              ; @NO_SLEEP_EXIT
	.comm	_pam_silent,8,3                 ; @pam_silent
	.comm	_PAM_SILENT,8,3                 ; @PAM_SILENT
	.no_dead_strip	_getloginname
.subsections_via_symbols
