	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iso14443_config_fdt
_iso14443_config_fdt:                   ## @iso14443_config_fdt
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	8(%rdi), %rax
	movq	16(%rdi), %r14
	movl	(%rax), %ecx
	cmpl	$129, %ecx
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$3, %eax
	jg	LBB0_3
## %bb.2:
	movl	$4, (%rbx)
	movl	$4, %eax
LBB0_3:
	movl	$2, -48(%rbp)
	movl	%eax, -44(%rbp)
	movl	$3, -40(%rbp)
	movl	%esi, -36(%rbp)
	movq	_CMD_ISO14443A_PROTOCOL_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_st95hf_send_recv_cmd
	testl	%eax, %eax
	je	LBB0_9
## %bb.4:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_5:
	movq	_cmd_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_CMD_ISO14443B_PROTOCOL_SELECT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdx,%rax,8), %rdx
	movzbl	2(%rdx), %edx
	movl	$2, -48(%rbp)
	cmpl	$128, %ecx
	jne	LBB0_8
## %bb.6:
	movl	%edx, -44(%rbp)
	movl	$3, -40(%rbp)
	movl	%esi, -36(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$2, %edx
	movl	$1, %r8d
	callq	_st95hf_send_recv_cmd
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_9:
	movq	%rbx, %rdi
	callq	_secondary_configuration_type4a
	testl	%eax, %eax
	je	LBB0_17
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_secondary_configuration_type4b
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rsi
LBB0_13:
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_err
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_18
## %bb.15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_cmd_array,8,3                  ## @cmd_array
	.comm	_CMD_ISO14443B_PROTOCOL_SELECT,8,3 ## @CMD_ISO14443B_PROTOCOL_SELECT
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ## @CMD_ISO14443A_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WTX type a sel proto, err = 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"WTX type a second. config, err = 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"WTX type b sel proto, err = 0x%x\n"

L_.str.3:                               ## @.str.3
	.asciz	"WTX type b second. config, err = 0x%x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iso14443_config_fdt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iso14443_config_fdt
_iso14443_config_fdt:                   ; @iso14443_config_fdt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, #24]
	ldp	x8, x19, [x0, #8]
	ldr	w9, [x8]
	cmp	w9, #129
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #3
	b.gt	LBB0_3
; %bb.2:
	mov	w8, #4
	str	w8, [x20]
LBB0_3:
	mov	w9, #2
	stp	w9, w8, [sp, #8]
	mov	w8, #3
	stp	w8, w1, [sp, #16]
Lloh3:
	adrp	x8, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #2
	mov	w4, #1
	bl	_st95hf_send_recv_cmd
	cbz	w0, LBB0_9
; %bb.4:
	mov	x21, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_13
LBB0_5:
Lloh8:
	adrp	x8, _cmd_array@GOTPAGE
Lloh9:
	ldr	x8, [x8, _cmd_array@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x8]
Lloh11:
	adrp	x8, _CMD_ISO14443B_PROTOCOL_SELECT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMD_ISO14443B_PROTOCOL_SELECT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x10, [x10, x8, lsl #3]
	ldrb	w10, [x10, #2]
	mov	w11, #2
	str	w11, [sp, #8]
	cmp	w9, #128
	b.ne	LBB0_8
; %bb.6:
	mov	w9, #3
	stp	w10, w9, [sp, #12]
	str	w1, [sp, #20]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x8
	mov	w2, #2
	mov	w4, #1
	bl	_st95hf_send_recv_cmd
	cbz	w0, LBB0_11
; %bb.7:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_14
LBB0_9:
	mov	x0, x20
	bl	_secondary_configuration_type4a
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.10:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	mov	x0, x20
	bl	_secondary_configuration_type4b
	mov	x21, x0
	cbz	w0, LBB0_14
; %bb.12:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_13:
	mov	x0, x19
	mov	x2, x21
	bl	_dev_err
LBB0_14:
	ldr	x8, [sp, #24]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_cmd_array,8,3                  ; @cmd_array
	.comm	_CMD_ISO14443B_PROTOCOL_SELECT,8,3 ; @CMD_ISO14443B_PROTOCOL_SELECT
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ; @CMD_ISO14443A_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WTX type a sel proto, err = 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"WTX type a second. config, err = 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"WTX type b sel proto, err = 0x%x\n"

l_.str.3:                               ; @.str.3
	.asciz	"WTX type b second. config, err = 0x%x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iso14443_config_fdt
.subsections_via_symbols
