	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st21nfca_hci_loopback
_st21nfca_hci_loopback:                 ## @st21nfca_hci_loopback
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r12
	callq	_nfc_get_drvdata
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_nfc_hci_get_clientdata
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	$0, (%r14)
	movq	_NFC_HCI_LOOPBACK_GATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST21NFCA_EVT_POST_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_nfc_hci_send_event
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	callq	_wait_for_completion_interruptible
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	cmpq	%r15, (%rax)
	jne	LBB0_1
## %bb.5:
	movl	(%r13), %edi
	movq	_ST21NFCA_VENDOR_OUI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCI_LOOPBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rcx
	callq	_nfc_vendor_cmd_alloc_reply_skb
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rbx
	movq	_NFC_ATTR_VENDOR_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	movq	(%rax), %rdx
	movl	8(%rax), %ecx
	movq	%rbx, %rdi
	callq	_nla_put
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	callq	_kfree_skb
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_1:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_7:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_10:
	callq	_nfc_vendor_cmd_reply
	movl	%eax, %ebx
LBB0_11:
	movq	(%r14), %rdi
	callq	_kfree_skb
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_NFC_HCI_LOOPBACK_GATE,4,2      ## @NFC_HCI_LOOPBACK_GATE
	.comm	_ST21NFCA_EVT_POST_DATA,4,2     ## @ST21NFCA_EVT_POST_DATA
	.comm	_ST21NFCA_VENDOR_OUI,4,2        ## @ST21NFCA_VENDOR_OUI
	.comm	_HCI_LOOPBACK,4,2               ## @HCI_LOOPBACK
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NFC_ATTR_VENDOR_DATA,4,2       ## @NFC_ATTR_VENDOR_DATA
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.no_dead_strip	_st21nfca_hci_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st21nfca_hci_loopback
_st21nfca_hci_loopback:                 ; @st21nfca_hci_loopback
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x22, x1
	bl	_nfc_get_drvdata
	mov	x21, x0
	bl	_nfc_hci_get_clientdata
	cbz	x20, LBB0_7
; %bb.1:
	mov	x19, x0
	add	x23, x0, #8
	mov	x0, x23
	bl	_reinit_completion
	str	xzr, [x19]
Lloh0:
	adrp	x8, _NFC_HCI_LOOPBACK_GATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFC_HCI_LOOPBACK_GATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ST21NFCA_EVT_POST_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ST21NFCA_EVT_POST_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x22
	mov	x4, x20
	bl	_nfc_hci_send_event
	tbnz	w0, #31, LBB0_7
; %bb.2:
	mov	x0, x23
	bl	_wait_for_completion_interruptible
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _ST21NFCA_VENDOR_OUI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ST21NFCA_VENDOR_OUI@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _HCI_LOOPBACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCI_LOOPBACK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, x20
	bl	_nfc_vendor_cmd_alloc_reply_skb
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
Lloh12:
	adrp	x8, _NFC_ATTR_VENDOR_DATA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFC_ATTR_VENDOR_DATA@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldr	x2, [x8]
	ldr	w3, [x8, #8]
	bl	_nla_put
	cbz	x0, LBB0_11
; %bb.6:
	mov	x0, x20
	bl	_kfree_skb
Lloh15:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh17:
	adrp	x8, _EPROTO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	bl	_nfc_vendor_cmd_reply
	mov	x20, x0
LBB0_12:
	ldr	x0, [x19]
	bl	_kfree_skb
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_NFC_HCI_LOOPBACK_GATE,4,2      ; @NFC_HCI_LOOPBACK_GATE
	.comm	_ST21NFCA_EVT_POST_DATA,4,2     ; @ST21NFCA_EVT_POST_DATA
	.comm	_ST21NFCA_VENDOR_OUI,4,2        ; @ST21NFCA_VENDOR_OUI
	.comm	_HCI_LOOPBACK,4,2               ; @HCI_LOOPBACK
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NFC_ATTR_VENDOR_DATA,4,2       ; @NFC_ATTR_VENDOR_DATA
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.no_dead_strip	_st21nfca_hci_loopback
.subsections_via_symbols
