	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_login                       ## -- Begin function do_login
	.p2align	4, 0x90
_do_login:                              ## @do_login
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rsi), %r12
	xorl	%eax, %eax
	callq	_getpid
	movl	%eax, %r15d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movl	$4, -52(%rbp)
	xorl	%eax, %eax
	callq	_packet_connection_is_on_socket
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	callq	_packet_get_connection_in
	leaq	-48(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	movl	%eax, %edi
	callq	_getpeername
	testq	%rax, %rax
	jns	LBB0_3
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_debug
	movl	$255, %edi
	callq	_cleanup_exit
LBB0_3:
	movq	_use_privsep@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	movl	8(%rbx), %r13d
	movl	(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	4(%r12), %r12d
	movq	_utmp_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_options@GOTPCREL(%rip), %rax
	movl	8(%rax), %edx
	callq	_session_get_remote_name_or_ip
	movl	-52(%rbp), %ecx
	movl	%ecx, (%rsp)
	leaq	-48(%rbp), %r9
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	%eax, %r8d
	callq	_record_login
LBB0_5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_check_quietlogin
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_display_loginmsg
	xorl	%eax, %eax
	callq	_do_motd
LBB0_7:
	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	"getpeername: %.100s"

	.comm	_errno,4,2                      ## @errno
	.comm	_use_privsep,4,2                ## @use_privsep
	.comm	_utmp_len,4,2                   ## @utmp_len
	.comm	_options,16,3                   ## @options
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_login                       ; -- Begin function do_login
	.p2align	2
_do_login:                              ; @do_login
	.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	x19, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x25, [x1, #16]
	bl	_getpid
	mov	x21, x0
	mov	w23, #4
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	w23, [sp, #12]
	bl	_packet_connection_is_on_socket
	cbz	x0, LBB0_3
; %bb.1:
	bl	_packet_get_connection_in
	add	x1, sp, #8
	add	x2, sp, #12
	bl	_getpeername
	tbz	x0, #63, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x1, x0
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_debug
	mov	w0, #255
	bl	_cleanup_exit
LBB0_3:
Lloh5:
	adrp	x8, _use_privsep@GOTPAGE
Lloh6:
	ldr	x8, [x8, _use_privsep@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w23, [x20, #8]
	ldp	w25, w24, [x25]
Lloh8:
	adrp	x8, _utmp_len@GOTPAGE
Lloh9:
	ldr	x8, [x8, _utmp_len@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _options@GOTPAGE
Lloh12:
	ldr	x8, [x8, _options@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8, #8]
	mov	x0, x22
	bl	_session_get_remote_name_or_ip
	mov	x4, x0
	ldr	w6, [sp, #12]
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	mov	x3, x25
	bl	_record_login
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	_check_quietlogin
	cbnz	x0, LBB0_7
; %bb.6:
	bl	_display_loginmsg
	bl	_do_motd
LBB0_7:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"getpeername: %.100s"

	.comm	_errno,4,2                      ; @errno
	.comm	_use_privsep,4,2                ; @use_privsep
	.comm	_utmp_len,4,2                   ; @utmp_len
	.comm	_options,16,3                   ; @options
.subsections_via_symbols
