	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_vf_clear_to_send         ## -- Begin function i40iw_vf_clear_to_send
	.p2align	4, 0x90
_i40iw_vf_clear_to_send:                ## @i40iw_vf_clear_to_send
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_wq_has_sleeper
	testl	%eax, %eax
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	leaq	-36(%rbp), %r12
	movq	%r12, %rdi
	callq	_init_wait
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_add_wait_queue_exclusive
	movl	(%rbx), %r12d
	movq	%r15, %rdi
	callq	_atomic_read
	xorl	%esi, %esi
	testq	%rax, %rax
	sete	%sil
	movq	_I40IW_VCHNL_EVENT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_wait_event_timeout
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$0, (%r14)
LBB0_5:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_remove_wait_queue
	movl	(%r14), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	$1, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_I40IW_VCHNL_EVENT_TIMEOUT,4,2  ## @I40IW_VCHNL_EVENT_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_vf_clear_to_send         ; -- Begin function i40iw_vf_clear_to_send
	.p2align	2
_i40iw_vf_clear_to_send:                ; @i40iw_vf_clear_to_send
	.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, x0
	ldr	x21, [x0, #8]
	add	x20, x0, #4
	mov	x0, x20
	bl	_wq_has_sleeper
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_atomic_read
	cbz	x0, LBB0_6
LBB0_2:
	add	x0, sp, #12
	bl	_init_wait
	add	x1, sp, #12
	mov	x0, x20
	bl	_add_wait_queue_exclusive
	ldr	w22, [x20]
	mov	x0, x21
	bl	_atomic_read
	cmp	x0, #0
	cset	w1, eq
Lloh0:
	adrp	x8, _I40IW_VCHNL_EVENT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I40IW_VCHNL_EVENT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_wait_event_timeout
	cbnz	w0, LBB0_4
; %bb.3:
	str	wzr, [x19]
LBB0_4:
	add	x1, sp, #12
	mov	x0, x20
	bl	_remove_wait_queue
	ldr	w0, [x19]
LBB0_5:
	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
LBB0_6:
	mov	w0, #1
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I40IW_VCHNL_EVENT_TIMEOUT,4,2  ; @I40IW_VCHNL_EVENT_TIMEOUT
.subsections_via_symbols
