	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_shutdown_sq
_ice_shutdown_sq:                       ## @ice_shutdown_sq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	leaq	8(%rbx), %r12
	movl	32(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wr32
	movl	28(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wr32
	movl	24(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wr32
	movl	20(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wr32
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_wr32
	movq	$0, 8(%rbx)
	movq	_sq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ICE_FREE_CQ_BUFS
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ice_free_cq_ring
	jmp	LBB0_3
LBB0_1:
	movq	_ICE_ERR_NOT_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_3:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_NOT_READY,4,2          ## @ICE_ERR_NOT_READY
	.comm	_sq,4,2                         ## @sq
	.no_dead_strip	_ice_shutdown_sq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_shutdown_sq
_ice_shutdown_sq:                       ; @ice_shutdown_sq
	.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, x1
	mov	x20, x0
	mov	x0, x1
	bl	_mutex_lock
	mov	x21, x19
	ldr	x8, [x21, #8]!
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #32]
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	ldr	w1, [x19, #28]
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	ldr	w1, [x19, #24]
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	ldr	w1, [x19, #20]
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	ldr	w1, [x19, #16]
	mov	x0, x20
	mov	w2, #0
	bl	_wr32
	str	xzr, [x19, #8]
Lloh0:
	adrp	x8, _sq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sq@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_ICE_FREE_CQ_BUFS
	mov	x0, x20
	mov	x1, x21
	bl	_ice_free_cq_ring
	mov	w20, #0
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ICE_ERR_NOT_READY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_ERR_NOT_READY@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_3:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_NOT_READY,4,2          ; @ICE_ERR_NOT_READY
	.comm	_sq,4,2                         ; @sq
	.no_dead_strip	_ice_shutdown_sq
.subsections_via_symbols
