	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_qp_unbusy                 ## -- Begin function hfi1_qp_unbusy
	.p2align	4, 0x90
_hfi1_qp_unbusy:                        ## @hfi1_qp_unbusy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%rsi, %rdi
	callq	_iowait_set_work_flag
	movq	_IOWAIT_IB_SE@GOTPCREL(%rip), %rsi
	movq	_RVT_S_BUSY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	cmpq	(%rsi), %rax
	jne	LBB0_3
## %bb.1:
	andl	%edx, (%rbx)
	movl	(%r14), %eax
	movq	_HFI1_S_TID_BUSY_SET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%eax, %edx
	je	LBB0_4
## %bb.2:
	orl	(%rcx), %edx
	notl	%edx
	andl	%edx, %eax
	movl	%eax, (%r14)
	addq	$4, %r14
	movq	_IOWAIT_PENDING_TID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iowait_set_flag                ## TAILCALL
LBB0_3:
	andl	%edx, (%r14)
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOWAIT_IB_SE,8,3               ## @IOWAIT_IB_SE
	.comm	_RVT_S_BUSY,4,2                 ## @RVT_S_BUSY
	.comm	_HFI1_S_TID_BUSY_SET,4,2        ## @HFI1_S_TID_BUSY_SET
	.comm	_IOWAIT_PENDING_TID,4,2         ## @IOWAIT_PENDING_TID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hfi1_qp_unbusy                 ; -- Begin function hfi1_qp_unbusy
	.p2align	2
_hfi1_qp_unbusy:                        ; @hfi1_qp_unbusy
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x1
	bl	_iowait_set_work_flag
Lloh0:
	adrp	x8, _IOWAIT_IB_SE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOWAIT_IB_SE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _RVT_S_BUSY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RVT_S_BUSY@GOTPAGEOFF]
	ldr	w9, [x8]
	mvn	w9, w9
	cmp	x0, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	w10, [x20]
	and	w9, w10, w9
	str	w9, [x20]
	ldr	w9, [x19]
Lloh5:
	adrp	x10, _HFI1_S_TID_BUSY_SET@GOTPAGE
Lloh6:
	ldr	x10, [x10, _HFI1_S_TID_BUSY_SET@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x8]
	orr	w8, w8, w10
	bic	w8, w9, w8
	str	w8, [x19], #4
Lloh8:
	adrp	x8, _IOWAIT_PENDING_TID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IOWAIT_PENDING_TID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iowait_set_flag
LBB0_3:
	ldr	w8, [x19]
	and	w8, w8, w9
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IOWAIT_IB_SE,8,3               ; @IOWAIT_IB_SE
	.comm	_RVT_S_BUSY,4,2                 ; @RVT_S_BUSY
	.comm	_HFI1_S_TID_BUSY_SET,4,2        ; @HFI1_S_TID_BUSY_SET
	.comm	_IOWAIT_PENDING_TID,4,2         ; @IOWAIT_PENDING_TID
.subsections_via_symbols
