	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_control_se
_st21nfca_hci_control_se:               ## @st21nfca_hci_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, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_nfc_hci_get_clientdata
	movq	%rax, %r12
	cmpq	$129, %r13
	je	LBB0_3
## %bb.1:
	cmpq	$128, %r13
	jne	LBB0_11
## %bb.2:
	movq	_ST21NFCA_SE_COUNT_PIPE_EMBEDDED@GOTPCREL(%rip), %rax
	movq	_ST21NFCA_EVT_SE_DEACTIVATE@GOTPCREL(%rip), %rcx
	movq	_ST21NFCA_EVT_SE_ACTIVATE@GOTPCREL(%rip), %rdx
	jmp	LBB0_4
LBB0_3:
	movq	_ST21NFCA_SE_COUNT_PIPE_UICC@GOTPCREL(%rip), %rax
	movq	_ST21NFCA_EVT_UICC_DEACTIVATE@GOTPCREL(%rip), %rcx
	movq	_ST21NFCA_EVT_UICC_ACTIVATE@GOTPCREL(%rip), %rdx
LBB0_4:
	movq	_ST21NFCA_SE_MODE_ON@GOTPCREL(%rip), %rsi
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	cmpq	%rbx, (%rsi)
	cmovneq	%rcx, %rdx
	movq	(%rdx), %r14
	movl	$0, 16(%r12)
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	leaq	4(%r12), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	_ST21NFCA_DEVICE_MGNT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_hci_send_event
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	%r12, %r14
	addq	$8, %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rbx
	movq	_ST21NFCA_SE_TO_HOT_PLUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mod_timer
	movl	$1, (%r12)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_wait_for_completion_interruptible
	movq	_NFC_HCI_ADMIN_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFC_HCI_ADMIN_HOST_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	movq	%r15, %rdi
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	movq	-64(%rbp), %rdi
	movl	(%rdi), %edx
	movq	8(%rdi), %rax
	xorl	%ecx, %ecx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_ST21NFCA_SE_MODE_ON@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r13, (%rax,%rcx,8)
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rdx
	jne	LBB0_8
## %bb.10:
	movl	%edx, %ecx
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %r13d
	jmp	LBB0_18
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_18
LBB0_14:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	_ST21NFCA_SE_MODE_ON@GOTPCREL(%rip), %r15
LBB0_15:
	movl	%ecx, %ecx
	movq	(%rax,%rcx,8), %rbx
	callq	_kfree_skb
	cmpq	%r14, (%r15)
	jne	LBB0_17
## %bb.16:
	cmpq	%r13, %rbx
	je	LBB0_18
LBB0_17:
	cmpq	%r13, %rbx
	movq	_ST21NFCA_SE_MODE_OFF@GOTPCREL(%rip), %rax
	movl	$-1, %ecx
	cmovel	%ecx, %r13d
	cmpq	%r14, (%rax)
	cmovnel	%ecx, %r13d
LBB0_18:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_SE_MODE_ON,8,3        ## @ST21NFCA_SE_MODE_ON
	.comm	_ST21NFCA_EVT_UICC_ACTIVATE,8,3 ## @ST21NFCA_EVT_UICC_ACTIVATE
	.comm	_ST21NFCA_EVT_UICC_DEACTIVATE,8,3 ## @ST21NFCA_EVT_UICC_DEACTIVATE
	.comm	_ST21NFCA_SE_COUNT_PIPE_UICC,4,2 ## @ST21NFCA_SE_COUNT_PIPE_UICC
	.comm	_ST21NFCA_EVT_SE_ACTIVATE,8,3   ## @ST21NFCA_EVT_SE_ACTIVATE
	.comm	_ST21NFCA_EVT_SE_DEACTIVATE,8,3 ## @ST21NFCA_EVT_SE_DEACTIVATE
	.comm	_ST21NFCA_SE_COUNT_PIPE_EMBEDDED,4,2 ## @ST21NFCA_SE_COUNT_PIPE_EMBEDDED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ST21NFCA_DEVICE_MGNT_GATE,4,2  ## @ST21NFCA_DEVICE_MGNT_GATE
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_ST21NFCA_SE_TO_HOT_PLUG,4,2    ## @ST21NFCA_SE_TO_HOT_PLUG
	.comm	_NFC_HCI_ADMIN_GATE,4,2         ## @NFC_HCI_ADMIN_GATE
	.comm	_NFC_HCI_ADMIN_HOST_LIST,4,2    ## @NFC_HCI_ADMIN_HOST_LIST
	.comm	_ST21NFCA_SE_MODE_OFF,8,3       ## @ST21NFCA_SE_MODE_OFF
	.no_dead_strip	_st21nfca_hci_control_se
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_control_se
_st21nfca_hci_control_se:               ; @st21nfca_hci_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	_nfc_hci_get_clientdata
	mov	x22, x0
	cmp	x19, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	x19, #128
	b.ne	LBB0_11
; %bb.2:
Lloh0:
	adrp	x8, _ST21NFCA_SE_COUNT_PIPE_EMBEDDED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST21NFCA_SE_COUNT_PIPE_EMBEDDED@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ST21NFCA_EVT_SE_DEACTIVATE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ST21NFCA_EVT_SE_DEACTIVATE@GOTPAGEOFF]
Lloh4:
	adrp	x10, _ST21NFCA_EVT_SE_ACTIVATE@GOTPAGE
Lloh5:
	ldr	x10, [x10, _ST21NFCA_EVT_SE_ACTIVATE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _ST21NFCA_SE_COUNT_PIPE_UICC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST21NFCA_SE_COUNT_PIPE_UICC@GOTPAGEOFF]
Lloh8:
	adrp	x9, _ST21NFCA_EVT_UICC_DEACTIVATE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ST21NFCA_EVT_UICC_DEACTIVATE@GOTPAGEOFF]
Lloh10:
	adrp	x10, _ST21NFCA_EVT_UICC_ACTIVATE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _ST21NFCA_EVT_UICC_ACTIVATE@GOTPAGEOFF]
LBB0_4:
Lloh12:
	adrp	x25, _ST21NFCA_SE_MODE_ON@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ST21NFCA_SE_MODE_ON@GOTPAGEOFF]
	ldr	x11, [x25]
	cmp	x11, x20
	csel	x9, x10, x9, eq
	ldr	x24, [x9]
	ldr	w8, [x8]
	stp	w8, wzr, [x22, #12]
	add	x23, x22, #4
	mov	x0, x23
	bl	_reinit_completion
Lloh14:
	adrp	x8, _ST21NFCA_DEVICE_MGNT_GATE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ST21NFCA_DEVICE_MGNT_GATE@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	mov	x3, #0
	mov	w4, #0
	bl	_nfc_hci_send_event
	tbnz	w0, #31, LBB0_16
; %bb.5:
	add	x24, x22, #8
Lloh17:
	adrp	x8, _jiffies@GOTPAGE
Lloh18:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh19:
	ldr	x26, [x8]
Lloh20:
	adrp	x8, _ST21NFCA_SE_TO_HOT_PLUG@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ST21NFCA_SE_TO_HOT_PLUG@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x1, x0, x26
	mov	x0, x24
	bl	_mod_timer
	mov	w8, #1
	str	w8, [x22]
	mov	x0, x23
	bl	_wait_for_completion_interruptible
Lloh23:
	adrp	x8, _NFC_HCI_ADMIN_GATE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NFC_HCI_ADMIN_GATE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _NFC_HCI_ADMIN_HOST_LIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NFC_HCI_ADMIN_HOST_LIST@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x0, x21
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_16
; %bb.6:
	ldr	x0, [sp, #8]
	ldr	w9, [x0]
	ldr	x8, [x0, #8]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.7:
	mov	x10, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x8, x10, lsl #3]
	cmp	x11, x19
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.10:
	mov	x10, x9
	b	LBB0_13
LBB0_11:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_12:
	mov	w10, #0
LBB0_13:
	ldr	x21, [x8, w10, uxtw #3]
	bl	_kfree_skb
	ldr	x8, [x25]
	cmp	x8, x20
	ccmp	x21, x19, #0, eq
	b.eq	LBB0_15
; %bb.14:
	cmp	x21, x19
Lloh32:
	adrp	x8, _ST21NFCA_SE_MODE_OFF@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ST21NFCA_SE_MODE_OFF@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	ccmp	x8, x20, #0, ne
	csinv	w0, w19, wzr, eq
	b	LBB0_16
LBB0_15:
	mov	x0, x19
LBB0_16:
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_SE_MODE_ON,8,3        ; @ST21NFCA_SE_MODE_ON
	.comm	_ST21NFCA_EVT_UICC_ACTIVATE,8,3 ; @ST21NFCA_EVT_UICC_ACTIVATE
	.comm	_ST21NFCA_EVT_UICC_DEACTIVATE,8,3 ; @ST21NFCA_EVT_UICC_DEACTIVATE
	.comm	_ST21NFCA_SE_COUNT_PIPE_UICC,4,2 ; @ST21NFCA_SE_COUNT_PIPE_UICC
	.comm	_ST21NFCA_EVT_SE_ACTIVATE,8,3   ; @ST21NFCA_EVT_SE_ACTIVATE
	.comm	_ST21NFCA_EVT_SE_DEACTIVATE,8,3 ; @ST21NFCA_EVT_SE_DEACTIVATE
	.comm	_ST21NFCA_SE_COUNT_PIPE_EMBEDDED,4,2 ; @ST21NFCA_SE_COUNT_PIPE_EMBEDDED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ST21NFCA_DEVICE_MGNT_GATE,4,2  ; @ST21NFCA_DEVICE_MGNT_GATE
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_ST21NFCA_SE_TO_HOT_PLUG,4,2    ; @ST21NFCA_SE_TO_HOT_PLUG
	.comm	_NFC_HCI_ADMIN_GATE,4,2         ; @NFC_HCI_ADMIN_GATE
	.comm	_NFC_HCI_ADMIN_HOST_LIST,4,2    ; @NFC_HCI_ADMIN_HOST_LIST
	.comm	_ST21NFCA_SE_MODE_OFF,8,3       ; @ST21NFCA_SE_MODE_OFF
	.no_dead_strip	_st21nfca_hci_control_se
.subsections_via_symbols
