	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_nci_hci_cmd_received        ## -- Begin function st_nci_hci_cmd_received
	.p2align	4, 0x90
_st_nci_hci_cmd_received:               ## @st_nci_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	_nci_get_drvdata
	movq	%rax, %r14
	movq	(%r15), %rax
	movq	8(%rax), %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	_ST_NCI_APDU_READER_GATE@GOTPCREL(%rip), %rcx
	movq	(%r15), %rax
	cmpq	(%rcx), %r13
	je	LBB0_4
## %bb.2:
	movq	8(%rax), %rcx
	movl	8(%rcx,%rbx), %ecx
	movq	_ST_NCI_UICC_HOST_ID@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	incl	(%rax)
LBB0_4:
	movl	(%rax), %ecx
	cmpl	4(%rax), %ecx
	jne	LBB0_5
## %bb.6:
	leaq	8(%r14), %rdi
	callq	_del_timer_sync
	movl	$0, (%r14)
	movq	(%r15), %rax
	movl	$0, (%rax)
	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	_ST_NCI_APDU_READER_GATE,8,3    ## @ST_NCI_APDU_READER_GATE
	.comm	_ST_NCI_UICC_HOST_ID,4,2        ## @ST_NCI_UICC_HOST_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_nci_hci_cmd_received        ; -- Begin function st_nci_hci_cmd_received
	.p2align	2
_st_nci_hci_cmd_received:               ; @st_nci_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	x21, x1
	mov	x19, x0
	bl	_nci_get_drvdata
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	lsl	x9, x21, #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, _ST_NCI_APDU_READER_GATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_NCI_APDU_READER_GATE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x8]
	ldr	x8, [x19]
	cmp	x23, x9
	b.eq	LBB0_4
; %bb.2:
	ldr	x9, [x8, #8]
	add	x9, x9, x21, lsl #4
	ldr	w9, [x9, #8]
Lloh5:
	adrp	x10, _ST_NCI_UICC_HOST_ID@GOTPAGE
Lloh6:
	ldr	x10, [x10, _ST_NCI_UICC_HOST_ID@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	cmp	w9, w10
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_4:
	ldp	w9, w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_6
; %bb.5:
	add	x0, x20, #8
	bl	_del_timer_sync
	str	wzr, [x20], #4
	ldr	x8, [x19]
	str	wzr, [x8]
	mov	x0, x20
	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	_ST_NCI_APDU_READER_GATE,8,3    ; @ST_NCI_APDU_READER_GATE
	.comm	_ST_NCI_UICC_HOST_ID,4,2        ; @ST_NCI_UICC_HOST_ID
.subsections_via_symbols
