	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trf7970a_abort_cmd
_trf7970a_abort_cmd:                    ## @trf7970a_abort_cmd
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_nfc_digital_get_drvdata
	movq	%rax, %rbx
	movl	16(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %eax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	jae	LBB0_1
## %bb.4:
	movl	$1, 4(%rbx)
	jmp	LBB0_3
LBB0_1:
	cmpl	$132, %eax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	addq	$20, %rdi
	callq	_cancel_delayed_work
	xorl	%ecx, %ecx
	testl	%eax, %eax
	sete	%cl
	movl	%ecx, 8(%rbx)
	movq	_ECANCELED@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	subl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_trf7970a_send_err_upstream
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Abort process initiated\n"

	.comm	_ECANCELED,4,2                  ## @ECANCELED
L_.str.1:                               ## @.str.1
	.asciz	"Abort process complete\n"

	.no_dead_strip	_trf7970a_abort_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trf7970a_abort_cmd
_trf7970a_abort_cmd:                    ; @trf7970a_abort_cmd
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_nfc_digital_get_drvdata
	mov	x20, x0
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x19, x20, #12
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	sub	w9, w8, #128
	cmp	w9, #4
	b.hs	LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x20, #4]
	b	LBB0_4
LBB0_2:
	cmp	w8, #132
	b.ne	LBB0_4
; %bb.3:
	add	x0, x20, #20
	bl	_cancel_delayed_work
	cmp	w0, #0
	cset	w8, eq
	str	w8, [x20, #8]
Lloh2:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w1, w8
	mov	x0, x20
	bl	_trf7970a_send_err_upstream
	ldr	w0, [x20, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Abort process initiated\n"

	.comm	_ECANCELED,4,2                  ; @ECANCELED
l_.str.1:                               ; @.str.1
	.asciz	"Abort process complete\n"

	.no_dead_strip	_trf7970a_abort_cmd
.subsections_via_symbols
