	.file	"extr_i2s.c_aoagpio_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"audio-gpio"
.LC1:
	.string	"audio-gpio-active-state"
	.text
	.p2align 4
	.type	aoagpio_probe, @function
aoagpio_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	ofw_bus_get_node@PLT
	mov	r13d, eax
	add	eax, 1
	cmp	eax, 1
	jbe	.L20
	mov	rbp, rsp
	mov	esi, 32
	mov	rdi, rbp
	call	bzero@PLT
	mov	ecx, 32
	mov	rdx, rbp
	mov	edi, r13d
	lea	rsi, .LC0[rip]
	call	OF_getprop@PLT
	cmp	eax, 2
	jle	.L21
.L4:
	mov	rbx, QWORD PTR gpio_controls[rip]
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	jne	.L8
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR 24[rbx]
	add	rbx, 16
	test	rsi, rsi
	je	.L5
.L8:
	mov	rdi, rbp
	call	strcmp@PLT
	test	rax, rax
	jne	.L6
	mov	edi, r12d
	call	device_get_softc@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rcx, QWORD PTR gpio_ctrls[rip]
	mov	edi, r13d
	lea	rsi, .LC1[rip]
	mov	QWORD PTR [rcx+rdx*8], rax
	mov	ecx, 1
	mov	QWORD PTR [rax], rdx
	lea	rdx, 8[rax]
	mov	DWORD PTR 32[rax], r12d
	mov	QWORD PTR 24[rax], 0
	mov	BYTE PTR 8[rax], 0
	mov	QWORD PTR 16[rax], 0
	call	OF_getprop@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edx, DWORD PTR GPIO_CTRL_EXTINT_SET[rip]
	bt	edx, eax
	jc	.L22
.L7:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, r12d
	call	device_set_desc@PLT
	mov	edi, r12d
	call	device_quiet@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L23
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR ENXIO[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, r12d
	call	ofw_bus_get_name@PLT
	mov	rbp, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, r12d
	call	aoagpio_int@PLT
	jmp	.L7
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aoagpio_probe, .-aoagpio_probe
	.comm	gpio_ctrls,8,8
	.comm	gpio_controls,8,8
	.comm	GPIO_CTRL_EXTINT_SET,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,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_i2s.c_aoagpio_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"audio-gpio\000"
	.align	2
.LC1:
	.ascii	"audio-gpio-active-state\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aoagpio_probe, %function
aoagpio_probe:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L24
	sub	sp, sp, #40
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r8, r0
	bl	ofw_bus_get_node
	add	r3, r0, #1
	cmp	r3, #1
	bls	.L20
	mov	r7, r0
	mov	r1, #32
	add	r0, sp, #4
	bl	bzero
	mov	r3, #32
	mov	r0, r7
	ldr	r1, .L24+4
	add	r2, sp, #4
	bl	OF_getprop
	cmp	r0, #2
	addgt	r6, sp, #4
	ble	.L21
.L4:
	ldr	r3, .L24+8
	ldr	r5, [r3]
	ldr	r1, [r5, #4]
	cmp	r1, #0
	bne	.L8
	b	.L5
.L6:
	ldr	r1, [r5, #12]
	add	r5, r5, #8
	cmp	r1, #0
	beq	.L5
.L8:
	mov	r0, r6
	bl	strcmp
	subs	r4, r0, #0
	bne	.L6
	mov	r0, r8
	bl	device_get_softc
	mov	r3, r0
	ldr	r2, .L24+12
	ldr	r1, [r5]
	ldr	r2, [r2]
	mov	r0, r7
	str	r3, [r2, r1, lsl #2]
	add	r2, r3, #4
	str	r1, [r3]
	str	r8, [r3, #16]
	str	r4, [r3, #12]
	strb	r4, [r3, #4]
	str	r4, [r3, #8]
	ldr	r1, .L24+16
	mov	r3, #1
	bl	OF_getprop
	ldr	r3, .L24+20
	ldr	r2, [r5]
	ldr	r3, [r3]
	asr	r3, r3, r2
	tst	r3, #1
	bne	.L22
.L7:
	mov	r0, r8
	ldr	r1, [r5, #4]
	bl	device_set_desc
	mov	r0, r8
	bl	device_quiet
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	mov	r0, r4
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	ldr	r3, .L24+24
	ldr	r4, [r3]
	b	.L1
.L5:
	ldr	r3, .L24+28
	ldr	r4, [r3]
	b	.L1
.L21:
	mov	r0, r8
	bl	ofw_bus_get_name
	mov	r6, r0
	b	.L4
.L22:
	mov	r0, r8
	bl	aoagpio_int
	b	.L7
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	.LC0
	.word	gpio_controls
	.word	gpio_ctrls
	.word	.LC1
	.word	GPIO_CTRL_EXTINT_SET
	.word	EINVAL
	.word	ENXIO
	.size	aoagpio_probe, .-aoagpio_probe
	.comm	gpio_ctrls,4,4
	.comm	gpio_controls,4,4
	.comm	GPIO_CTRL_EXTINT_SET,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
