	.file	"extr_cx18-ioctl.c_cx18_default.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cx18_default, @function
cx18_default:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rdi, rsi
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	fh2id@PLT
	mov	rdi, rax
	mov	rax, QWORD PTR ENOTTY[rip]
	neg	rax
	cmp	ebx, 128
	je	.L12
.L1:
	add	rsp, 8
	.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
.L12:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[rbp]
	test	edx, edx
	je	.L3
	xor	eax, eax
	and	edx, 1
	je	.L1
.L3:
	mov	r8d, DWORD PTR CX18_GPIO_RESET_Z8F0811[rip]
	mov	ecx, DWORD PTR reset[rip]
	mov	edx, DWORD PTR core[rip]
	mov	esi, DWORD PTR CX18_HW_GPIO_RESET_CTRL[rip]
	mov	rdi, QWORD PTR [rdi]
	call	cx18_call_hw@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cx18_default, .-cx18_default
	.comm	reset,4,4
	.comm	core,4,4
	.comm	ENOTTY,8,8
	.comm	CX18_HW_GPIO_RESET_CTRL,4,4
	.comm	CX18_GPIO_RESET_Z8F0811,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_cx18-ioctl.c_cx18_default.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cx18_default, %function
cx18_default:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r3
	mov	r0, r1
	sub	sp, sp, #8
	bl	fh2id
	cmp	r4, #128
	beq	.L13
	ldr	r3, .L14
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L13:
	ldr	r3, [sp, #16]
	mov	r2, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ands	r0, r3, #1
	beq	.L1
.L3:
	ldr	r3, .L14+4
	ldr	r0, [r2]
	ldr	ip, [r3]
	ldr	r2, .L14+8
	ldr	r3, .L14+12
	ldr	r1, .L14+16
	str	ip, [sp]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	cx18_call_hw
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	ENOTTY
	.word	CX18_GPIO_RESET_Z8F0811
	.word	core
	.word	reset
	.word	CX18_HW_GPIO_RESET_CTRL
	.size	cx18_default, .-cx18_default
	.comm	reset,4,4
	.comm	core,4,4
	.comm	ENOTTY,4,4
	.comm	CX18_HW_GPIO_RESET_CTRL,4,4
	.comm	CX18_GPIO_RESET_Z8F0811,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
