	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_dep_link_up
_microread_dep_link_up:                 ## @microread_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	_MICROREAD_PAR_P2P_INITIATOR_GT@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), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	_NFC_GB_MAXSIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rdx
	jg	LBB0_4
## %bb.5:
	movl	(%r12), %edi
	movl	8(%rax), %esi
	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	_MICROREAD_PAR_P2P_INITIATOR_GT,4,2 ## @MICROREAD_PAR_P2P_INITIATOR_GT
	.comm	_NFC_GB_MAXSIZE,8,3             ## @NFC_GB_MAXSIZE
	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_NFC_RF_INITIATOR,4,2           ## @NFC_RF_INITIATOR
	.no_dead_strip	_microread_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 microread_dep_link_up
_microread_dep_link_up:                 ; @microread_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, _MICROREAD_PAR_P2P_INITIATOR_GT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MICROREAD_PAR_P2P_INITIATOR_GT@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	x2, [x8]
Lloh3:
	adrp	x9, _NFC_GB_MAXSIZE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NFC_GB_MAXSIZE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x2, #0
	ccmp	x2, 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:
	ldr	w0, [x21]
	ldr	w1, [x8, #8]
	bl	_nfc_set_remote_general_bytes
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	w0, [x21]
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _NFC_RF_INITIATOR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFC_RF_INITIATOR@GOTPAGEOFF]
Lloh11:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MICROREAD_PAR_P2P_INITIATOR_GT,4,2 ; @MICROREAD_PAR_P2P_INITIATOR_GT
	.comm	_NFC_GB_MAXSIZE,8,3             ; @NFC_GB_MAXSIZE
	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_NFC_RF_INITIATOR,4,2           ; @NFC_RF_INITIATOR
	.no_dead_strip	_microread_dep_link_up
.subsections_via_symbols
