	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_target_discovered
_microread_target_discovered:           ## @microread_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	%ebx, (%rax)
	leal	-128(%rbx), %eax
	cmpl	$4, %eax
	ja	LBB0_13
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_14:
	movq	_NFC_PROTO_FELICA_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movl	12(%r12), %edi
	movq	_MICROREAD_EMCF_T3_UID@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	$8, 8(%r12)
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_10:
	movq	_NFC_PROTO_ISO14443_B_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movl	12(%r12), %edi
	movq	_MICROREAD_EMCF_B_UID@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_4:
	movq	(%r14), %rax
	movq	_MICROREAD_EMCF_A_SAK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_nfc_hci_sak_to_protocol
	movq	%rax, 16(%r12)
	movq	(%r14), %rax
	movq	_MICROREAD_EMCF_A_ATQA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_be16_to_cpu
	movq	%rax, 24(%r12)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 4(%r12)
	movq	_MICROREAD_EMCF_A_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 8(%r12)
	cmpl	$5, %edx
	jae	LBB0_5
## %bb.6:
	movl	12(%r12), %edi
	movq	_MICROREAD_EMCF_A_UID@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_13:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_info
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_12:
	movq	_NFC_PROTO_JEWEL_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	(%r14), %rax
	movq	_MICROREAD_EMCF_T1_ATQA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r12)
	movl	12(%r12), %edi
	movq	_MICROREAD_EMCF_T1_UID@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rsi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	$4, 8(%r12)
	jmp	LBB0_15
LBB0_8:
	movq	(%r14), %rax
	movq	_MICROREAD_EMCF_A3_SAK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_nfc_hci_sak_to_protocol
	movq	%rax, 16(%r12)
	movq	(%r14), %rax
	movq	_MICROREAD_EMCF_A3_ATQA@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_be16_to_cpu
	movq	%rax, 24(%r12)
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, 4(%r12)
	movq	_MICROREAD_EMCF_A3_LEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	movl	%edx, 8(%r12)
	cmpl	$5, %edx
	jb	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_16
LBB0_9:
	movl	12(%r12), %edi
	movq	_MICROREAD_EMCF_A3_UID@GOTPCREL(%rip), %rcx
LBB0_7:
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	callq	_memcpy
LBB0_15:
	movl	(%r15), %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_nfc_targets_found
	movl	%eax, %ebx
LBB0_16:
	movq	%r12, %rdi
	callq	_kfree
LBB0_17:
	movq	%r14, %rdi
	callq	_kfree_skb
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.19:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_8
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target discovered to gate 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MICROREAD_EMCF_A_SAK,8,3       ## @MICROREAD_EMCF_A_SAK
	.comm	_MICROREAD_EMCF_A_ATQA,8,3      ## @MICROREAD_EMCF_A_ATQA
	.comm	_MICROREAD_EMCF_A_LEN,8,3       ## @MICROREAD_EMCF_A_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MICROREAD_EMCF_A_UID,8,3       ## @MICROREAD_EMCF_A_UID
	.comm	_MICROREAD_EMCF_A3_SAK,8,3      ## @MICROREAD_EMCF_A3_SAK
	.comm	_MICROREAD_EMCF_A3_ATQA,8,3     ## @MICROREAD_EMCF_A3_ATQA
	.comm	_MICROREAD_EMCF_A3_LEN,8,3      ## @MICROREAD_EMCF_A3_LEN
	.comm	_MICROREAD_EMCF_A3_UID,8,3      ## @MICROREAD_EMCF_A3_UID
	.comm	_NFC_PROTO_ISO14443_B_MASK,8,3  ## @NFC_PROTO_ISO14443_B_MASK
	.comm	_MICROREAD_EMCF_B_UID,8,3       ## @MICROREAD_EMCF_B_UID
	.comm	_NFC_PROTO_JEWEL_MASK,8,3       ## @NFC_PROTO_JEWEL_MASK
	.comm	_MICROREAD_EMCF_T1_ATQA,8,3     ## @MICROREAD_EMCF_T1_ATQA
	.comm	_MICROREAD_EMCF_T1_UID,8,3      ## @MICROREAD_EMCF_T1_UID
	.comm	_NFC_PROTO_FELICA_MASK,8,3      ## @NFC_PROTO_FELICA_MASK
	.comm	_MICROREAD_EMCF_T3_UID,8,3      ## @MICROREAD_EMCF_T3_UID
L_.str.1:                               ## @.str.1
	.asciz	"discard target discovered to gate 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to handle discovered target err=%d\n"

	.no_dead_strip	_microread_target_discovered
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microread_target_discovered
_microread_target_discovered:           ; @microread_target_discovered
	.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	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	str	w22, [x0]
	sub	w8, w22, #128
	cmp	w8, #4
	b.hi	LBB0_8
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _NFC_PROTO_FELICA_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _NFC_PROTO_FELICA_MASK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	w0, [x20, #12]
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _MICROREAD_EMCF_T3_UID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MICROREAD_EMCF_T3_UID@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	w22, #8
	mov	w2, #8
	b	LBB0_11
LBB0_4:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_18
LBB0_5:
Lloh16:
	adrp	x8, _NFC_PROTO_ISO14443_B_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NFC_PROTO_ISO14443_B_MASK@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	w0, [x20, #12]
	ldr	x8, [x19]
Lloh19:
	adrp	x9, _MICROREAD_EMCF_B_UID@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MICROREAD_EMCF_B_UID@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19]
Lloh21:
	adrp	x22, _MICROREAD_EMCF_A_SAK@GOTPAGE
Lloh22:
	ldr	x22, [x22, _MICROREAD_EMCF_A_SAK@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_nfc_hci_sak_to_protocol
	str	x0, [x20, #16]
	ldr	x8, [x19]
Lloh23:
	adrp	x9, _MICROREAD_EMCF_A_ATQA@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MICROREAD_EMCF_A_ATQA@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_be16_to_cpu
	str	x0, [x20, #24]
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	w9, [x8, x9, lsl #2]
Lloh26:
	adrp	x10, _MICROREAD_EMCF_A_LEN@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MICROREAD_EMCF_A_LEN@GOTPAGEOFF]
	str	w9, [x20, #4]
Lloh28:
	ldr	x9, [x10]
	ldr	w2, [x8, x9, lsl #2]
	str	w2, [x20, #8]
	cmp	w2, #5
	b.hs	LBB0_13
; %bb.7:
	ldr	w0, [x20, #12]
Lloh29:
	adrp	x9, _MICROREAD_EMCF_A_UID@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MICROREAD_EMCF_A_UID@GOTPAGEOFF]
	b	LBB0_15
LBB0_8:
Lloh31:
	adrp	x0, l_.str.1@PAGE
Lloh32:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_pr_info
	mov	w21, #0
	b	LBB0_17
LBB0_9:
Lloh33:
	adrp	x8, _NFC_PROTO_JEWEL_MASK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NFC_PROTO_JEWEL_MASK@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	str	x8, [x20, #16]
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _MICROREAD_EMCF_T1_ATQA@GOTPAGE
Lloh37:
	ldr	x9, [x9, _MICROREAD_EMCF_T1_ATQA@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le16_to_cpu
	str	x0, [x20, #24]
	ldr	w0, [x20, #12]
	ldr	x8, [x19]
Lloh39:
	adrp	x9, _MICROREAD_EMCF_T1_UID@GOTPAGE
Lloh40:
	ldr	x9, [x9, _MICROREAD_EMCF_T1_UID@GOTPAGEOFF]
LBB0_10:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	mov	w22, #4
	mov	w2, #4
LBB0_11:
	bl	_memcpy
	str	w22, [x20, #8]
	b	LBB0_16
LBB0_12:
	ldr	x8, [x19]
Lloh41:
	adrp	x22, _MICROREAD_EMCF_A3_SAK@GOTPAGE
Lloh42:
	ldr	x22, [x22, _MICROREAD_EMCF_A3_SAK@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w0, [x8, x9, lsl #2]
	bl	_nfc_hci_sak_to_protocol
	str	x0, [x20, #16]
	ldr	x8, [x19]
Lloh43:
	adrp	x9, _MICROREAD_EMCF_A3_ATQA@GOTPAGE
Lloh44:
	ldr	x9, [x9, _MICROREAD_EMCF_A3_ATQA@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	ldr	w0, [x8, x9, lsl #2]
	bl	_be16_to_cpu
	str	x0, [x20, #24]
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	w9, [x8, x9, lsl #2]
Lloh46:
	adrp	x10, _MICROREAD_EMCF_A3_LEN@GOTPAGE
Lloh47:
	ldr	x10, [x10, _MICROREAD_EMCF_A3_LEN@GOTPAGEOFF]
	str	w9, [x20, #4]
Lloh48:
	ldr	x9, [x10]
	ldr	w2, [x8, x9, lsl #2]
	str	w2, [x20, #8]
	cmp	w2, #5
	b.lo	LBB0_14
LBB0_13:
Lloh49:
	adrp	x8, _EINVAL@GOTPAGE
Lloh50:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_14:
	ldr	w0, [x20, #12]
Lloh52:
	adrp	x9, _MICROREAD_EMCF_A3_UID@GOTPAGE
Lloh53:
	ldr	x9, [x9, _MICROREAD_EMCF_A3_UID@GOTPAGEOFF]
LBB0_15:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	bl	_memcpy
LBB0_16:
	ldr	w0, [x21]
	mov	x1, x20
	mov	w2, #1
	bl	_nfc_targets_found
	mov	x21, x0
LBB0_17:
	mov	x0, x20
	bl	_kfree
LBB0_18:
	mov	x0, x19
	bl	_kfree_skb
	cbz	w21, LBB0_20
; %bb.19:
Lloh54:
	adrp	x0, l_.str.2@PAGE
Lloh55:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	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	_pr_err
LBB0_20:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpAdd	Lloh54, Lloh55
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target discovered to gate 0x%x\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MICROREAD_EMCF_A_SAK,8,3       ; @MICROREAD_EMCF_A_SAK
	.comm	_MICROREAD_EMCF_A_ATQA,8,3      ; @MICROREAD_EMCF_A_ATQA
	.comm	_MICROREAD_EMCF_A_LEN,8,3       ; @MICROREAD_EMCF_A_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MICROREAD_EMCF_A_UID,8,3       ; @MICROREAD_EMCF_A_UID
	.comm	_MICROREAD_EMCF_A3_SAK,8,3      ; @MICROREAD_EMCF_A3_SAK
	.comm	_MICROREAD_EMCF_A3_ATQA,8,3     ; @MICROREAD_EMCF_A3_ATQA
	.comm	_MICROREAD_EMCF_A3_LEN,8,3      ; @MICROREAD_EMCF_A3_LEN
	.comm	_MICROREAD_EMCF_A3_UID,8,3      ; @MICROREAD_EMCF_A3_UID
	.comm	_NFC_PROTO_ISO14443_B_MASK,8,3  ; @NFC_PROTO_ISO14443_B_MASK
	.comm	_MICROREAD_EMCF_B_UID,8,3       ; @MICROREAD_EMCF_B_UID
	.comm	_NFC_PROTO_JEWEL_MASK,8,3       ; @NFC_PROTO_JEWEL_MASK
	.comm	_MICROREAD_EMCF_T1_ATQA,8,3     ; @MICROREAD_EMCF_T1_ATQA
	.comm	_MICROREAD_EMCF_T1_UID,8,3      ; @MICROREAD_EMCF_T1_UID
	.comm	_NFC_PROTO_FELICA_MASK,8,3      ; @NFC_PROTO_FELICA_MASK
	.comm	_MICROREAD_EMCF_T3_UID,8,3      ; @MICROREAD_EMCF_T3_UID
l_.str.1:                               ; @.str.1
	.asciz	"discard target discovered to gate 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to handle discovered target err=%d\n"

	.no_dead_strip	_microread_target_discovered
.subsections_via_symbols
