	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_fifo_close                  ## -- Begin function hb_fifo_close
	.p2align	4, 0x90
_hb_fifo_close:                         ## @hb_fifo_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
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_hb_fifo_size
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	%eax, %edx
	callq	_hb_deep_log
	movq	%rbx, %rdi
	callq	_hb_fifo_get
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	-32(%rbp), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_hb_buffer_close
	movq	%rbx, %rdi
	callq	_hb_fifo_get
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_3
LBB0_4:
	leaq	8(%rbx), %rdi
	callq	_hb_lock_close
	leaq	4(%rbx), %rdi
	callq	_hb_cond_close
	movq	%rbx, %rdi
	callq	_hb_cond_close
	movq	%rbx, %rdi
	callq	_free
	movq	$0, (%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fifo_close: trashing %d buffer(s)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_fifo_close                  ; -- Begin function hb_fifo_close
	.p2align	2
_hb_fifo_close:                         ; @hb_fifo_close
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	bl	_hb_fifo_size
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_hb_deep_log
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_hb_fifo_get
	str	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #8
	bl	_hb_buffer_close
	b	LBB0_2
LBB0_4:
	add	x0, x20, #8
	bl	_hb_lock_close
	add	x0, x20, #4
	bl	_hb_cond_close
	mov	x0, x20
	bl	_hb_cond_close
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fifo_close: trashing %d buffer(s)"

.subsections_via_symbols
