	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function log_in
_log_in:                                ## @log_in
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_Flags@GOTPCREL(%rip), %rax
	movq	_AC_T@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	12(%r14), %edi
	callq	_do_tty
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movq	_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_CurUtmpx@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_SLIST_INSERT_HEAD
	movl	12(%rbx), %edi
	movl	20(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	movl	8(%rbx), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r14), %eax
	movl	%eax, (%rbx)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Flags,4,2                      ## @Flags
	.comm	_AC_T,4,2                       ## @AC_T
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

	.comm	_CurUtmpx,4,2                   ## @CurUtmpx
	.comm	_next,4,2                       ## @next
	.comm	_Console,4,2                    ## @Console
	.comm	_FirstTime,4,2                  ## @FirstTime
	.no_dead_strip	_log_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function log_in
_log_in:                                ; @log_in
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _Flags@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Flags@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _AC_T@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC_T@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x19, #12]
	bl	_do_tty
	cbz	w0, LBB0_5
LBB0_2:
	mov	w0, #16
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
Lloh8:
	adrp	x8, _next@GOTPAGE
Lloh9:
	ldr	x8, [x8, _next@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x0, _CurUtmpx@GOTPAGE
Lloh12:
	ldr	x0, [x0, _CurUtmpx@GOTPAGEOFF]
	mov	x1, x20
	bl	_SLIST_INSERT_HEAD
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #20]
	mov	w2, #4
	bl	_strlcpy
	ldr	w0, [x20, #8]
	ldr	w1, [x19, #16]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x19, #8]
	str	w8, [x20]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_Flags,4,2                      ; @Flags
	.comm	_AC_T,4,2                       ; @AC_T
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

	.comm	_CurUtmpx,4,2                   ; @CurUtmpx
	.comm	_next,4,2                       ; @next
	.comm	_Console,4,2                    ; @Console
	.comm	_FirstTime,4,2                  ; @FirstTime
	.no_dead_strip	_log_in
.subsections_via_symbols
