	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_tm_recv_atr_req
_st21nfca_tm_recv_atr_req:              ## @st21nfca_tm_recv_atr_req
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	(%rsi), %esi
	decl	%esi
	movq	%rbx, %rdi
	callq	_skb_trim
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_ST21NFCA_ATR_REQ_MIN_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.5:
	movq	8(%rbx), %r15
	cmpl	$7, (%r15)
	ja	LBB0_6
LBB0_4:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_st21nfca_tm_send_atr_res
	testl	%eax, %eax
	jne	LBB0_7
## %bb.8:
	movslq	(%rbx), %r8
	addq	$-8, %r8
	movl	(%r14), %edi
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFC_COMM_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r15), %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfc_tm_activated               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ST21NFCA_ATR_REQ_MIN_SIZE,4,2  ## @ST21NFCA_ATR_REQ_MIN_SIZE
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ## @NFC_COMM_PASSIVE
	.no_dead_strip	_st21nfca_tm_recv_atr_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_tm_recv_atr_req
_st21nfca_tm_recv_atr_req:              ; @st21nfca_tm_recv_atr_req
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_skb_trim
	ldr	w8, [x20]
	cbz	w8, LBB0_4
; %bb.1:
Lloh0:
	adrp	x9, _ST21NFCA_ATR_REQ_MIN_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST21NFCA_ATR_REQ_MIN_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.2:
	ldr	x21, [x20, #8]
	ldr	w8, [x21]
	cmp	w8, #7
	b.hi	LBB0_7
LBB0_3:
Lloh3:
	adrp	x8, _EPROTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_st21nfca_tm_send_atr_res
	cbnz	w0, LBB0_6
; %bb.8:
	ldrsw	x8, [x20]
	sub	x4, x8, #8
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _NFC_COMM_PASSIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFC_COMM_PASSIVE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldr	w3, [x21, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_nfc_tm_activated
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ST21NFCA_ATR_REQ_MIN_SIZE,4,2  ; @ST21NFCA_ATR_REQ_MIN_SIZE
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ; @NFC_COMM_PASSIVE
	.no_dead_strip	_st21nfca_tm_recv_atr_req
.subsections_via_symbols
