	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_buffer
_free_buffer:                           ## @free_buffer
	.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	%rsi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_in_interrupt
	movl	%eax, %edi
	callq	_BUG_ON
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	cmpq	$0, 24(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	%r14, 16(%rbx)
	jne	LBB0_6
## %bb.2:
	leaq	16(%rbx), %rax
	jmp	LBB0_5
LBB0_3:
	cmpq	%r14, 8(%rbx)
	jne	LBB0_6
## %bb.4:
	leaq	8(%rbx), %rax
LBB0_5:
	movq	$0, (%rax)
LBB0_6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_videobuf_vmalloc_free
	movq	_VIDEOBUF_NEEDS_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIDEOBUF_NEEDS_INIT,4,2        ## @VIDEOBUF_NEEDS_INIT
	.no_dead_strip	_free_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function free_buffer
_free_buffer:                           ; @free_buffer
	.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	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	bl	_in_interrupt
	bl	_BUG_ON
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x8, x20
	ldr	x9, [x8, #16]!
	cmp	x9, x19
	b.ne	LBB0_3
LBB0_2:
	str	xzr, [x8]
LBB0_3:
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_videobuf_vmalloc_free
Lloh0:
	adrp	x8, _VIDEOBUF_NEEDS_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIDEOBUF_NEEDS_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x8, x20
	ldr	x9, [x8, #8]!
	cmp	x9, x19
	b.ne	LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIDEOBUF_NEEDS_INIT,4,2        ; @VIDEOBUF_NEEDS_INIT
	.no_dead_strip	_free_buffer
.subsections_via_symbols
