	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_nci_control_se
_st_nci_control_se:                     ## @st_nci_control_se
	.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
	subq	$24, %rsp
	.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
	cmpq	$128, %rbx
	je	LBB0_1
## %bb.2:
	cmpq	$129, %rbx
	jne	LBB0_18
## %bb.3:
	movq	_ST_NCI_SE_COUNT_PIPE_EMBEDDED@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_ST_NCI_SE_COUNT_PIPE_UICC@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%r15), %rcx
	movl	$0, 4(%rcx)
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_reinit_completion
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_nci_nfcee_mode_set
	movq	_NCI_STATUS_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %r12
	addq	$20, %r12
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	%r13, %rbx
	movq	(%rax), %r13
	movq	_ST_NCI_SE_TO_HOT_PLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_mod_timer
	movl	$1, (%r14)
	movq	%rbx, %rdi
	callq	_wait_for_completion_interruptible
	movq	8(%r14), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.6:
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$15000, %edi                    ## imm = 0x3A98
	movl	$20000, %esi                    ## imm = 0x4E20
	callq	_usleep_range
LBB0_8:
	movq	_NCI_HCI_ADMIN_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NCI_HCI_ADMIN_PARAM_HOST_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_nci_hci_get_param
	movq	_NCI_HCI_ANY_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_17
## %bb.9:
	movq	-64(%rbp), %rdi
	movl	(%rdi), %edx
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	LBB0_13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax,%rcx,8)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_10
## %bb.12:
	movl	%edx, %ecx
LBB0_13:
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %r15
	callq	_kfree_skb
	movq	_ST_NCI_SE_MODE_ON@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	jne	LBB0_15
## %bb.14:
	cmpq	%rbx, %r15
	je	LBB0_16
LBB0_15:
	cmpq	%rbx, %r15
	movq	_ST_NCI_SE_MODE_OFF@GOTPCREL(%rip), %rax
	movl	$-1, %ecx
	cmovel	%ecx, %ebx
	cmpq	%r14, (%rax)
	cmovnel	%ecx, %ebx
LBB0_16:
	movl	%ebx, %eax
	jmp	LBB0_17
LBB0_18:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_NCI_SE_COUNT_PIPE_UICC,4,2  ## @ST_NCI_SE_COUNT_PIPE_UICC
	.comm	_ST_NCI_SE_COUNT_PIPE_EMBEDDED,4,2 ## @ST_NCI_SE_COUNT_PIPE_EMBEDDED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NCI_STATUS_OK,4,2              ## @NCI_STATUS_OK
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ST_NCI_SE_TO_HOT_PLUG,4,2      ## @ST_NCI_SE_TO_HOT_PLUG
	.comm	_NCI_HCI_ADMIN_GATE,4,2         ## @NCI_HCI_ADMIN_GATE
	.comm	_NCI_HCI_ADMIN_PARAM_HOST_LIST,4,2 ## @NCI_HCI_ADMIN_PARAM_HOST_LIST
	.comm	_NCI_HCI_ANY_OK,4,2             ## @NCI_HCI_ANY_OK
	.comm	_ST_NCI_SE_MODE_ON,8,3          ## @ST_NCI_SE_MODE_ON
	.comm	_ST_NCI_SE_MODE_OFF,8,3         ## @ST_NCI_SE_MODE_OFF
	.no_dead_strip	_st_nci_control_se
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_nci_control_se
_st_nci_control_se:                     ; @st_nci_control_se
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_nci_get_drvdata
	mov	x22, x0
	cmp	x19, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	x19, #129
	b.ne	LBB0_14
; %bb.2:
Lloh0:
	adrp	x8, _ST_NCI_SE_COUNT_PIPE_EMBEDDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_NCI_SE_COUNT_PIPE_EMBEDDED@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ST_NCI_SE_COUNT_PIPE_UICC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_NCI_SE_COUNT_PIPE_UICC@GOTPAGEOFF]
LBB0_4:
	ldr	x9, [x21]
	ldr	w8, [x8]
	stp	w8, wzr, [x9]
	add	x23, x22, #16
	mov	x0, x23
	bl	_reinit_completion
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_nci_nfcee_mode_set
Lloh4:
	adrp	x8, _NCI_STATUS_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NCI_STATUS_OK@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.5:
	add	x24, x22, #20
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	x25, [x8]
Lloh10:
	adrp	x8, _ST_NCI_SE_TO_HOT_PLUG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ST_NCI_SE_TO_HOT_PLUG@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x25
	mov	x0, x24
	bl	_mod_timer
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x23
	bl	_wait_for_completion_interruptible
	ldr	x8, [x22, #8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	w0, #15000
	mov	w1, #20000
	bl	_usleep_range
LBB0_8:
Lloh13:
	adrp	x8, _NCI_HCI_ADMIN_GATE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NCI_HCI_ADMIN_GATE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _NCI_HCI_ADMIN_PARAM_HOST_LIST@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NCI_HCI_ADMIN_PARAM_HOST_LIST@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_nci_hci_get_param
Lloh19:
	adrp	x8, _NCI_HCI_ANY_OK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NCI_HCI_ANY_OK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.9:
	ldr	x0, [sp, #8]
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.10:
	mov	x10, #0
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x10, lsl #3]
	cmp	x11, x19
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_11
; %bb.13:
	mov	x10, x9
	b	LBB0_16
LBB0_14:
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_15:
	mov	w10, #0
LBB0_16:
	ldr	x21, [x8, w10, uxtw #3]
	bl	_kfree_skb
Lloh25:
	adrp	x8, _ST_NCI_SE_MODE_ON@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ST_NCI_SE_MODE_ON@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	cmp	x8, x20
	ccmp	x21, x19, #0, eq
	b.eq	LBB0_18
; %bb.17:
	cmp	x21, x19
Lloh28:
	adrp	x8, _ST_NCI_SE_MODE_OFF@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ST_NCI_SE_MODE_OFF@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	ccmp	x8, x20, #0, ne
	csinv	w0, w19, wzr, eq
	b	LBB0_19
LBB0_18:
	mov	x0, x19
LBB0_19:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_NCI_SE_COUNT_PIPE_UICC,4,2  ; @ST_NCI_SE_COUNT_PIPE_UICC
	.comm	_ST_NCI_SE_COUNT_PIPE_EMBEDDED,4,2 ; @ST_NCI_SE_COUNT_PIPE_EMBEDDED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NCI_STATUS_OK,4,2              ; @NCI_STATUS_OK
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ST_NCI_SE_TO_HOT_PLUG,4,2      ; @ST_NCI_SE_TO_HOT_PLUG
	.comm	_NCI_HCI_ADMIN_GATE,4,2         ; @NCI_HCI_ADMIN_GATE
	.comm	_NCI_HCI_ADMIN_PARAM_HOST_LIST,4,2 ; @NCI_HCI_ADMIN_PARAM_HOST_LIST
	.comm	_NCI_HCI_ANY_OK,4,2             ; @NCI_HCI_ANY_OK
	.comm	_ST_NCI_SE_MODE_ON,8,3          ; @ST_NCI_SE_MODE_ON
	.comm	_ST_NCI_SE_MODE_OFF,8,3         ; @ST_NCI_SE_MODE_OFF
	.no_dead_strip	_st_nci_control_se
.subsections_via_symbols
