	.file	"extr_asm9260_wdt.c_asm9260_wdt_get_dt_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"alphascale,mode"
.LC1:
	.string	"debug"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"unknown reset-type: %s. Using default \"hw\" mode."
	.text
	.p2align 4
	.type	asm9260_wdt_get_dt_mode, @function
asm9260_wdt_get_dt_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	lea	rsi, .LC0[rip]
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR HW_RESET[rip]
	mov	rdx, rsp
	mov	QWORD PTR 8[rdi], rax
	mov	rax, QWORD PTR [rdi]
	mov	edi, DWORD PTR [rax]
	call	of_property_read_string@PLT
	test	eax, eax
	js	.L1
	mov	rdx, QWORD PTR [rsp]
	movzx	eax, BYTE PTR [rdx]
	cmp	eax, 104
	je	.L12
.L4:
	cmp	eax, 115
	jne	.L7
	cmp	BYTE PTR 1[rdx], 119
	jne	.L7
	cmp	BYTE PTR 2[rdx], 0
	jne	.L7
	mov	rax, QWORD PTR SW_RESET[rip]
	mov	QWORD PTR 8[rbx], rax
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	cmp	BYTE PTR 1[rdx], 119
	jne	.L4
	cmp	BYTE PTR 2[rdx], 0
	jne	.L4
	mov	rax, QWORD PTR HW_RESET[rip]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, 6
	lea	rdi, .LC1[rip]
	mov	rsi, rdx
	repz cmpsb
	seta	al
	sbb	al, 0
	test	al, al
	jne	.L8
	mov	rax, QWORD PTR DEBUG[rip]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	call	dev_warn@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	asm9260_wdt_get_dt_mode, .-asm9260_wdt_get_dt_mode
	.comm	SW_RESET,8,8
	.comm	HW_RESET,8,8
	.comm	DEBUG,8,8
	.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_asm9260_wdt.c_asm9260_wdt_get_dt_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"alphascale,mode\000"
	.align	2
.LC1:
	.ascii	"debug\000"
	.align	2
.LC2:
	.ascii	"unknown reset-type: %s. Using default \"hw\" mode.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	asm9260_wdt_get_dt_mode, %function
asm9260_wdt_get_dt_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r6, .L14
	ldr	r2, [r0]
	ldr	r3, [r6]
	ldr	r0, [r2]
	sub	sp, sp, #8
	str	r3, [r4, #4]
	ldr	r3, .L14+4
	mov	r2, sp
	ldr	r1, .L14+8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	of_property_read_string
	cmp	r0, #0
	blt	.L1
	ldr	r5, [sp]
	ldrb	r3, [r5]	@ zero_extendqisi2
	cmp	r3, #104
	beq	.L12
.L4:
	cmp	r3, #115
	bne	.L7
	ldrb	r3, [r5, #1]	@ zero_extendqisi2
	cmp	r3, #119
	bne	.L7
	ldrb	r3, [r5, #2]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L14+12
	ldr	r3, [r3]
	str	r3, [r4, #4]
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	ldrb	r2, [r5, #1]	@ zero_extendqisi2
	cmp	r2, #119
	bne	.L4
	ldrb	r2, [r5, #2]	@ zero_extendqisi2
	cmp	r2, #0
	bne	.L4
	ldr	r3, [r6]
	str	r3, [r4, #4]
	b	.L1
.L7:
	mov	r0, r5
	ldr	r1, .L14+16
	bl	strcmp
	cmp	r0, #0
	ldreq	r3, .L14+20
	ldreq	r3, [r3]
	streq	r3, [r4, #4]
	beq	.L1
.L8:
	mov	r2, r5
	ldr	r0, [r4]
	ldr	r1, .L14+24
	bl	dev_warn
	b	.L1
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	HW_RESET
	.word	.LC3
	.word	.LC0
	.word	SW_RESET
	.word	.LC1
	.word	DEBUG
	.word	.LC2
	.size	asm9260_wdt_get_dt_mode, .-asm9260_wdt_get_dt_mode
	.comm	SW_RESET,4,4
	.comm	HW_RESET,4,4
	.comm	DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
