	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_nci_se_get_atr
_st_nci_se_get_atr:                     ## @st_nci_se_get_atr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_nci_get_drvdata
	movq	%rax, %r14
	movq	_ST_NCI_APDU_READER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NCI_HCI_APDU_PARAM_ATR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nci_hci_get_param
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movq	-24(%rbp), %rdi
	movq	(%rdi), %rdx
	movq	_ST_NCI_ESE_MAX_LENGTH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jg	LBB0_3
## %bb.2:
	movl	4(%r14), %eax
	movl	8(%rdi), %esi
	movl	%eax, %edi
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_st_nci_se_get_bwi
	movl	%eax, %edi
	callq	_ST_NCI_BWI_TO_TIMEOUT
	movl	%eax, (%r14)
	movq	-24(%rbp), %rdi
LBB0_3:
	callq	_kfree_skb
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_NCI_APDU_READER_GATE,4,2    ## @ST_NCI_APDU_READER_GATE
	.comm	_NCI_HCI_APDU_PARAM_ATR,4,2     ## @NCI_HCI_APDU_PARAM_ATR
	.comm	_ST_NCI_ESE_MAX_LENGTH,8,3      ## @ST_NCI_ESE_MAX_LENGTH
	.no_dead_strip	_st_nci_se_get_atr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_nci_se_get_atr
_st_nci_se_get_atr:                     ; @st_nci_se_get_atr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	bl	_nci_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x8, _ST_NCI_APDU_READER_GATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_NCI_APDU_READER_GATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _NCI_HCI_APDU_PARAM_ATR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCI_HCI_APDU_PARAM_ATR@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_nci_hci_get_param
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	x0, [sp, #8]
	ldr	x2, [x0]
Lloh6:
	adrp	x8, _ST_NCI_ESE_MAX_LENGTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST_NCI_ESE_MAX_LENGTH@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x2, x8
	b.gt	LBB0_3
; %bb.2:
	ldr	w8, [x19, #4]
	ldr	w1, [x0, #8]
	mov	x0, x8
	bl	_memcpy
	mov	x0, x20
	bl	_st_nci_se_get_bwi
	bl	_ST_NCI_BWI_TO_TIMEOUT
	str	w0, [x19]
	ldr	x0, [sp, #8]
LBB0_3:
	bl	_kfree_skb
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_NCI_APDU_READER_GATE,4,2    ; @ST_NCI_APDU_READER_GATE
	.comm	_NCI_HCI_APDU_PARAM_ATR,4,2     ; @NCI_HCI_APDU_PARAM_ATR
	.comm	_ST_NCI_ESE_MAX_LENGTH,8,3      ; @ST_NCI_ESE_MAX_LENGTH
	.no_dead_strip	_st_nci_se_get_atr
.subsections_via_symbols
