	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcsim_link_recv_skb
_nfcsim_link_recv_skb:                  ## @nfcsim_link_recv_skb
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rdi, %r15
	movl	48(%rdi), %ebx
	movq	16(%rdi), %r14
	movl	%esi, %edi
	callq	_msecs_to_jiffies
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_wait_event_interruptible_timeout
	movl	%eax, %ebx
	leaq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	40(%r15), %r14
	movq	$0, 40(%r15)
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	cmpq	%r13, (%r15)
	jne	LBB0_5
## %bb.4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, 8(%r15)
	jne	LBB0_6
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r12, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jns	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	callq	_dev_kfree_skb
	movl	%ebx, %edi
	callq	_ERR_PTR
	movq	%rax, %r14
LBB0_11:
	movq	$0, 16(%r15)
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	cmpq	$0, 32(%r15)
	je	LBB0_9
## %bb.7:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_nfcsim_link_recv_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcsim_link_recv_skb
_nfcsim_link_recv_skb:                  ; @nfcsim_link_recv_skb
	.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	x23, x3
	mov	x24, x2
	mov	x19, x0
	ldr	w20, [x0, #48]
	ldr	x21, [x0, #16]
	mov	x0, x1
	bl	_msecs_to_jiffies
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wait_event_interruptible_timeout
	mov	x22, x0
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	ldr	x20, [x19, #40]
	str	xzr, [x19, #40]
	cbz	w22, LBB0_5
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cmp	x8, x24
	b.ne	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	cmp	x8, x23
	b.ne	LBB0_10
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh2:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_7:
	mov	x0, x21
	bl	_mutex_unlock
	tbz	w22, #31, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_dev_kfree_skb
	mov	x0, x22
	bl	_ERR_PTR
	mov	x20, x0
LBB0_9:
	str	xzr, [x19, #16]
	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_10:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.11:
Lloh4:
	adrp	x8, _ENODEV@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_nfcsim_link_recv_skb
.subsections_via_symbols
