	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_disable_se
_pn544_hci_disable_se:                  ## @pn544_hci_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_PN544_SE_MODE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
	movl	(%rdi), %edi
	callq	_nfc_find_se
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	_PN544_SWP_MGMT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PN544_SWP_DEFAULT_MODE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	_PN544_NFC_WI_MGMT_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PN544_NFC_ESE_DEFAULT_MODE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %r8d
	callq	_nfc_hci_set_param
	jmp	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN544_SE_MODE_OFF,4,2          ## @PN544_SE_MODE_OFF
	.comm	_PN544_SWP_MGMT_GATE,4,2        ## @PN544_SWP_MGMT_GATE
	.comm	_PN544_SWP_DEFAULT_MODE,4,2     ## @PN544_SWP_DEFAULT_MODE
	.comm	_PN544_NFC_WI_MGMT_GATE,4,2     ## @PN544_NFC_WI_MGMT_GATE
	.comm	_PN544_NFC_ESE_DEFAULT_MODE,4,2 ## @PN544_NFC_ESE_DEFAULT_MODE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pn544_hci_disable_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_disable_se
_pn544_hci_disable_se:                  ; @pn544_hci_disable_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
Lloh0:
	adrp	x8, _PN544_SE_MODE_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN544_SE_MODE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
	ldr	w0, [x0]
	bl	_nfc_find_se
	ldr	w8, [x0]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _PN544_SWP_MGMT_GATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PN544_SWP_MGMT_GATE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _PN544_SWP_DEFAULT_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PN544_SWP_DEFAULT_MODE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x8, _PN544_NFC_WI_MGMT_GATE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PN544_NFC_WI_MGMT_GATE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _PN544_NFC_ESE_DEFAULT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PN544_NFC_ESE_DEFAULT_MODE@GOTPAGEOFF]
LBB0_4:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #1
	bl	_nfc_hci_set_param
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PN544_SE_MODE_OFF,4,2          ; @PN544_SE_MODE_OFF
	.comm	_PN544_SWP_MGMT_GATE,4,2        ; @PN544_SWP_MGMT_GATE
	.comm	_PN544_SWP_DEFAULT_MODE,4,2     ; @PN544_SWP_DEFAULT_MODE
	.comm	_PN544_NFC_WI_MGMT_GATE,4,2     ; @PN544_NFC_WI_MGMT_GATE
	.comm	_PN544_NFC_ESE_DEFAULT_MODE,4,2 ; @PN544_NFC_ESE_DEFAULT_MODE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pn544_hci_disable_se
.subsections_via_symbols
