	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_llp_close               ## -- Begin function siw_qp_llp_close
	.p2align	4, 0x90
_siw_qp_llp_close:                      ## @siw_qp_llp_close
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_siw_qp_state_to_string@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rdi), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_siw_dbg_qp
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_down_write
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 32(%rbx)
	movq	$0, 8(%rbx)
	movq	(%rbx), %rax
	leaq	-128(%rax), %rcx
	cmpq	$4, %rcx
	jae	LBB0_1
LBB0_3:
	movq	_SIW_QP_STATE_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_6:
	movq	%rbx, %rdi
	callq	_siw_sq_flush
	movq	%rbx, %rdi
	callq	_siw_rq_flush
	movq	24(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_siw_cep_put
	movq	$0, 24(%rbx)
LBB0_8:
	movq	%r14, %rdi
	callq	_up_write
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_siw_dbg_qp                     ## TAILCALL
LBB0_1:
	cmpq	$132, %rax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_tx_wqe
	movl	(%rax), %eax
	movq	_SIW_WR_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.4:
	movq	$131, (%rbx)
	jmp	LBB0_6
LBB0_5:
	movq	(%r15), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_siw_dbg_qp
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter llp close, state = %s\n"

	.comm	_siw_qp_state_to_string,8,3     ## @siw_qp_state_to_string
	.comm	_SIW_QP_STATE_ERROR,8,3         ## @SIW_QP_STATE_ERROR
	.comm	_SIW_WR_IDLE,4,2                ## @SIW_WR_IDLE
L_.str.1:                               ## @.str.1
	.asciz	"llp close: no state transition needed: %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"llp close exit: state %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_siw_qp_llp_close               ; -- Begin function siw_qp_llp_close
	.p2align	2
_siw_qp_llp_close:                      ; @siw_qp_llp_close
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x21, _siw_qp_state_to_string@GOTPAGE
Lloh1:
	ldr	x21, [x21, _siw_qp_state_to_string@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x0]
	ldr	w2, [x8, x9, lsl #2]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_siw_dbg_qp
	add	x20, x19, #16
	mov	x0, x20
	bl	_down_write
	movi.2s	v0, #1
	str	d0, [x19, #32]
	str	xzr, [x19, #8]
	ldr	x8, [x19]
	sub	x9, x8, #128
	cmp	x9, #4
	b.hs	LBB0_6
LBB0_1:
Lloh4:
	adrp	x8, _SIW_QP_STATE_ERROR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SIW_QP_STATE_ERROR@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
LBB0_2:
	str	x8, [x19]
LBB0_3:
	mov	x0, x19
	bl	_siw_sq_flush
	mov	x0, x19
	bl	_siw_rq_flush
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_siw_cep_put
	str	xzr, [x19, #24]
LBB0_5:
	mov	x0, x20
	bl	_up_write
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	w2, [x8, x9, lsl #2]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_siw_dbg_qp
LBB0_6:
	cmp	x8, #132
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_tx_wqe
	ldr	w8, [x0]
Lloh9:
	adrp	x9, _SIW_WR_IDLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SIW_WR_IDLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_1
; %bb.8:
	mov	w8, #131
	b	LBB0_2
LBB0_9:
	ldr	x9, [x21]
	ldr	w2, [x9, x8, lsl #2]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_siw_dbg_qp
	b	LBB0_3
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter llp close, state = %s\n"

	.comm	_siw_qp_state_to_string,8,3     ; @siw_qp_state_to_string
	.comm	_SIW_QP_STATE_ERROR,8,3         ; @SIW_QP_STATE_ERROR
	.comm	_SIW_WR_IDLE,4,2                ; @SIW_WR_IDLE
l_.str.1:                               ; @.str.1
	.asciz	"llp close: no state transition needed: %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"llp close exit: state %s\n"

.subsections_via_symbols
