	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hfi1_send_ok
_hfi1_send_ok:                          ## @hfi1_send_ok
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rax
	movq	_HFI1_S_ANY_WAIT_IO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%eax, %eax
	testl	%ecx, (%rdi)
	jne	LBB0_4
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_iowait_get_ib_work
	movl	%eax, %edi
	callq	_verbs_txreq_queued
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.2:
	movl	(%rbx), %ecx
	movq	_RVT_S_RESP_PENDING@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	_RVT_S_ANY_WAIT_SEND@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	sete	%al
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
	.comm	_HFI1_S_ANY_WAIT_IO,4,2         ## @HFI1_S_ANY_WAIT_IO
	.comm	_RVT_S_RESP_PENDING,4,2         ## @RVT_S_RESP_PENDING
	.comm	_RVT_S_ANY_WAIT_SEND,4,2        ## @RVT_S_ANY_WAIT_SEND
	.no_dead_strip	_hfi1_send_ok
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hfi1_send_ok
_hfi1_send_ok:                          ; @hfi1_send_ok
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RVT_S_BUSY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RVT_S_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HFI1_S_ANY_WAIT_IO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HFI1_S_ANY_WAIT_IO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_5
LBB0_2:
	mov	x19, x0
	ldr	x0, [x0, #8]
	bl	_iowait_get_ib_work
	bl	_verbs_txreq_queued
	cbnz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _RVT_S_RESP_PENDING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RVT_S_RESP_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh9:
	adrp	x9, _RVT_S_ANY_WAIT_SEND@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RVT_S_ANY_WAIT_SEND@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
	.comm	_HFI1_S_ANY_WAIT_IO,4,2         ; @HFI1_S_ANY_WAIT_IO
	.comm	_RVT_S_RESP_PENDING,4,2         ; @RVT_S_RESP_PENDING
	.comm	_RVT_S_ANY_WAIT_SEND,4,2        ; @RVT_S_ANY_WAIT_SEND
	.no_dead_strip	_hfi1_send_ok
.subsections_via_symbols
