	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_bd_close                    ## -- Begin function hb_bd_close
	.p2align	4, 0x90
_hb_bd_close:                           ## @hb_bd_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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	32(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%rdi,%rbx), %rax
	movq	%rax, 32(%rsp)
	movups	(%rdi,%rbx), %xmm0
	movups	16(%rdi,%rbx), %xmm1
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_bd_free_title_info
	incq	%r12
	movslq	(%r15), %rax
	movq	32(%r15), %rdi
	addq	$40, %rbx
	cmpq	%rax, %r12
	jl	LBB0_3
LBB0_4:
	callq	_free
LBB0_5:
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.6:
	leaq	24(%r15), %rdi
	callq	_hb_stream_close
LBB0_7:
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_bd_close
LBB0_9:
	movq	8(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_free
LBB0_11:
	movq	%r15, %rdi
	callq	_free
	movq	$0, (%r14)
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hb_bd_close                    ; -- Begin function hb_bd_close
	.p2align	2
_hb_bd_close:                           ; @hb_bd_close
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x20, [x0]
	ldr	x0, [x20, #32]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x21
	ldp	q0, q1, [x8]
	ldr	x8, [x8, #32]
	str	x8, [sp, #32]
	stp	q0, q1, [sp]
	mov	x0, sp
	bl	_bd_free_title_info
	add	x22, x22, #1
	ldrsw	x8, [x20]
	ldr	x0, [x20, #32]
	add	x21, x21, #40
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	bl	_free
LBB0_5:
	mov	x0, x20
	ldr	x8, [x0, #24]!
	cbz	x8, LBB0_7
; %bb.6:
	bl	_hb_stream_close
LBB0_7:
	ldr	x0, [x20, #16]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_bd_close
LBB0_9:
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_free
LBB0_11:
	mov	x0, x20
	bl	_free
	str	xzr, [x19]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
