	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_check_presence
_st21nfca_hci_check_presence:           ## @st21nfca_hci_check_presence
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	$17, -4(%rbp)
	movl	(%rsi), %esi
	leal	-129(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.4:
	movq	_ST21NFCA_WR_XCHG_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-4(%rbp), %rcx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_nfc_hci_send_cmd
	jmp	LBB0_3
LBB0_1:
	cmpl	$128, %esi
	jne	LBB0_2
## %bb.5:
	movq	_ST21NFCA_RF_READER_CMD_PRESENCE_CHECK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$16, %rsp
	popq	%rbp
	jmp	_nfc_hci_send_cmd               ## TAILCALL
LBB0_2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_WR_XCHG_DATA,4,2      ## @ST21NFCA_WR_XCHG_DATA
	.comm	_ST21NFCA_RF_READER_CMD_PRESENCE_CHECK,4,2 ## @ST21NFCA_RF_READER_CMD_PRESENCE_CHECK
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_st21nfca_hci_check_presence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_check_presence
_st21nfca_hci_check_presence:           ; @st21nfca_hci_check_presence
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	w8, #17
	stur	w8, [x29, #-4]
	ldr	w1, [x1]
	sub	w8, w1, #129
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ST21NFCA_WR_XCHG_DATA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST21NFCA_WR_XCHG_DATA@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	sub	x3, x29, #4
	mov	w4, #1
	mov	x5, #0
	bl	_nfc_hci_send_cmd
	b	LBB0_5
LBB0_2:
	cmp	w1, #128
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _ST21NFCA_RF_READER_CMD_PRESENCE_CHECK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_RF_READER_CMD_PRESENCE_CHECK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	mov	w4, #0
	mov	x5, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_nfc_hci_send_cmd
LBB0_4:
Lloh6:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_WR_XCHG_DATA,4,2      ; @ST21NFCA_WR_XCHG_DATA
	.comm	_ST21NFCA_RF_READER_CMD_PRESENCE_CHECK,4,2 ; @ST21NFCA_RF_READER_CMD_PRESENCE_CHECK
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_st21nfca_hci_check_presence
.subsections_via_symbols
