	.file	"extr_isdnl2.c_sethdraddr.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sethdraddr, @function
sethdraddr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	mov	rsi, r13
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR FLG_LAPD[rip]
	call	test_bit@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR [rbx]
	sal	eax, 2
	mov	edx, eax
	or	edx, 2
	test	r12d, r12d
	cmovne	eax, edx
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR 4[rbx]
	lea	eax, 1[rax+rax]
	mov	DWORD PTR 4[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 2
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR FLG_ORIG[rip]
	mov	rsi, r13
	call	test_bit@PLT
	test	rax, rax
	je	.L5
	test	r12d, r12d
	sete	r12b
	movzx	r12d, r12b
.L5:
	test	r12d, r12d
	je	.L6
	mov	DWORD PTR 0[rbp], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
.L6:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	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
	.cfi_endproc
.LFE0:
	.size	sethdraddr, .-sethdraddr
	.comm	FLG_ORIG,4,4
	.comm	FLG_LAPD,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_isdnl2.c_sethdraddr.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sethdraddr, %function
sethdraddr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L15
	push	{r4, r5, r6, r7, r8, lr}
	add	r7, r0, #8
	mov	r4, r0
	mov	r6, r1
	ldr	r0, [r3]
	mov	r1, r7
	mov	r5, r2
	bl	test_bit
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r4]
	cmp	r5, #0
	lsl	r3, r3, #2
	orrne	r3, r3, #2
	str	r3, [r6]
	ldr	r3, [r4, #4]
	mov	r0, #2
	lsl	r3, r3, #1
	orr	r3, r3, #1
	str	r3, [r6, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, .L15+4
	mov	r1, r7
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	clzne	r5, r5
	lsrne	r5, r5, #5
	cmp	r5, #0
	movne	r0, #1
	moveq	r3, #3
	moveq	r0, #1
	strne	r0, [r6]
	streq	r3, [r6]
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	FLG_LAPD
	.word	FLG_ORIG
	.size	sethdraddr, .-sethdraddr
	.comm	FLG_ORIG,4,4
	.comm	FLG_LAPD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
