	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st95hf_response_handler
_st95hf_response_handler:               ## @st95hf_response_handler
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r12
	movq	24(%rdi), %r13
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_skb_put
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movl	(%r15), %r14d
	movq	(%r13), %rax
	movq	_NFC_PROTO_ISO14443@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	cmpl	$0, 12(%rbx)
	je	LBB0_5
## %bb.2:
	movq	8(%r15), %rax
	movl	4(%rax), %ecx
	movq	_RATS_TB1_PRESENT_MASK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	_RATS_TA1_PRESENT_MASK@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	andl	(%rdx), %ecx
	setne	%sil
	movq	_TB1_FWI_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	8(%rax,%rsi,4), %ecx
	sarl	$4, %ecx
	movl	%ecx, (%rbx)
	movq	_cmd_array@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CMD_ISO14443A_PROTOCOL_SELECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movzbl	3(%rax), %esi
	movq	%rbx, %rdi
	callq	_iso14443_config_fdt
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_11
LBB0_5:
	movl	$0, 12(%rbx)
	movl	4(%rbx), %eax
	xorl	%r13d, %r13d
	leal	-128(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_6
LBB0_9:
	addl	$-3, %r14d
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_skb_trim
	jmp	LBB0_11
LBB0_6:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.7:
	movl	8(%rbx), %eax
	movq	_TRFLAG_NFCA_STD_FRAME_CRC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_9
## %bb.8:
	addl	$-5, %r14d
	jmp	LBB0_10
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFC_PROTO_ISO14443,8,3         ## @NFC_PROTO_ISO14443
	.comm	_RATS_TB1_PRESENT_MASK,4,2      ## @RATS_TB1_PRESENT_MASK
	.comm	_RATS_TA1_PRESENT_MASK,4,2      ## @RATS_TA1_PRESENT_MASK
	.comm	_TB1_FWI_MASK,4,2               ## @TB1_FWI_MASK
	.comm	_cmd_array,8,3                  ## @cmd_array
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ## @CMD_ISO14443A_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error in config_fdt to handle fwi of ATS, error=%d\n"

	.comm	_TRFLAG_NFCA_STD_FRAME_CRC,4,2  ## @TRFLAG_NFCA_STD_FRAME_CRC
	.no_dead_strip	_st95hf_response_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st95hf_response_handler
_st95hf_response_handler:               ; @st95hf_response_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	ldp	x21, x22, [x0, #16]
	mov	x0, x1
	mov	x1, x2
	bl	_skb_put
	mov	x0, x19
	mov	w1, #2
	bl	_skb_pull
	ldr	w23, [x19]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _NFC_PROTO_ISO14443@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NFC_PROTO_ISO14443@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
Lloh3:
	adrp	x10, _RATS_TB1_PRESENT_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RATS_TB1_PRESENT_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_5
; %bb.3:
Lloh6:
	adrp	x10, _RATS_TA1_PRESENT_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RATS_TA1_PRESENT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	mov	w9, #12
	mov	w10, #8
	csel	x9, x10, x9, eq
	ldr	w8, [x8, x9]
Lloh9:
	adrp	x9, _TB1_FWI_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TB1_FWI_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	asr	w8, w8, #4
	str	w8, [x20]
Lloh12:
	adrp	x8, _cmd_array@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cmd_array@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CMD_ISO14443A_PROTOCOL_SELECT@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldrb	w1, [x8, #3]
	mov	x0, x20
	bl	_iso14443_config_fdt
	cbz	w0, LBB0_5
; %bb.4:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x22
	bl	_dev_err
	b	LBB0_11
LBB0_5:
	str	wzr, [x20, #12]
	ldr	w8, [x20, #4]
	sub	w9, w8, #128
	cmp	w9, #2
	b.hs	LBB0_8
LBB0_6:
	sub	w1, w23, #3
LBB0_7:
	mov	x0, x19
	bl	_skb_trim
	mov	w22, #0
	b	LBB0_11
LBB0_8:
	mov	w22, #0
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x20, #8]
Lloh20:
	adrp	x9, _TRFLAG_NFCA_STD_FRAME_CRC@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TRFLAG_NFCA_STD_FRAME_CRC@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.10:
	sub	w1, w23, #5
	b	LBB0_7
LBB0_11:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NFC_PROTO_ISO14443,8,3         ; @NFC_PROTO_ISO14443
	.comm	_RATS_TB1_PRESENT_MASK,4,2      ; @RATS_TB1_PRESENT_MASK
	.comm	_RATS_TA1_PRESENT_MASK,4,2      ; @RATS_TA1_PRESENT_MASK
	.comm	_TB1_FWI_MASK,4,2               ; @TB1_FWI_MASK
	.comm	_cmd_array,8,3                  ; @cmd_array
	.comm	_CMD_ISO14443A_PROTOCOL_SELECT,8,3 ; @CMD_ISO14443A_PROTOCOL_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error in config_fdt to handle fwi of ATS, error=%d\n"

	.comm	_TRFLAG_NFCA_STD_FRAME_CRC,4,2  ; @TRFLAG_NFCA_STD_FRAME_CRC
	.no_dead_strip	_st95hf_response_handler
.subsections_via_symbols
