	.file	"extr_bsm_class.c_getauclassent_r_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"r"
	.text
	.p2align 4
	.type	getauclassent_r_locked, @function
getauclassent_r_locked:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdx, QWORD PTR fp[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	test	rdx, rdx
	je	.L19
.L2:
	mov	rdi, QWORD PTR linestr[rip]
.L6:
	mov	esi, DWORD PTR AU_LINE_MAX[rip]
	call	fgets@PLT
	test	rax, rax
	je	.L4
	mov	rdi, QWORD PTR linestr[rip]
	cmp	BYTE PTR [rdi], 35
	je	.L20
	mov	esi, 10
	call	strrchr@PLT
	test	rax, rax
	je	.L7
	mov	BYTE PTR [rax], 0
.L7:
	mov	rdi, QWORD PTR linestr[rip]
	mov	rsi, r12
	call	classfromstr@PLT
	test	rax, rax
	je	.L4
	mov	rax, r12
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdx, QWORD PTR fp[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edi, DWORD PTR AUDIT_CLASS_FILE[rip]
	lea	rsi, .LC0[rip]
	call	fopen@PLT
	mov	QWORD PTR fp[rip], rax
	mov	rdx, rax
	test	rax, rax
	jne	.L2
.L4:
	xor	r12d, r12d
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	getauclassent_r_locked, .-getauclassent_r_locked
	.comm	linestr,8,8
	.comm	fp,8,8
	.comm	AU_LINE_MAX,4,4
	.comm	AUDIT_CLASS_FILE,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_bsm_class.c_getauclassent_r_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"r\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getauclassent_r_locked, %function
getauclassent_r_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, .L21
	mov	r4, r0
	ldr	r2, [r6]
	cmp	r2, #0
	beq	.L19
.L2:
	ldr	r5, .L21+4
	ldr	r7, .L21+8
	ldr	r0, [r5]
.L6:
	ldr	r1, [r7]
	bl	fgets
	cmp	r0, #0
	beq	.L4
	ldr	r0, [r5]
	ldrb	r3, [r0]	@ zero_extendqisi2
	cmp	r3, #35
	beq	.L20
	mov	r1, #10
	bl	strrchr
	cmp	r0, #0
	movne	r3, #0
	strbne	r3, [r0]
	mov	r1, r4
	ldr	r0, [r5]
	bl	classfromstr
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r2, [r6]
	b	.L6
.L19:
	ldr	r3, .L21+12
	ldr	r1, .L21+16
	ldr	r0, [r3]
	bl	fopen
	cmp	r0, #0
	mov	r2, r0
	str	r0, [r6]
	bne	.L2
.L4:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L22:
	.align	2
.L21:
	.word	fp
	.word	linestr
	.word	AU_LINE_MAX
	.word	AUDIT_CLASS_FILE
	.word	.LC0
	.size	getauclassent_r_locked, .-getauclassent_r_locked
	.comm	linestr,4,4
	.comm	fp,4,4
	.comm	AU_LINE_MAX,4,4
	.comm	AUDIT_CLASS_FILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
