	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_complete_target_discovered
_st21nfca_hci_complete_target_discovered: ## @st21nfca_hci_complete_target_discovered
	.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	$0, -40(%rbp)
	movq	_ST21NFCA_RF_READER_F_GATE@GOTPCREL(%rip), %r12
	movl	$1, %r15d
	cmpq	%rsi, (%r12)
	jne	LBB0_14
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	_ST21NFCA_RF_READER_F_NFCID2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movq	-40(%rbp), %rdi
	movq	(%rdi), %rdx
	movq	_NFC_SENSF_RES_MAXSIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jle	LBB0_5
LBB0_3:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_5:
	testq	%rdx, %rdx
	jle	LBB0_9
## %bb.6:
	movq	(%r14), %rax
	movl	8(%rdi), %esi
	movq	%rax, %rdi
	callq	_memcpy
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	(%r14), %rax
	cmpl	$1, (%rax)
	jne	LBB0_8
## %bb.7:
	cmpl	$254, 4(%rax)
	je	LBB0_12
LBB0_8:
	movq	_NFC_PROTO_FELICA_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_9:
	callq	_kfree_skb
	movq	$0, -40(%rbp)
	movq	(%r12), %rsi
	movq	_ST21NFCA_RF_READER_F_NFCID1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_4
## %bb.10:
	movq	-40(%rbp), %rax
	movq	(%rax), %rdx
	movq	_NFC_NFCID1_MAXSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_3
## %bb.11:
	movq	(%r14), %rdi
	movl	8(%rax), %esi
	callq	_memcpy
	movq	-40(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
LBB0_12:
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	(%r12), %rax
	movq	%rax, 16(%r14)
	jmp	LBB0_14
LBB0_4:
	movl	%eax, %r15d
LBB0_14:
	movq	-40(%rbp), %rdi
	callq	_kfree_skb
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_RF_READER_F_GATE,8,3  ## @ST21NFCA_RF_READER_F_GATE
	.comm	_ST21NFCA_RF_READER_F_NFCID2,4,2 ## @ST21NFCA_RF_READER_F_NFCID2
	.comm	_NFC_SENSF_RES_MAXSIZE,8,3      ## @NFC_SENSF_RES_MAXSIZE
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_NFC_PROTO_NFC_DEP_MASK,8,3     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_PROTO_FELICA_MASK,8,3      ## @NFC_PROTO_FELICA_MASK
	.comm	_ST21NFCA_RF_READER_F_NFCID1,4,2 ## @ST21NFCA_RF_READER_F_NFCID1
	.comm	_NFC_NFCID1_MAXSIZE,8,3         ## @NFC_NFCID1_MAXSIZE
	.no_dead_strip	_st21nfca_hci_complete_target_discovered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_complete_target_discovered
_st21nfca_hci_complete_target_discovered: ; @st21nfca_hci_complete_target_discovered
	.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
	str	xzr, [sp, #8]
Lloh0:
	adrp	x22, _ST21NFCA_RF_READER_F_GATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ST21NFCA_RF_READER_F_GATE@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, x1
	b.ne	LBB0_13
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh2:
	adrp	x8, _ST21NFCA_RF_READER_F_NFCID2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST21NFCA_RF_READER_F_NFCID2@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_14
; %bb.2:
	ldr	x0, [sp, #8]
	ldr	x2, [x0]
Lloh5:
	adrp	x8, _NFC_SENSF_RES_MAXSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFC_SENSF_RES_MAXSIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x2, x8
	b.le	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _EPROTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_4:
	cmp	x2, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x8, [x19]
	ldr	w1, [x0, #8]
	mov	x0, x8
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	x8, [x19]
	ldr	w9, [x8]
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w8, [x8, #4]
	cmp	w8, #254
	b.eq	LBB0_11
LBB0_7:
Lloh11:
	adrp	x8, _NFC_PROTO_FELICA_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NFC_PROTO_FELICA_MASK@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
	bl	_kfree_skb
	str	xzr, [sp, #8]
	ldr	x1, [x22]
Lloh13:
	adrp	x8, _ST21NFCA_RF_READER_F_NFCID1@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ST21NFCA_RF_READER_F_NFCID1@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_14
; %bb.9:
	ldr	x8, [sp, #8]
	ldr	x2, [x8]
Lloh16:
	adrp	x9, _NFC_NFCID1_MAXSIZE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NFC_NFCID1_MAXSIZE@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x2, x9
	b.gt	LBB0_3
; %bb.10:
	ldr	x0, [x19]
	ldr	w1, [x8, #8]
	bl	_memcpy
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_11:
Lloh19:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
LBB0_12:
	ldr	x8, [x8]
	ldr	x9, [x22]
	stp	x9, x8, [x19, #16]
LBB0_13:
	mov	w21, #1
	b	LBB0_15
LBB0_14:
	mov	x21, x0
LBB0_15:
	ldr	x0, [sp, #8]
	bl	_kfree_skb
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_RF_READER_F_GATE,8,3  ; @ST21NFCA_RF_READER_F_GATE
	.comm	_ST21NFCA_RF_READER_F_NFCID2,4,2 ; @ST21NFCA_RF_READER_F_NFCID2
	.comm	_NFC_SENSF_RES_MAXSIZE,8,3      ; @NFC_SENSF_RES_MAXSIZE
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_NFC_PROTO_NFC_DEP_MASK,8,3     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_PROTO_FELICA_MASK,8,3      ; @NFC_PROTO_FELICA_MASK
	.comm	_ST21NFCA_RF_READER_F_NFCID1,4,2 ; @ST21NFCA_RF_READER_F_NFCID1
	.comm	_NFC_NFCID1_MAXSIZE,8,3         ; @NFC_NFCID1_MAXSIZE
	.no_dead_strip	_st21nfca_hci_complete_target_discovered
.subsections_via_symbols
