	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_handle_wtx
_st95hf_handle_wtx:                     ## @st95hf_handle_wtx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r14
	testl	%esi, %esi
	je	LBB0_5
## %bb.1:
	movl	%edx, %r12d
	movl	%edx, %esi
	andl	$63, %esi
	movq	%r15, %rdi
	callq	_iso14443_config_fdt
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_NFC_PROTO_ISO14443@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movq	_CMD_ISO14443A_PROTOCOL_SELECT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movl	$1, -48(%rbp)
	movl	%r12d, -44(%rbp)
	movq	_CMD_WTX_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$1, %edx
	xorl	%r8d, %r8d
	callq	_st95hf_send_recv_cmd
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_14
LBB0_7:
	movq	_NFC_PROTO_ISO14443_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.8:
	movq	_CMD_ISO14443B_PROTOCOL_SELECT@GOTPCREL(%rip), %rax
LBB0_9:
	movq	_cmd_array@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rax
	movb	3(%rax), %al
	jmp	LBB0_10
LBB0_16:
	xorl	%eax, %eax
LBB0_10:
	movzbl	%al, %esi
	movq	%r15, %rdi
	callq	_iso14443_config_fdt
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_17
## %bb.15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Config. setting error on WTX req, err = 0x%x\n"

	.comm	_CMD_WTX_RESPONSE,4,2           ## @CMD_WTX_RESPONSE
L_.str.1:                               ## @.str.1
	.asciz	"WTX response send, err = 0x%x\n"

	.comm	_NFC_PROTO_ISO14443,8,3         ## @NFC_PROTO_ISO14443
	.comm	_cmd_array,8,3                  ## @cmd_array
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ## @CMD_ISO14443A_PROTOCOL_SELECT
	.comm	_NFC_PROTO_ISO14443_B,8,3       ## @NFC_PROTO_ISO14443_B
	.comm	_CMD_ISO14443B_PROTOCOL_SELECT,8,3 ## @CMD_ISO14443B_PROTOCOL_SELECT
L_.str.2:                               ## @.str.2
	.asciz	"Default config. setting error after WTX processing, err = 0x%x\n"

	.no_dead_strip	_st95hf_handle_wtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_handle_wtx
_st95hf_handle_wtx:                     ; @st95hf_handle_wtx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x19, [x0]
	cbz	w1, LBB0_3
; %bb.1:
	mov	x22, x2
	and	w1, w2, #0x3f
	mov	x0, x20
	bl	_iso14443_config_fdt
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _NFC_PROTO_ISO14443@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NFC_PROTO_ISO14443@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	mov	w8, #1
	stp	w8, w22, [sp]
Lloh10:
	adrp	x8, _CMD_WTX_RESPONSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CMD_WTX_RESPONSE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	w2, #1
	mov	w4, #0
	bl	_st95hf_send_recv_cmd
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.6:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_7:
Lloh15:
	adrp	x9, _NFC_PROTO_ISO14443_B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NFC_PROTO_ISO14443_B@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh18:
	adrp	x8, _CMD_ISO14443B_PROTOCOL_SELECT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CMD_ISO14443B_PROTOCOL_SELECT@GOTPAGEOFF]
LBB0_9:
Lloh20:
	adrp	x9, _cmd_array@GOTPAGE
Lloh21:
	ldr	x9, [x9, _cmd_array@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	ldrb	w1, [x8, #3]
	b	LBB0_11
LBB0_10:
	mov	w1, #0
LBB0_11:
	mov	x0, x20
	bl	_iso14443_config_fdt
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.12:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_14:
	ldr	x8, [sp, #8]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Config. setting error on WTX req, err = 0x%x\n"

	.comm	_CMD_WTX_RESPONSE,4,2           ; @CMD_WTX_RESPONSE
l_.str.1:                               ; @.str.1
	.asciz	"WTX response send, err = 0x%x\n"

	.comm	_NFC_PROTO_ISO14443,8,3         ; @NFC_PROTO_ISO14443
	.comm	_cmd_array,8,3                  ; @cmd_array
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ; @CMD_ISO14443A_PROTOCOL_SELECT
	.comm	_NFC_PROTO_ISO14443_B,8,3       ; @NFC_PROTO_ISO14443_B
	.comm	_CMD_ISO14443B_PROTOCOL_SELECT,8,3 ; @CMD_ISO14443B_PROTOCOL_SELECT
l_.str.2:                               ; @.str.2
	.asciz	"Default config. setting error after WTX processing, err = 0x%x\n"

	.no_dead_strip	_st95hf_handle_wtx
.subsections_via_symbols
