	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_event_received
_microread_event_received:              ## @microread_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax,%rsi,8), %r12
	leaq	L_.str(%rip), %rdi
	movq	%rdx, %rsi
	movq	%r12, %rdx
	callq	_pr_info
	addq	$-128, %rbx
	cmpq	$6, %rbx
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	movq	%r14, %rdi
	callq	_kfree_skb
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_4:
	movl	(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_5
## %bb.7:
	movq	8(%r14), %rax
	decl	%esi
	cmpl	$0, (%rax,%rsi,4)
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_kfree_skb
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_14
LBB0_12:
	movq	%r14, %rdi
	callq	_kfree_skb
	movq	$255, -40(%rbp)
	movq	_MICROREAD_GATE_ID_P2P_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MICROREAD_PAR_P2P_TARGET_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	movl	$1, %r8d
	callq	_nfc_hci_set_param
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movq	_MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_hci_send_event
	jmp	LBB0_14
LBB0_10:
	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	8(%r14), %rcx
	movl	(%r14), %r8d
	callq	_nfc_tm_activated
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfree_skb
	movl	%ebx, %eax
	jmp	LBB0_14
LBB0_3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_microread_target_discovered
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_5:
	movq	%r14, %rdi
	callq	_kfree_skb
	movq	_EPROTO@GOTPCREL(%rip), %rcx
LBB0_6:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_trim
	movl	(%r15), %edi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nfc_tm_data_received           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Microread received event 0x%x to gate 0x%x\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ## @NFC_COMM_PASSIVE
	.comm	_MICROREAD_GATE_ID_P2P_TARGET,4,2 ## @MICROREAD_GATE_ID_P2P_TARGET
	.comm	_MICROREAD_PAR_P2P_TARGET_MODE,4,2 ## @MICROREAD_PAR_P2P_TARGET_MODE
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,2 ## @MICROREAD_EVT_MREAD_DISCOVERY_STOP
	.no_dead_strip	_microread_event_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microread_event_received
_microread_event_received:              ; @microread_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
	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
	mov	x2, x21
	bl	_pr_info
	sub	x8, x22, #128
	cmp	x8, #6
	b.hi	LBB0_6
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_kfree_skb
	mov	w0, #0
	b	LBB0_13
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_11
; %bb.4:
	ldr	x9, [x19, #8]
	sub	w1, w8, #1
	ldr	w8, [x9, w1, uxtw #2]
	cbz	w8, LBB0_14
; %bb.5:
	mov	x0, x19
	bl	_kfree_skb
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	mov	w0, #1
	b	LBB0_13
LBB0_7:
	mov	x0, x19
	bl	_kfree_skb
	mov	w8, #255
	str	x8, [sp, #8]
Lloh6:
	adrp	x8, _MICROREAD_GATE_ID_P2P_TARGET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MICROREAD_GATE_ID_P2P_TARGET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _MICROREAD_PAR_P2P_TARGET_MODE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MICROREAD_PAR_P2P_TARGET_MODE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	mov	w4, #1
	bl	_nfc_hci_set_param
	cbnz	w0, LBB0_13
; %bb.8:
Lloh12:
	adrp	x8, _MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MICROREAD_EVT_MREAD_DISCOVERY_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x3, #0
	mov	w4, #0
	bl	_nfc_hci_send_event
	b	LBB0_13
LBB0_9:
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _NFC_COMM_PASSIVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NFC_COMM_PASSIVE@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	x3, [x19, #8]
	ldr	w4, [x19]
	bl	_nfc_tm_activated
	mov	x20, x0
	mov	x0, x19
	bl	_kfree_skb
	mov	x0, x20
	b	LBB0_13
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_microread_target_discovered
	mov	w0, #0
	b	LBB0_13
LBB0_11:
	mov	x0, x19
	bl	_kfree_skb
Lloh21:
	adrp	x8, _EPROTO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	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_14:
	mov	x0, x19
	bl	_skb_trim
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Microread received event 0x%x to gate 0x%x\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_COMM_PASSIVE,4,2           ; @NFC_COMM_PASSIVE
	.comm	_MICROREAD_GATE_ID_P2P_TARGET,4,2 ; @MICROREAD_GATE_ID_P2P_TARGET
	.comm	_MICROREAD_PAR_P2P_TARGET_MODE,4,2 ; @MICROREAD_PAR_P2P_TARGET_MODE
	.comm	_MICROREAD_EVT_MREAD_DISCOVERY_STOP,4,2 ; @MICROREAD_EVT_MREAD_DISCOVERY_STOP
	.no_dead_strip	_microread_event_received
.subsections_via_symbols
