	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn533_in_dep_link_up_complete
_pn533_in_dep_link_up_complete:         ## @pn533_in_dep_link_up_complete
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r12
	movq	%rsi, %rdi
	callq	_kfree
	movq	%r15, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_1
## %bb.13:
	movq	%r15, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.2:
	movq	_NFC_PROTO_NFC_DEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.4:
	movq	8(%r15), %r13
	movq	_PN533_CMD_RET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	andl	(%r13), %ebx
	movq	_PN533_CMD_RET_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	je	LBB0_9
	jmp	LBB0_5
LBB0_6:
	movq	8(%r15), %r13
	movq	_PN533_CMD_RET_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	(%r13), %ebx
	movq	_PN533_CMD_RET_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_5
## %bb.7:
	movl	16(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	$10, -56(%rbp)
	movl	8(%r13), %esi
	movl	$10, %edx
	callq	_memcpy
	movq	8(%r14), %rdi
	leaq	-56(%rbp), %rsi
	movl	$1, %edx
	callq	_nfc_targets_found
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	$0, (%r14)
	movq	_NFC_PROTO_NFC_DEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, 4(%r14)
	movq	(%r15), %rdx
	addq	$-17, %rdx
	movq	8(%r14), %rdi
	movl	4(%r13), %esi
	callq	_nfc_set_remote_general_bytes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:
	movq	8(%r14), %rdi
	movq	(%rdi), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testq	%r12, %r12
	sete	%dl
	movq	_NFC_RF_INITIATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_nfc_dep_link_is_up
LBB0_11:
	movl	%eax, %ebx
	jmp	LBB0_12
LBB0_5:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_nfc_err
	jmp	LBB0_12
LBB0_3:
	movl	16(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_nfc_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_12:
	movq	%r15, %rdi
	callq	_dev_kfree_skb
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFC_PROTO_NFC_DEP,4,2          ## @NFC_PROTO_NFC_DEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The target does not support DEP\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PN533_CMD_RET_MASK,4,2         ## @PN533_CMD_RET_MASK
	.comm	_PN533_CMD_RET_SUCCESS,4,2      ## @PN533_CMD_RET_SUCCESS
L_.str.1:                               ## @.str.1
	.asciz	"Bringing DEP link up failed (error 0x%x)\n"

L_.str.2:                               ## @.str.2
	.asciz	"Creating new target\n"

	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_RF_INITIATOR,4,2           ## @NFC_RF_INITIATOR
	.no_dead_strip	_pn533_in_dep_link_up_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn533_in_dep_link_up_complete
_pn533_in_dep_link_up_complete:         ; @pn533_in_dep_link_up_complete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x0
	ldr	x22, [x1]
	mov	x0, x1
	bl	_kfree
	mov	x0, x19
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_PTR_ERR
LBB0_2:
	ldr	w9, [x20]
	cbz	w9, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _NFC_PROTO_NFC_DEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w9, w9, w8
	tbz	w9, #0, LBB0_12
; %bb.4:
	ldr	x23, [x19, #8]
	ldr	w9, [x23]
Lloh3:
	adrp	x10, _PN533_CMD_RET_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PN533_CMD_RET_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w21, w10, w9
Lloh6:
	adrp	x9, _PN533_CMD_RET_SUCCESS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PN533_CMD_RET_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cmp	w21, w9
	b.eq	LBB0_8
	b	LBB0_11
LBB0_5:
	ldr	x23, [x19, #8]
	ldr	w8, [x23]
Lloh9:
	adrp	x9, _PN533_CMD_RET_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PN533_CMD_RET_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w21, w9, w8
Lloh12:
	adrp	x8, _PN533_CMD_RET_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PN533_CMD_RET_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_11
; %bb.6:
	ldr	w0, [x20, #16]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
Lloh17:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	mov	w9, #10
	str	w8, [sp, #24]
	str	w9, [sp, #16]
	ldr	w1, [x23, #8]
	mov	w2, #10
	bl	_memcpy
	ldr	x0, [x20, #8]
	add	x1, sp, #16
	mov	w2, #1
	bl	_nfc_targets_found
	cbnz	w0, LBB0_10
; %bb.7:
	str	wzr, [x20]
Lloh20:
	adrp	x8, _NFC_PROTO_NFC_DEP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
LBB0_8:
	str	w8, [x20, #4]
	ldr	x8, [x19]
	sub	x2, x8, #17
	ldr	x0, [x20, #8]
	ldr	w1, [x23, #4]
	bl	_nfc_set_remote_general_bytes
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.9:
	ldr	x0, [x20, #8]
	ldr	x8, [x0]
	ldr	w1, [x8]
	cmp	x22, #0
	cset	w2, eq
Lloh23:
	adrp	x8, _NFC_RF_INITIATOR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NFC_RF_INITIATOR@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
	bl	_nfc_dep_link_is_up
LBB0_10:
	mov	x21, x0
	b	LBB0_13
LBB0_11:
	ldr	w0, [x20, #16]
	str	x21, [sp]
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_nfc_err
	b	LBB0_13
LBB0_12:
	ldr	w0, [x20, #16]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nfc_err
Lloh30:
	adrp	x8, _EINVAL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_13:
	mov	x0, x19
	bl	_dev_kfree_skb
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_NFC_PROTO_NFC_DEP,4,2          ; @NFC_PROTO_NFC_DEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The target does not support DEP\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PN533_CMD_RET_MASK,4,2         ; @PN533_CMD_RET_MASK
	.comm	_PN533_CMD_RET_SUCCESS,4,2      ; @PN533_CMD_RET_SUCCESS
l_.str.1:                               ; @.str.1
	.asciz	"Bringing DEP link up failed (error 0x%x)\n"

l_.str.2:                               ; @.str.2
	.asciz	"Creating new target\n"

	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFC_RF_INITIATOR,4,2           ; @NFC_RF_INITIATOR
	.no_dead_strip	_pn533_in_dep_link_up_complete
.subsections_via_symbols
