	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_nci_disable_se              ## -- Begin function st_nci_disable_se
	.p2align	4, 0x90
_st_nci_disable_se:                     ## @st_nci_disable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_ST_NCI_SE_MODE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_st_nci_control_se
	xorl	%ecx, %ecx
	testl	%eax, %eax
	jns	LBB0_2
## %bb.1:
	movq	_NFC_SE_EMBEDDED@GOTPCREL(%rip), %rdx
	movl	%eax, %ecx
	cmpq	%rbx, (%rdx)
	jne	LBB0_2
## %bb.3:
	movq	_ST_NCI_APDU_READER_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST_NCI_EVT_SE_END_OF_APDU_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nci_hci_send_event             ## TAILCALL
LBB0_2:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st_nci_disable_se\n"

	.comm	_ST_NCI_SE_MODE_OFF,4,2         ## @ST_NCI_SE_MODE_OFF
	.comm	_NFC_SE_EMBEDDED,8,3            ## @NFC_SE_EMBEDDED
	.comm	_ST_NCI_APDU_READER_GATE,4,2    ## @ST_NCI_APDU_READER_GATE
	.comm	_ST_NCI_EVT_SE_END_OF_APDU_TRANSFER,4,2 ## @ST_NCI_EVT_SE_END_OF_APDU_TRANSFER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_st_nci_disable_se              ; -- Begin function st_nci_disable_se
	.p2align	2
_st_nci_disable_se:                     ; @st_nci_disable_se
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _ST_NCI_SE_MODE_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST_NCI_SE_MODE_OFF@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_st_nci_control_se
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_4
LBB0_2:
Lloh5:
	adrp	x8, _NFC_SE_EMBEDDED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFC_SE_EMBEDDED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ST_NCI_APDU_READER_GATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST_NCI_APDU_READER_GATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _ST_NCI_EVT_SE_END_OF_APDU_TRANSFER@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ST_NCI_EVT_SE_END_OF_APDU_TRANSFER@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nci_hci_send_event
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st_nci_disable_se\n"

	.comm	_ST_NCI_SE_MODE_OFF,4,2         ; @ST_NCI_SE_MODE_OFF
	.comm	_NFC_SE_EMBEDDED,8,3            ; @NFC_SE_EMBEDDED
	.comm	_ST_NCI_APDU_READER_GATE,4,2    ; @ST_NCI_APDU_READER_GATE
	.comm	_ST_NCI_EVT_SE_END_OF_APDU_TRANSFER,4,2 ; @ST_NCI_EVT_SE_END_OF_APDU_TRANSFER
.subsections_via_symbols
