	.file	"extr_ezx-pcap.c_ezx_pcap_set_bits.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ezx_pcap_set_bits
	.type	ezx_pcap_set_bits, @function
ezx_pcap_set_bits:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	ecx, DWORD PTR PCAP_REGISTER_ADDRESS_SHIFT[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, esi
	lea	r15, 4[rsp]
	xor	esi, esi
	sal	eax, cl
	or	eax, DWORD PTR PCAP_REGISTER_READ_OP_BIT[rip]
	mov	DWORD PTR 4[rsp], eax
	call	spin_lock_irqsave@PLT
	mov	rsi, r15
	mov	rdi, rbp
	call	ezx_pcap_putget@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L2
	mov	eax, ebx
	mov	esi, DWORD PTR PCAP_REGISTER_VALUE_MASK[rip]
	and	esi, DWORD PTR 4[rsp]
	and	ebx, r14d
	mov	ecx, DWORD PTR PCAP_REGISTER_ADDRESS_SHIFT[rip]
	not	eax
	or	ebx, DWORD PTR PCAP_REGISTER_WRITE_OP_BIT[rip]
	mov	rdi, rbp
	and	esi, eax
	or	ebx, esi
	sal	r13d, cl
	mov	rsi, r15
	or	ebx, r13d
	mov	DWORD PTR 4[rsp], ebx
	call	ezx_pcap_putget@PLT
	mov	r12d, eax
.L2:
	xor	esi, esi
	mov	rdi, rbp
	call	spin_unlock_irqrestore@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L7
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ezx_pcap_set_bits, .-ezx_pcap_set_bits
	.comm	PCAP_REGISTER_WRITE_OP_BIT,4,4
	.comm	PCAP_REGISTER_VALUE_MASK,4,4
	.comm	PCAP_REGISTER_READ_OP_BIT,4,4
	.comm	PCAP_REGISTER_ADDRESS_SHIFT,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_ezx-pcap.c_ezx_pcap_set_bits.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ezx_pcap_set_bits
	.syntax unified
	.arm
	.fpu softvfp
	.type	ezx_pcap_set_bits, %function
ezx_pcap_set_bits:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r7, r1
	mov	r5, r0
	ldr	r1, .L7
	ldr	r9, .L7+4
	ldr	ip, [r1]
	ldr	lr, [r9]
	mov	r6, r3
	ldr	r3, .L7+8
	sub	sp, sp, #12
	orr	ip, ip, r7, lsl lr
	mov	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r8, r2
	str	ip, [sp]
	bl	spin_lock_irqsave
	mov	r0, r5
	mov	r1, sp
	bl	ezx_pcap_putget
	subs	r4, r0, #0
	bne	.L2
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r0, [r2]
	ldr	r2, [sp]
	ldr	r3, [r3]
	and	r0, r0, r2
	and	r6, r6, r8
	orr	r3, r6, r3
	ldr	r2, [r9]
	bic	r6, r0, r8
	orr	r6, r6, r3
	orr	r6, r6, r7, lsl r2
	mov	r1, sp
	mov	r0, r5
	str	r6, [sp]
	bl	ezx_pcap_putget
	mov	r4, r0
.L2:
	mov	r0, r5
	mov	r1, #0
	bl	spin_unlock_irqrestore
	ldr	r3, .L7+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	PCAP_REGISTER_READ_OP_BIT
	.word	PCAP_REGISTER_ADDRESS_SHIFT
	.word	.LC0
	.word	PCAP_REGISTER_VALUE_MASK
	.word	PCAP_REGISTER_WRITE_OP_BIT
	.size	ezx_pcap_set_bits, .-ezx_pcap_set_bits
	.comm	PCAP_REGISTER_WRITE_OP_BIT,4,4
	.comm	PCAP_REGISTER_VALUE_MASK,4,4
	.comm	PCAP_REGISTER_READ_OP_BIT,4,4
	.comm	PCAP_REGISTER_ADDRESS_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
