	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_complete_target_discovered
_pn544_hci_complete_target_discovered:  ## @pn544_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	%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, %rax
	movq	_PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	xorl	%ebx, %ebx
	cmpq	%rax, %rsi
	je	LBB0_23
## %bb.1:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movl	(%rdx), %eax
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.2:
	movq	_PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nfc_hci_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
LBB0_3:
	movq	(%r12), %rax
	movq	%rax, 24(%r15)
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_NFC_PROTO_MIFARE_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.5:
	movl	4(%r15), %r8d
	cmpl	$10, %r8d
	ja	LBB0_7
## %bb.6:
	movl	$1168, %eax                     ## imm = 0x490
	btl	%r8d, %eax
	jae	LBB0_7
## %bb.8:
	movq	_NFC_HCI_RF_READER_A_GATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	8(%r15), %rcx
	movq	%r14, %rdi
LBB0_9:
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfc_hci_send_cmd               ## TAILCALL
LBB0_10:
	movq	_NFC_PROTO_FELICA_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_19
## %bb.11:
	movq	_PN544_RF_READER_F_GATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_PN544_FELICA_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movq	-48(%rbp), %rdi
	cmpl	$8, (%rdi)
	jne	LBB0_14
## %bb.15:
	movq	8(%rdi), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_22
## %bb.16:
	cmpl	$254, 4(%rcx)
	jne	LBB0_22
## %bb.17:
	callq	_kfree_skb
	movq	(%r12), %rsi
	movq	_PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_nfc_hci_send_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_23
## %bb.18:
	movl	(%r13), %eax
	movl	%eax, (%r15)
	jmp	LBB0_3
LBB0_19:
	movq	_NFC_PROTO_ISO14443_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_23
## %bb.20:
	cmpl	$17411, 16(%r15)                ## imm = 0x4403
	jne	LBB0_23
## %bb.21:
	movq	_NFC_HCI_RF_READER_A_GATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_9
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_23
LBB0_14:
	callq	_kfree_skb
LBB0_7:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_22:
	movq	_PN544_RF_READER_F_GATE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_nfc_hci_send_cmd
	movl	%eax, %ebx
	movq	-48(%rbp), %rdi
	callq	_kfree_skb
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_PN544_RF_READER_NFCIP1_INITIATOR_GATE,8,3 ## @PN544_RF_READER_NFCIP1_INITIATOR_GATE
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_PN544_HCI_CMD_CONTINUE_ACTIVATION,4,2 ## @PN544_HCI_CMD_CONTINUE_ACTIVATION
	.comm	_NFC_PROTO_MIFARE_MASK,4,2      ## @NFC_PROTO_MIFARE_MASK
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_NFC_HCI_RF_READER_A_GATE,8,3   ## @NFC_HCI_RF_READER_A_GATE
	.comm	_PN544_RF_READER_CMD_ACTIVATE_NEXT,4,2 ## @PN544_RF_READER_CMD_ACTIVATE_NEXT
	.comm	_NFC_PROTO_FELICA_MASK,4,2      ## @NFC_PROTO_FELICA_MASK
	.comm	_PN544_RF_READER_F_GATE,8,3     ## @PN544_RF_READER_F_GATE
	.comm	_PN544_FELICA_ID,4,2            ## @PN544_FELICA_ID
	.comm	_NFC_PROTO_ISO14443_MASK,4,2    ## @NFC_PROTO_ISO14443_MASK
	.comm	_PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION,4,2 ## @PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION
	.no_dead_strip	_pn544_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 pn544_hci_complete_target_discovered
_pn544_hci_complete_target_discovered:  ; @pn544_hci_complete_target_discovered
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x8, x1
Lloh0:
	adrp	x22, _PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPAGEOFF]
	ldr	x1, [x22]
	cmp	x1, x8
	b.ne	LBB0_2
LBB0_1:
	mov	w21, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x2
	mov	x20, x0
	ldr	w8, [x2]
Lloh2:
	adrp	x23, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_nfc_hci_send_cmd
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
LBB0_4:
	ldr	x8, [x22]
	str	x8, [x19, #24]
LBB0_5:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
Lloh7:
	adrp	x9, _NFC_PROTO_MIFARE_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NFC_PROTO_MIFARE_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
	ldr	w4, [x19, #4]
	cmp	w4, #10
	mov	w8, #1
	lsl	w8, w8, w4
	mov	w9, #1168
	and	w8, w8, w9
	ccmp	w8, #0, #4, ls
	b.eq	LBB0_22
; %bb.8:
Lloh10:
	adrp	x8, _NFC_HCI_RF_READER_A_GATE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NFC_HCI_RF_READER_A_GATE@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
Lloh13:
	adrp	x8, _PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	mov	x0, x20
LBB0_9:
	mov	x5, #0
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_nfc_hci_send_cmd
LBB0_10:
Lloh16:
	adrp	x9, _NFC_PROTO_FELICA_MASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NFC_PROTO_FELICA_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.11:
Lloh19:
	adrp	x24, _PN544_RF_READER_F_GATE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _PN544_RF_READER_F_GATE@GOTPAGEOFF]
	ldr	x1, [x24]
Lloh21:
	adrp	x8, _PN544_FELICA_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PN544_FELICA_ID@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_20
; %bb.12:
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, #8
	b.ne	LBB0_21
; %bb.13:
	ldr	x3, [x0, #8]
	ldr	w8, [x3]
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.14:
	ldr	w8, [x3, #4]
	cmp	w8, #254
	b.ne	LBB0_23
; %bb.15:
	bl	_kfree_skb
	ldr	x1, [x22]
Lloh24:
	adrp	x8, _PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPAGE
Lloh25:
	ldr	x8, [x8, _PN544_HCI_CMD_CONTINUE_ACTIVATION@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	bl	_nfc_hci_send_cmd
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.16:
	ldr	w8, [x23]
	str	w8, [x19]
	b	LBB0_4
LBB0_17:
Lloh27:
	adrp	x9, _NFC_PROTO_ISO14443_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _NFC_PROTO_ISO14443_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.18:
	ldr	w8, [x19, #16]
	mov	w9, #17411
	cmp	w8, w9
	b.ne	LBB0_1
; %bb.19:
Lloh30:
	adrp	x8, _NFC_HCI_RF_READER_A_GATE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NFC_HCI_RF_READER_A_GATE@GOTPAGEOFF]
Lloh32:
	ldr	x1, [x8]
Lloh33:
	adrp	x8, _PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION@GOTPAGE
Lloh34:
	ldr	x8, [x8, _PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x3, #0
	mov	w4, #0
	b	LBB0_9
LBB0_20:
	mov	x21, x0
	b	LBB0_5
LBB0_21:
	bl	_kfree_skb
LBB0_22:
Lloh36:
	adrp	x8, _EPROTO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_23:
	ldr	x1, [x24]
Lloh39:
	adrp	x8, _PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PN544_RF_READER_CMD_ACTIVATE_NEXT@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w4, #8
	mov	x5, #0
	bl	_nfc_hci_send_cmd
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_kfree_skb
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_PN544_RF_READER_NFCIP1_INITIATOR_GATE,8,3 ; @PN544_RF_READER_NFCIP1_INITIATOR_GATE
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_PN544_HCI_CMD_CONTINUE_ACTIVATION,4,2 ; @PN544_HCI_CMD_CONTINUE_ACTIVATION
	.comm	_NFC_PROTO_MIFARE_MASK,4,2      ; @NFC_PROTO_MIFARE_MASK
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_NFC_HCI_RF_READER_A_GATE,8,3   ; @NFC_HCI_RF_READER_A_GATE
	.comm	_PN544_RF_READER_CMD_ACTIVATE_NEXT,4,2 ; @PN544_RF_READER_CMD_ACTIVATE_NEXT
	.comm	_NFC_PROTO_FELICA_MASK,4,2      ; @NFC_PROTO_FELICA_MASK
	.comm	_PN544_RF_READER_F_GATE,8,3     ; @PN544_RF_READER_F_GATE
	.comm	_PN544_FELICA_ID,4,2            ; @PN544_FELICA_ID
	.comm	_NFC_PROTO_ISO14443_MASK,4,2    ; @NFC_PROTO_ISO14443_MASK
	.comm	_PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION,4,2 ; @PN544_RF_READER_A_CMD_CONTINUE_ACTIVATION
	.no_dead_strip	_pn544_hci_complete_target_discovered
.subsections_via_symbols
