	.file	"extr_core.c_st95hf_handle_wtx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Config. setting error on WTX req, err = 0x%x\n"
	.align 8
.LC1:
	.string	"WTX response send, err = 0x%x\n"
	.align 8
.LC2:
	.string	"Default config. setting error after WTX processing, err = 0x%x\n"
	.text
	.p2align 4
	.type	st95hf_handle_wtx, @function
st95hf_handle_wtx:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	esi, esi
	jne	.L16
	mov	rax, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR NFC_PROTO_ISO14443[rip]
	je	.L17
	cmp	rax, QWORD PTR NFC_PROTO_ISO14443_B[rip]
	jne	.L6
	mov	rdx, QWORD PTR CMD_ISO14443B_PROTOCOL_SELECT[rip]
	mov	rax, QWORD PTR cmd_array[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	movzx	esi, BYTE PTR 3[rax]
	call	iso14443_config_fdt@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
.L18:
	mov	edx, eax
	lea	rsi, .LC2[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdx, QWORD PTR CMD_ISO14443A_PROTOCOL_SELECT[rip]
	mov	rax, QWORD PTR cmd_array[rip]
	mov	rax, QWORD PTR [rax+rdx*8]
	movzx	esi, BYTE PTR 3[rax]
.L6:
	call	iso14443_config_fdt@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L18
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.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
.L16:
	.cfi_restore_state
	mov	esi, edx
	mov	QWORD PTR 8[rsp], rdi
	mov	ebx, edx
	and	esi, 63
	call	iso14443_config_fdt@PLT
	mov	rdi, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	jne	.L20
	mov	esi, DWORD PTR CMD_WTX_RESPONSE[rip]
	lea	rcx, 16[rsp]
	xor	r8d, r8d
	mov	edx, 1
	mov	DWORD PTR 16[rsp], 1
	mov	DWORD PTR 20[rsp], ebx
	call	st95hf_send_recv_cmd@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	edx, eax
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	rdi, r13
	call	dev_err@PLT
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	st95hf_handle_wtx, .-st95hf_handle_wtx
	.comm	cmd_array,8,8
	.comm	NFC_PROTO_ISO14443_B,8,8
	.comm	NFC_PROTO_ISO14443,8,8
	.comm	CMD_WTX_RESPONSE,4,4
	.comm	CMD_ISO14443B_PROTOCOL_SELECT,8,8
	.comm	CMD_ISO14443A_PROTOCOL_SELECT,8,8
	.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_core.c_st95hf_handle_wtx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Config. setting error on WTX req, err = 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"WTX response send, err = 0x%x\012\000"
	.align	2
.LC2:
	.ascii	"Default config. setting error after WTX processing,"
	.ascii	" err = 0x%x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	st95hf_handle_wtx, %function
st95hf_handle_wtx:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L23
	sub	sp, sp, #28
	cmp	r1, #0
	mov	r5, r0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r6, [r0]
	bne	.L18
	ldr	r3, [r0, #4]
	ldr	r2, .L23+4
	ldr	r3, [r3]
	ldr	r2, [r2]
	cmp	r3, r2
	ldreq	r2, .L23+8
	beq	.L16
	ldr	r2, .L23+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L19
	mov	r0, r5
	bl	iso14443_config_fdt
	subs	r4, r0, #0
	bne	.L20
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L19:
	ldr	r2, .L23+16
.L16:
	ldr	r3, .L23+20
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r0, r5
	ldr	r3, [r3, r2, lsl #2]
	ldrb	r1, [r3, #3]	@ zero_extendqisi2
	bl	iso14443_config_fdt
	subs	r4, r0, #0
	beq	.L1
.L20:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L23+24
	bl	dev_err
	b	.L1
.L18:
	and	r1, r2, #63
	mov	r7, r2
	bl	iso14443_config_fdt
	subs	r4, r0, #0
	bne	.L22
	mov	r2, #1
	ldr	r3, .L23+28
	str	r4, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	add	r3, sp, #12
	str	r7, [sp, #16]
	str	r2, [sp, #12]
	bl	st95hf_send_recv_cmd
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L23+32
	bl	dev_err
	b	.L1
.L22:
	mov	r0, r6
	mov	r2, r4
	ldr	r1, .L23+36
	bl	dev_err
	b	.L1
.L21:
	bl	__stack_chk_fail
.L24:
	.align	2
.L23:
	.word	.LC3
	.word	NFC_PROTO_ISO14443
	.word	CMD_ISO14443A_PROTOCOL_SELECT
	.word	NFC_PROTO_ISO14443_B
	.word	CMD_ISO14443B_PROTOCOL_SELECT
	.word	cmd_array
	.word	.LC2
	.word	CMD_WTX_RESPONSE
	.word	.LC1
	.word	.LC0
	.size	st95hf_handle_wtx, .-st95hf_handle_wtx
	.comm	cmd_array,4,4
	.comm	NFC_PROTO_ISO14443_B,4,4
	.comm	NFC_PROTO_ISO14443,4,4
	.comm	CMD_WTX_RESPONSE,4,4
	.comm	CMD_ISO14443B_PROTOCOL_SELECT,4,4
	.comm	CMD_ISO14443A_PROTOCOL_SELECT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
