	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_event_received
_pn544_hci_event_received:              ## @pn544_hci_event_received
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax,%rsi,8), %r12
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	callq	_pr_debug
	cmpq	$128, %rbx
	je	LBB0_11
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_10
## %bb.2:
	movl	$1, %r13d
	cmpq	$130, %rbx
	jne	LBB0_18
## %bb.3:
	movq	_PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nfc_hci_target_discovered
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_11:
	cmpl	$1, 8(%r14)
	jg	LBB0_13
## %bb.12:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_10:
	movq	_NFC_HCI_EVT_END_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_hci_send_event
	movl	%eax, %r13d
	jmp	LBB0_17
LBB0_5:
	movq	_PN544_RF_READER_NFCIP1_TARGET_GATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_8
## %bb.6:
	movq	_PN544_DEP_ATR_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_7
## %bb.16:
	movl	(%r15), %edi
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFC_COMM_PASSIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rax
	movq	(%rax), %rcx
	movl	8(%rax), %r8d
	callq	_nfc_tm_activated
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi
	callq	_kfree_skb
	jmp	LBB0_17
LBB0_13:
	movq	(%r14), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.14:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_17:
	movq	%r14, %rdi
	callq	_kfree_skb
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%r14, %rdi
	movl	$2, %esi
	callq	_skb_pull
	movl	(%r15), %edi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfc_tm_data_received           ## TAILCALL
LBB0_7:
	movl	%eax, %r13d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hci event %d\n"

	.comm	_PN544_RF_READER_NFCIP1_INITIATOR_GATE,8,3 ## @PN544_RF_READER_NFCIP1_INITIATOR_GATE
	.comm	_PN544_RF_READER_NFCIP1_TARGET_GATE,8,3 ## @PN544_RF_READER_NFCIP1_TARGET_GATE
	.comm	_PN544_DEP_ATR_REQ,4,2          ## @PN544_DEP_ATR_REQ
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ## @NFC_COMM_PASSIVE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NFC_HCI_EVT_END_OPERATION,4,2  ## @NFC_HCI_EVT_END_OPERATION
	.comm	_EPROTO,4,2                     ## @EPROTO
L_.str.1:                               ## @.str.1
	.asciz	"data0 %d\n"

	.no_dead_strip	_pn544_hci_event_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn544_hci_event_received
_pn544_hci_event_received:              ; @pn544_hci_event_received
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x20, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
	ldr	x21, [x8, x1, lsl #3]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_pr_debug
	cmp	x22, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	x22, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	x22, #130
	b.ne	LBB0_10
; %bb.3:
Lloh2:
	adrp	x8, _PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PN544_RF_READER_NFCIP1_INITIATOR_GATE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x20
	mov	x1, x21
	bl	_nfc_hci_target_discovered
	mov	x21, x0
	b	LBB0_16
LBB0_5:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.le	LBB0_8
; %bb.6:
	ldr	x8, [x19]
	ldr	x1, [x8]
	cbz	x1, LBB0_18
; %bb.7:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_8:
Lloh7:
	adrp	x8, _EPROTO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_15
LBB0_9:
Lloh9:
	adrp	x8, _NFC_HCI_EVT_END_OPERATION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFC_HCI_EVT_END_OPERATION@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_nfc_hci_send_event
	mov	x21, x0
	b	LBB0_16
LBB0_10:
	mov	w21, #1
	b	LBB0_17
LBB0_11:
Lloh12:
	adrp	x8, _PN544_RF_READER_NFCIP1_TARGET_GATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PN544_RF_READER_NFCIP1_TARGET_GATE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_14
; %bb.12:
Lloh15:
	adrp	x8, _PN544_DEP_ATR_REQ@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PN544_DEP_ATR_REQ@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_19
; %bb.13:
	ldr	w0, [x20]
Lloh18:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _NFC_COMM_PASSIVE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NFC_COMM_PASSIVE@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	ldr	x8, [sp, #8]
	ldr	x3, [x8]
	ldr	w4, [x8, #8]
	bl	_nfc_tm_activated
	mov	x21, x0
	ldr	x0, [sp, #8]
	bl	_kfree_skb
	b	LBB0_16
LBB0_14:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_15:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_16:
	mov	x0, x19
	bl	_kfree_skb
LBB0_17:
	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
LBB0_18:
	mov	x0, x19
	mov	w1, #2
	bl	_skb_pull
	ldr	w0, [x20]
	mov	x1, x19
	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
	b	_nfc_tm_data_received
LBB0_19:
	mov	x21, x0
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hci event %d\n"

	.comm	_PN544_RF_READER_NFCIP1_INITIATOR_GATE,8,3 ; @PN544_RF_READER_NFCIP1_INITIATOR_GATE
	.comm	_PN544_RF_READER_NFCIP1_TARGET_GATE,8,3 ; @PN544_RF_READER_NFCIP1_TARGET_GATE
	.comm	_PN544_DEP_ATR_REQ,4,2          ; @PN544_DEP_ATR_REQ
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ; @NFC_COMM_PASSIVE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NFC_HCI_EVT_END_OPERATION,4,2  ; @NFC_HCI_EVT_END_OPERATION
	.comm	_EPROTO,4,2                     ; @EPROTO
l_.str.1:                               ; @.str.1
	.asciz	"data0 %d\n"

	.no_dead_strip	_pn544_hci_event_received
.subsections_via_symbols
