	.file	"extr_log.c_log_open_kmsg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/dev/kmsg"
	.text
	.p2align 4
	.type	log_open_kmsg, @function
log_open_kmsg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	cmp	QWORD PTR kmsg_fd[rip], 0
	js	.L7
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR O_WRONLY[rip]
	lea	rdi, .LC0[rip]
	or	esi, DWORD PTR O_NOCTTY[rip]
	or	esi, DWORD PTR O_CLOEXEC[rip]
	call	open@PLT
	mov	QWORD PTR kmsg_fd[rip], rax
	mov	rdi, rax
	test	rax, rax
	js	.L8
	call	fd_move_above_stdio@PLT
	mov	QWORD PTR kmsg_fd[rip], rax
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR errno[rip]
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	log_open_kmsg, .-log_open_kmsg
	.comm	kmsg_fd,8,8
	.comm	errno,4,4
	.comm	O_WRONLY,4,4
	.comm	O_NOCTTY,4,4
	.comm	O_CLOEXEC,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_log.c_log_open_kmsg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/dev/kmsg\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	log_open_kmsg, %function
log_open_kmsg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r4, .L9
	ldr	r3, [r4]
	cmp	r3, #0
	blt	.L7
	mov	r0, #0
	pop	{r4, pc}
.L7:
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r1, .L9+12
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r2
	ldr	r0, .L9+16
	orr	r1, r3, r1
	bl	open
	cmp	r0, #0
	str	r0, [r4]
	blt	.L8
	bl	fd_move_above_stdio
	mov	r3, r0
	mov	r0, #0
	str	r3, [r4]
	pop	{r4, pc}
.L8:
	ldr	r3, .L9+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	kmsg_fd
	.word	O_WRONLY
	.word	O_NOCTTY
	.word	O_CLOEXEC
	.word	.LC0
	.word	errno
	.size	log_open_kmsg, .-log_open_kmsg
	.comm	kmsg_fd,4,4
	.comm	errno,4,4
	.comm	O_WRONLY,4,4
	.comm	O_NOCTTY,4,4
	.comm	O_CLOEXEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
