	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_cmd_received
_st21nfca_hci_cmd_received:             ## @st21nfca_hci_cmd_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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_nfc_hci_get_clientdata
	movq	%rax, %r14
	movq	(%r15), %rax
	shlq	$4, %rbx
	movq	(%rax,%rbx), %r13
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_pr_debug
	cmpq	$128, %r12
	jne	LBB0_5
## %bb.1:
	movq	_ST21NFCA_APDU_READER_GATE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_4
## %bb.2:
	movq	(%r15), %rax
	movl	8(%rax,%rbx), %eax
	movq	_NFC_HCI_UICC_HOST_ID@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	incl	8(%r14)
LBB0_4:
	movl	8(%r14), %eax
	cmpl	16(%r14), %eax
	jne	LBB0_5
## %bb.6:
	leaq	12(%r14), %rdi
	callq	_del_timer_sync
	movl	$0, (%r14)
	movl	$0, 8(%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_complete                       ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cmd: %x\n"

	.comm	_ST21NFCA_APDU_READER_GATE,8,3  ## @ST21NFCA_APDU_READER_GATE
	.comm	_NFC_HCI_UICC_HOST_ID,4,2       ## @NFC_HCI_UICC_HOST_ID
	.no_dead_strip	_st21nfca_hci_cmd_received
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_cmd_received
_st21nfca_hci_cmd_received:             ; @st21nfca_hci_cmd_received
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	bl	_nfc_hci_get_clientdata
	mov	x19, x0
	ldr	x8, [x21]
	lsl	x9, x20, #4
	ldr	x23, [x8, x9]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_pr_debug
	cmp	x22, #128
	b.ne	LBB0_6
; %bb.1:
Lloh2:
	adrp	x8, _ST21NFCA_APDU_READER_GATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST21NFCA_APDU_READER_GATE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x23, x8
	b.eq	LBB0_4
; %bb.2:
	ldr	x8, [x21]
	add	x8, x8, x20, lsl #4
	ldr	w8, [x8, #8]
Lloh5:
	adrp	x9, _NFC_HCI_UICC_HOST_ID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NFC_HCI_UICC_HOST_ID@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_4:
	ldr	w8, [x19, #8]
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
	add	x0, x19, #12
	bl	_del_timer_sync
	str	wzr, [x19]
	str	wzr, [x19, #8]
	add	x0, x19, #4
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_complete
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cmd: %x\n"

	.comm	_ST21NFCA_APDU_READER_GATE,8,3  ; @ST21NFCA_APDU_READER_GATE
	.comm	_NFC_HCI_UICC_HOST_ID,4,2       ; @NFC_HCI_UICC_HOST_ID
	.no_dead_strip	_st21nfca_hci_cmd_received
.subsections_via_symbols
