	.file	"extr_aml8726_usb_phy-m3.c_aml8726_usb_phy_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"synopsys,designware-hs-otg2"
.LC1:
	.string	"dr_mode"
.LC2:
	.string	"host"
.LC3:
	.string	"peripheral"
	.text
	.p2align 4
	.type	aml8726_usb_phy_mode, @function
aml8726_usb_phy_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	OF_finddevice@PLT
	cmp	eax, -1
	je	.L10
	lea	rsi, .LC0[rip]
	mov	edi, eax
	mov	ebp, eax
	call	fdt_is_compatible_strict@PLT
	test	rax, rax
	jne	.L4
.L10:
	mov	eax, DWORD PTR ENXIO[rip]
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	DWORD PTR [rbx], 0
	mov	rdx, rsp
	lea	rsi, .LC1[rip]
	mov	edi, ebp
	call	OF_getprop_alloc@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jle	.L1
	mov	rdi, QWORD PTR [rsp]
	lea	rsi, .LC2[rip]
	call	strcasecmp@PLT
	test	rax, rax
	jne	.L5
	mov	eax, DWORD PTR AML_USB_PHY_MISC_ID_OVERIDE_EN[rip]
	or	eax, DWORD PTR AML_USB_PHY_MISC_ID_OVERIDE_HOST[rip]
	mov	DWORD PTR [rbx], eax
.L6:
	mov	rdi, QWORD PTR [rsp]
	call	OF_prop_free@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, QWORD PTR [rsp]
	lea	rsi, .LC3[rip]
	call	strcasecmp@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR AML_USB_PHY_MISC_ID_OVERIDE_EN[rip]
	or	eax, DWORD PTR AML_USB_PHY_MISC_ID_OVERIDE_DEVICE[rip]
	mov	DWORD PTR [rbx], eax
	jmp	.L6
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aml8726_usb_phy_mode, .-aml8726_usb_phy_mode
	.comm	ENXIO,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_HOST,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_EN,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_DEVICE,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_aml8726_usb_phy-m3.c_aml8726_usb_phy_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"synopsys,designware-hs-otg2\000"
	.align	2
.LC1:
	.ascii	"dr_mode\000"
	.align	2
.LC2:
	.ascii	"host\000"
	.align	2
.LC3:
	.ascii	"peripheral\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aml8726_usb_phy_mode, %function
aml8726_usb_phy_mode:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r1
	bl	OF_finddevice
	cmn	r0, #1
	beq	.L10
	ldr	r1, .L14+4
	mov	r4, r0
	bl	fdt_is_compatible_strict
	cmp	r0, #0
	bne	.L4
.L10:
	ldr	r3, .L14+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	mov	r5, #0
	mov	r0, r4
	mov	r2, sp
	ldr	r1, .L14+12
	str	r5, [r6]
	bl	OF_getprop_alloc
	cmp	r0, r5
	movle	r0, r5
	ble	.L1
	ldr	r4, [sp]
	ldr	r1, .L14+16
	mov	r0, r4
	bl	strcasecmp
	cmp	r0, r5
	beq	.L13
	mov	r0, r4
	ldr	r1, .L14+20
	bl	strcasecmp
	cmp	r0, #0
	bne	.L6
	ldr	r3, .L14+24
	ldr	r2, .L14+28
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r6]
.L6:
	mov	r0, r4
	bl	OF_prop_free
	mov	r0, #0
	b	.L1
.L13:
	ldr	r3, .L14+24
	ldr	r2, .L14+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r6]
	b	.L6
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC4
	.word	.LC0
	.word	ENXIO
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	AML_USB_PHY_MISC_ID_OVERIDE_EN
	.word	AML_USB_PHY_MISC_ID_OVERIDE_DEVICE
	.word	AML_USB_PHY_MISC_ID_OVERIDE_HOST
	.size	aml8726_usb_phy_mode, .-aml8726_usb_phy_mode
	.comm	ENXIO,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_HOST,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_EN,4,4
	.comm	AML_USB_PHY_MISC_ID_OVERIDE_DEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
