	.file	"extr_login_access.c_login_access.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"%s: line %d: missing newline or line too long"
	.section	.rodata.str1.1
.LC2:
	.string	"%s: line %d: bad field count"
.LC3:
	.string	"%s: line %d: bad first field"
.LC4:
	.string	"cannot open %s: %m"
	.text
	.p2align 4
	.globl	login_access
	.type	login_access, @function
login_access:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BUFSIZ[rip]
	mov	rcx, rsp
	mov	DWORD PTR -100[rbp], eax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L41:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L41
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L42
.L4:
	mov	QWORD PTR -72[rbp], rdi
	mov	eax, DWORD PTR NO[rip]
	mov	rbx, rsp
	mov	edi, DWORD PTR _PATH_LOGACCESS[rip]
	mov	QWORD PTR -80[rbp], rsi
	lea	rsi, .LC0[rip]
	mov	DWORD PTR -104[rbp], eax
	call	fopen@PLT
	mov	r15, rax
	test	rax, rax
	je	.L43
	mov	ecx, DWORD PTR -104[rbp]
	test	ecx, ecx
	je	.L44
.L15:
	mov	rdi, r15
	call	fclose@PLT
.L18:
	mov	edx, DWORD PTR -104[rbp]
	mov	eax, 1
	test	edx, edx
	je	.L1
	xor	eax, eax
	cmp	BYTE PTR [rbx], 43
	sete	al
.L1:
	mov	rcx, QWORD PTR -56[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L45
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L43:
	.cfi_restore_state
	mov	rax, QWORD PTR ENOENT[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L18
	mov	edx, DWORD PTR _PATH_LOGACCESS[rip]
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	syslog@PLT
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L44:
	lea	rax, -88[rbp]
	xor	r13d, r13d
	mov	QWORD PTR -112[rbp], rax
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR -100[rbp]
	mov	rdx, r15
	mov	rdi, rbx
	call	fgets@PLT
	test	rax, rax
	je	.L15
	mov	rdi, rbx
	add	r13d, 1
	call	strlen@PLT
	lea	edx, -1[rax]
	movsx	rdx, edx
	cmp	BYTE PTR [rbx+rdx], 10
	jne	.L46
	cmp	BYTE PTR [rbx], 35
	je	.L16
	mov	r14, rdx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L47:
	movzx	edi, BYTE PTR -1[rbx+r14]
	sub	r14, 1
	call	isspace@PLT
	test	rax, rax
	je	.L10
.L11:
	movsx	r12, r14d
	test	r14d, r14d
	jg	.L47
.L10:
	mov	BYTE PTR [rbx+r12], 0
	cmp	BYTE PTR [rbx], 0
	je	.L16
	mov	rdx, QWORD PTR -112[rbp]
	mov	esi, DWORD PTR fs[rip]
	mov	rdi, rbx
	mov	QWORD PTR -88[rbp], 0
	call	strtok_r@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	mov	r14, QWORD PTR -112[rbp]
	mov	esi, DWORD PTR fs[rip]
	xor	edi, edi
	mov	rdx, r14
	call	strtok_r@PLT
	mov	QWORD PTR -120[rbp], rax
	test	rax, rax
	je	.L13
	mov	esi, DWORD PTR fs[rip]
	xor	edi, edi
	mov	rdx, r14
	call	strtok_r@PLT
	test	rax, rax
	mov	QWORD PTR -128[rbp], rax
	je	.L13
	mov	esi, DWORD PTR fs[rip]
	xor	edi, edi
	mov	rdx, r14
	call	strtok_r@PLT
	test	rax, rax
	je	.L48
.L13:
	mov	edx, DWORD PTR _PATH_LOGACCESS[rip]
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	ecx, r13d
	xor	eax, eax
	lea	rsi, .LC2[rip]
	call	syslog@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L46:
	mov	edx, DWORD PTR _PATH_LOGACCESS[rip]
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	ecx, r13d
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	syslog@PLT
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L48:
	movzx	eax, BYTE PTR [r12]
	mov	r8, QWORD PTR -128[rbp]
	sub	eax, 43
	test	al, -3
	jne	.L49
	lea	r12, -80[rbp]
	mov	edx, DWORD PTR from_match[rip]
	mov	rdi, r8
	mov	rsi, r12
	call	list_match@PLT
	test	rax, rax
	je	.L16
	mov	edx, DWORD PTR user_match[rip]
	mov	rdi, QWORD PTR -120[rbp]
	mov	rsi, r12
	call	list_match@PLT
	test	rax, rax
	je	.L16
	mov	DWORD PTR -104[rbp], 1
	jmp	.L15
.L42:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L49:
	mov	edx, DWORD PTR _PATH_LOGACCESS[rip]
	mov	edi, DWORD PTR LOG_ERR[rip]
	mov	ecx, r13d
	xor	eax, eax
	lea	rsi, .LC3[rip]
	call	syslog@PLT
	jmp	.L16
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	login_access, .-login_access
	.comm	user_match,4,4
	.comm	fs,4,4
	.comm	from_match,4,4
	.comm	errno,8,8
	.comm	_PATH_LOGACCESS,4,4
	.comm	NO,4,4
	.comm	LOG_ERR,4,4
	.comm	ENOENT,8,8
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_login_access.c_login_access.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"%s: line %d: missing newline or line too long\000"
	.align	2
.LC2:
	.ascii	"%s: line %d: bad field count\000"
	.align	2
.LC3:
	.ascii	"%s: line %d: bad first field\000"
	.align	2
.LC4:
	.ascii	"cannot open %s: %m\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	login_access
	.syntax unified
	.arm
	.fpu softvfp
	.type	login_access, %function
login_access:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #28
	mov	lr, r0
	mov	ip, r1
	ldr	r3, .L48
	ldr	r10, .L48+4
	ldr	r7, [r3]
	ldr	r2, .L48+8
	add	r3, r7, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L48+12
	str	lr, [fp, #-44]
	str	ip, [fp, #-48]
	ldr	r0, [r10]
	ldr	r1, .L48+16
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r8, [r2]
	bl	fopen
	subs	r6, r0, #0
	mov	r4, sp
	beq	.L40
	cmp	r8, #0
	beq	.L41
.L12:
	mov	r0, r6
	bl	fclose
.L15:
	cmp	r8, #0
	ldrbne	r0, [r4]	@ zero_extendqisi2
	ldr	r3, .L48+12
	subne	r0, r0, #43
	clzne	r0, r0
	moveq	r0, #1
	lsrne	r0, r0, #5
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	mov	r5, r8
.L13:
	mov	r2, r6
	mov	r1, r7
	mov	r0, r4
	bl	fgets
	cmp	r0, #0
	beq	.L43
	mov	r0, r4
	bl	strlen
	sub	r8, r0, #1
	ldrb	r3, [r4, r8]	@ zero_extendqisi2
	add	r5, r5, #1
	cmp	r3, #10
	bne	.L44
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #35
	subne	r0, r0, #2
	addne	r9, r4, r0
	bne	.L8
	b	.L13
.L45:
	ldrb	r0, [r9], #-1	@ zero_extendqisi2
	bl	isspace
	cmp	r0, #0
	sub	r3, r8, #1
	beq	.L7
	mov	r8, r3
.L8:
	cmp	r8, #0
	bgt	.L45
.L7:
	mov	r9, #0
	strb	r9, [r4, r8]
	ldrb	r2, [r4]	@ zero_extendqisi2
	cmp	r2, r9
	beq	.L13
	ldr	r3, .L48+20
	mov	r0, r4
	ldr	r1, [r3]
	sub	r2, fp, #52
	str	r9, [fp, #-52]
	bl	strtok_r
	subs	r8, r0, #0
	beq	.L10
	ldr	r3, .L48+20
	sub	r2, fp, #52
	mov	r0, r9
	ldr	r1, [r3]
	bl	strtok_r
	subs	r2, r0, #0
	str	r2, [fp, #-56]
	beq	.L10
	ldr	r3, .L48+20
	sub	r2, fp, #52
	mov	r0, r9
	ldr	r1, [r3]
	bl	strtok_r
	subs	r2, r0, #0
	str	r2, [fp, #-60]
	beq	.L10
	ldr	r3, .L48+20
	mov	r0, r9
	ldr	r1, [r3]
	sub	r2, fp, #52
	bl	strtok_r
	cmp	r0, #0
	beq	.L46
.L10:
	ldr	r0, .L48+24
	mov	r3, r5
	ldr	r2, [r10]
	ldr	r1, .L48+28
	ldr	r0, [r0]
	bl	syslog
	b	.L13
.L44:
	ldr	r0, .L48+24
	mov	r3, r5
	ldr	r2, [r10]
	ldr	r1, .L48+32
	ldr	r0, [r0]
	bl	syslog
	b	.L13
.L43:
	mov	r8, r0
	b	.L12
.L40:
	ldr	r2, .L48+36
	ldr	r3, .L48+40
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L15
	ldr	r3, .L48+24
	ldr	r2, [r10]
	ldr	r0, [r3]
	ldr	r1, .L48+44
	bl	syslog
	b	.L15
.L46:
	ldrb	r3, [r8]	@ zero_extendqisi2
	sub	r3, r3, #43
	tst	r3, #253
	bne	.L47
	ldr	r3, .L48+48
	ldr	r0, [fp, #-60]
	ldr	r2, [r3]
	sub	r1, fp, #48
	bl	list_match
	cmp	r0, #0
	beq	.L13
	ldr	r3, .L48+52
	ldr	r0, [fp, #-56]
	ldr	r2, [r3]
	sub	r1, fp, #48
	bl	list_match
	cmp	r0, #0
	beq	.L13
	mov	r8, #1
	b	.L12
.L47:
	ldr	r0, .L48+24
	mov	r3, r5
	ldr	r2, [r10]
	ldr	r1, .L48+56
	ldr	r0, [r0]
	bl	syslog
	b	.L13
.L42:
	bl	__stack_chk_fail
.L49:
	.align	2
.L48:
	.word	BUFSIZ
	.word	_PATH_LOGACCESS
	.word	NO
	.word	.LC5
	.word	.LC0
	.word	fs
	.word	LOG_ERR
	.word	.LC2
	.word	.LC1
	.word	errno
	.word	ENOENT
	.word	.LC4
	.word	from_match
	.word	user_match
	.word	.LC3
	.size	login_access, .-login_access
	.comm	user_match,4,4
	.comm	fs,4,4
	.comm	from_match,4,4
	.comm	errno,4,4
	.comm	_PATH_LOGACCESS,4,4
	.comm	NO,4,4
	.comm	LOG_ERR,4,4
	.comm	ENOENT,4,4
	.comm	BUFSIZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
