	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_discover_se
_pn544_hci_discover_se:                 ## @pn544_hci_discover_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$1, -20(%rbp)
	movq	_PN544_SYS_MGMT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PN544_TEST_SWP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %r9
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_hci_send_cmd
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	-32(%rbp), %rdi
	cmpl	$2, (%rdi)
	jne	LBB0_4
## %bb.2:
	movq	8(%rdi), %rax
	cmpl	$0, (%rax)
	je	LBB0_5
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	(%r14), %edi
	movq	_NFC_SE_UICC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_nfc_add_se
	movl	$1, %ebx
	movq	-32(%rbp), %rdi
LBB0_6:
	callq	_kfree_skb
LBB0_7:
	movq	_PN544_NFC_WI_MGMT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PN544_HCI_EVT_SWITCH_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-20(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1, %r8d
	callq	_nfc_hci_send_event
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	(%r14), %edi
	leaq	1(%rbx), %r14
	movq	_NFC_SE_EMBEDDED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %esi
	callq	_nfc_add_se
	movq	%r14, %rbx
LBB0_9:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN544_SYS_MGMT_GATE,4,2        ## @PN544_SYS_MGMT_GATE
	.comm	_PN544_TEST_SWP,4,2             ## @PN544_TEST_SWP
	.comm	_NFC_SE_UICC,4,2                ## @NFC_SE_UICC
	.comm	_PN544_NFC_WI_MGMT_GATE,4,2     ## @PN544_NFC_WI_MGMT_GATE
	.comm	_PN544_HCI_EVT_SWITCH_MODE,4,2  ## @PN544_HCI_EVT_SWITCH_MODE
	.comm	_NFC_SE_EMBEDDED,4,2            ## @NFC_SE_EMBEDDED
	.no_dead_strip	_pn544_hci_discover_se
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn544_hci_discover_se
_pn544_hci_discover_se:                 ; @pn544_hci_discover_se
	.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	x19, x0
	mov	w8, #1
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _PN544_SYS_MGMT_GATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN544_SYS_MGMT_GATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _PN544_TEST_SWP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PN544_TEST_SWP@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x5, sp
	mov	x3, #0
	mov	w4, #0
	bl	_nfc_hci_send_cmd
	mov	x20, #0
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x0, [sp]
	ldr	w8, [x0]
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
LBB0_3:
	mov	x20, #0
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _NFC_SE_UICC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NFC_SE_UICC@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_nfc_add_se
	mov	w20, #1
	ldr	x0, [sp]
LBB0_5:
	bl	_kfree_skb
LBB0_6:
Lloh9:
	adrp	x8, _PN544_NFC_WI_MGMT_GATE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PN544_NFC_WI_MGMT_GATE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _PN544_HCI_EVT_SWITCH_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PN544_HCI_EVT_SWITCH_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #1
	bl	_nfc_hci_send_event
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	w0, [x19]
	add	x19, x20, #1
Lloh15:
	adrp	x8, _NFC_SE_EMBEDDED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFC_SE_EMBEDDED@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_nfc_add_se
	mov	x20, x19
LBB0_8:
	cmp	x20, #0
	cset	w0, eq
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PN544_SYS_MGMT_GATE,4,2        ; @PN544_SYS_MGMT_GATE
	.comm	_PN544_TEST_SWP,4,2             ; @PN544_TEST_SWP
	.comm	_NFC_SE_UICC,4,2                ; @NFC_SE_UICC
	.comm	_PN544_NFC_WI_MGMT_GATE,4,2     ; @PN544_NFC_WI_MGMT_GATE
	.comm	_PN544_HCI_EVT_SWITCH_MODE,4,2  ; @PN544_HCI_EVT_SWITCH_MODE
	.comm	_NFC_SE_EMBEDDED,4,2            ; @NFC_SE_EMBEDDED
	.no_dead_strip	_pn544_hci_discover_se
.subsections_via_symbols
