	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_cache_volnames             ## -- Begin function ghb_cache_volnames
	.p2align	4, 0x90
_ghb_cache_volnames:                    ## @ghb_cache_volnames
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_g_debug
	xorl	%eax, %eax
	callq	_dvd_device_list
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	movq	%rax, %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_volname_mutex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_mutex_lock
	movq	_volname_hash@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_g_hash_table_remove_all
	movq	%r14, %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_g_object_unref
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %r15
	testq	%r15, %r15
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r15), %edi
	callq	_g_drive_has_media
	movl	8(%r15), %edi
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_get_dvd_device_name
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_get_direct_dvd_volume_name
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_g_hash_table_insert
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	callq	_g_free
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%r12, %r12
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_g_free
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r15), %edi
	callq	_free_drive
	jmp	LBB0_12
LBB0_13:
	movq	_volname_mutex@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_g_mutex_unlock
	movq	%r14, %rdi
	callq	_g_list_free
	movq	_ghb_file_menu_add_dvd@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_g_idle_add
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ghb_cache_volnames()"

	.comm	_volname_mutex,4,2              ## @volname_mutex
	.comm	_volname_hash,4,2               ## @volname_hash
	.comm	_ghb_file_menu_add_dvd,8,3      ## @ghb_file_menu_add_dvd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_cache_volnames             ; -- Begin function ghb_cache_volnames
	.p2align	2
_ghb_cache_volnames:                    ; @ghb_cache_volnames
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_debug
	bl	_dvd_device_list
	cbz	x0, LBB0_12
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _volname_mutex@GOTPAGE
Lloh3:
	ldr	x23, [x23, _volname_mutex@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_g_mutex_lock
Lloh4:
	adrp	x24, _volname_hash@GOTPAGE
Lloh5:
	ldr	x24, [x24, _volname_hash@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_g_hash_table_remove_all
	mov	x25, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	bl	_g_object_unref
	ldr	x25, [x25]
	cbz	x25, LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25, #8]
	bl	_g_drive_has_media
	mov	x8, x0
	ldr	w0, [x25, #8]
	cbz	w8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_get_dvd_device_name
	mov	x22, x0
	bl	_get_direct_dvd_volume_name
	mov	x21, x0
	cmp	x22, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_g_free
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	x21, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_g_free
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x24]
	mov	x1, x22
	mov	x2, x21
	bl	_g_hash_table_insert
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25, #8]
	bl	_free_drive
	ldr	x25, [x25]
	cbnz	x25, LBB0_3
LBB0_11:
	ldr	w0, [x23]
	bl	_g_mutex_unlock
	mov	x0, x20
	bl	_g_list_free
Lloh6:
	adrp	x8, _ghb_file_menu_add_dvd@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ghb_file_menu_add_dvd@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_g_idle_add
LBB0_12:
	mov	x0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ghb_cache_volnames()"

	.comm	_volname_mutex,4,2              ; @volname_mutex
	.comm	_volname_hash,4,2               ; @volname_hash
	.comm	_ghb_file_menu_add_dvd,8,3      ; @ghb_file_menu_add_dvd
.subsections_via_symbols
