	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pn544_hci_dep_link_up
_pn544_hci_dep_link_up:                 ## @pn544_hci_dep_link_up
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	movl	4(%rsi), %esi
	movq	_PN544_DEP_ATR_RES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rcx
	callq	_nfc_hci_get_param
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_NFC_GB_MAXSIZE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jg	LBB0_4
## %bb.5:
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	movq	_DUMP_PREFIX_OFFSET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	8(%rcx), %r9d
	leaq	L_.str(%rip), %rsi
	movl	$16, %ecx
	movl	$1, %r8d
	pushq	$1
	pushq	%rax
	callq	_print_hex_dump
	addq	$16, %rsp
	movl	(%r12), %edi
	movq	-40(%rbp), %rax
	movl	8(%rax), %esi
	movq	(%rax), %rdx
	callq	_nfc_set_remote_general_bytes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movl	(%r12), %edi
	movl	(%r15), %esi
	movq	_NFC_RF_INITIATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edx
	callq	_nfc_dep_link_is_up
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	%eax, %ebx
	jmp	LBB0_8
LBB0_4:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_kfree_skb
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PN544_DEP_ATR_RES,4,2          ## @PN544_DEP_ATR_RES
	.comm	_NFC_GB_MAXSIZE,8,3             ## @NFC_GB_MAXSIZE
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remote gb: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ## @DUMP_PREFIX_OFFSET
	.comm	_NFC_RF_INITIATOR,4,2           ## @NFC_RF_INITIATOR
	.no_dead_strip	_pn544_hci_dep_link_up
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pn544_hci_dep_link_up
_pn544_hci_dep_link_up:                 ; @pn544_hci_dep_link_up
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	ldr	w1, [x1, #4]
Lloh0:
	adrp	x8, _PN544_DEP_ATR_RES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PN544_DEP_ATR_RES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_nfc_hci_get_param
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	ldr	x6, [x8]
Lloh3:
	adrp	x9, _NFC_GB_MAXSIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFC_GB_MAXSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x6, #0
	ccmp	x6, x9, #0, ne
	b.le	LBB0_4
; %bb.2:
Lloh6:
	adrp	x8, _EPROTO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_3:
	mov	x22, x0
	b	LBB0_7
LBB0_4:
Lloh9:
	adrp	x9, _KERN_DEBUG@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KERN_DEBUG@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x9]
Lloh12:
	adrp	x9, _DUMP_PREFIX_OFFSET@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DUMP_PREFIX_OFFSET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x9]
	ldr	w5, [x8, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	w3, #16
	mov	w4, #1
	mov	w7, #1
	bl	_print_hex_dump
	ldr	w0, [x21]
	ldr	x8, [sp, #8]
	ldr	w1, [x8, #8]
	ldr	x2, [x8]
	bl	_nfc_set_remote_general_bytes
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	ldr	w1, [x20]
Lloh17:
	adrp	x8, _NFC_RF_INITIATOR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NFC_RF_INITIATOR@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_nfc_dep_link_is_up
	mov	x22, x0
LBB0_6:
	ldr	x0, [sp, #8]
	bl	_kfree_skb
LBB0_7:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PN544_DEP_ATR_RES,4,2          ; @PN544_DEP_ATR_RES
	.comm	_NFC_GB_MAXSIZE,8,3             ; @NFC_GB_MAXSIZE
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remote gb: "

	.comm	_DUMP_PREFIX_OFFSET,4,2         ; @DUMP_PREFIX_OFFSET
	.comm	_NFC_RF_INITIATOR,4,2           ; @NFC_RF_INITIATOR
	.no_dead_strip	_pn544_hci_dep_link_up
.subsections_via_symbols
