	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siw_sq_resume
_siw_sq_resume:                         ## @siw_sq_resume
	.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
	callq	_down_read_trylock
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	8(%rbx), %rax
	movq	_SIW_QP_STATE_RTS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 4(%rbx)
	sete	%dil
LBB0_3:
	callq	_likely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	callq	_siw_qp_sq_process
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_up_read
	movl	%r14d, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	cmpl	$0, 4(%rbx)
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_siw_qp_cm_drop
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_siw_dbg_qp
	jmp	LBB0_9
LBB0_7:
	callq	_up_read
LBB0_9:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_siw_qp_put                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SIW_QP_STATE_RTS,8,3           ## @SIW_QP_STATE_RTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SQ task failed: err %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Resume SQ while QP locked\n"

	.no_dead_strip	_siw_sq_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siw_sq_resume
_siw_sq_resume:                         ; @siw_sq_resume
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_down_read_trylock
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x9, _SIW_QP_STATE_RTS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIW_QP_STATE_RTS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_siw_qp_sq_process
	mov	x20, x0
	mov	x0, x19
	bl	_up_read
	lsr	w0, w20, #31
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.4:
	str	x20, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_qp
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_siw_qp_cm_drop
	b	LBB0_9
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_qp
	b	LBB0_9
LBB0_7:
	mov	w0, #0
	bl	_likely
	cbnz	x0, LBB0_3
LBB0_8:
	mov	x0, x19
	bl	_up_read
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_siw_qp_put
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SIW_QP_STATE_RTS,8,3           ; @SIW_QP_STATE_RTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SQ task failed: err %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Resume SQ while QP locked\n"

	.no_dead_strip	_siw_sq_resume
.subsections_via_symbols
