	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_open
_st21nfca_hci_open:                     ## @st21nfca_hci_open
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_nfc_hci_get_clientdata
	movq	%rax, %r15
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%r15), %rax
	movq	_ST21NFCA_ST_COLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	16(%r15), %rax
	movl	12(%r15), %edi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ST21NFCA_ST_READY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST21NFCA_ST_COLD,8,3           ## @ST21NFCA_ST_COLD
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ST21NFCA_ST_READY,8,3          ## @ST21NFCA_ST_READY
	.no_dead_strip	_st21nfca_hci_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_open
_st21nfca_hci_open:                     ; @st21nfca_hci_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_nfc_hci_get_clientdata
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _ST21NFCA_ST_COLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ST21NFCA_ST_COLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	ldr	w0, [x20, #12]
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _ST21NFCA_ST_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_ST_READY@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ST21NFCA_ST_COLD,8,3           ; @ST21NFCA_ST_COLD
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ST21NFCA_ST_READY,8,3          ; @ST21NFCA_ST_READY
	.no_dead_strip	_st21nfca_hci_open
.subsections_via_symbols
