	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __idle_hwsp_free
___idle_hwsp_free:                      ## @__idle_hwsp_free
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rdi
	leaq	4(%r14), %rsi
	callq	_list_add_tail
	movq	(%rbx), %rdi
LBB0_2:
	callq	_BITS_PER_TYPE
	xorl	%edi, %edi
	cmpl	%r15d, %eax
	setle	%dil
	callq	_GEM_BUG_ON
	movl	%r15d, %edi
	callq	_BIT_ULL
	orq	(%rbx), %rax
	movq	%rax, (%rbx)
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.3:
	movl	12(%rbx), %edi
	callq	_i915_vma_put
	leaq	8(%rbx), %rdi
	callq	_list_del
	movq	%rbx, %rdi
	callq	_kfree
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___idle_hwsp_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __idle_hwsp_free
___idle_hwsp_free:                      ; @__idle_hwsp_free
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #16]
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x0, [x20]
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, x20, #8
	add	x1, x19, #4
	bl	_list_add_tail
	ldr	x0, [x20]
LBB0_2:
	bl	_BITS_PER_TYPE
	cmp	w0, w21
	cset	w0, le
	bl	_GEM_BUG_ON
	mov	x0, x21
	bl	_BIT_ULL
	ldr	x8, [x20]
	orr	x8, x8, x0
	str	x8, [x20]
	cmn	x8, #1
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x20, #12]
	bl	_i915_vma_put
	add	x0, x20, #8
	bl	_list_del
	mov	x0, x20
	bl	_kfree
LBB0_4:
	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	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___idle_hwsp_free
.subsections_via_symbols
