	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_create_volume_label        ## -- Begin function ghb_create_volume_label
	.p2align	4, 0x90
_ghb_create_volume_label:               ## @ghb_create_volume_label
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.2:
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.3:
	movl	16(%rbx), %edi
	leaq	-24(%rbp), %rsi
	callq	_g_stat
	testq	%rax, %rax
	je	LBB0_4
LBB0_11:
	movq	(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_HB_DVD_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_ghb_dvd_sanitize_volname
	jmp	LBB0_13
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	__
	movl	%eax, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_g_strdup                       ## TAILCALL
LBB0_4:
	movl	-24(%rbp), %edi
	callq	_S_ISBLK
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	(%rbx), %rdi
	callq	_strdup
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	_HB_DVD_TYPE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_ghb_dvd_sanitize_volname
LBB0_8:
	movq	%r14, %rdi
	callq	_uppers_and_unders
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_camel_convert
	jmp	LBB0_10
LBB0_5:
	movl	16(%rbx), %edi
	callq	_get_file_label
	movq	%rax, %r14
LBB0_10:
	testq	%r14, %r14
	je	LBB0_11
LBB0_13:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HB_DVD_TYPE,8,3                ## @HB_DVD_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No Title Found"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_create_volume_label        ; -- Begin function ghb_create_volume_label
	.p2align	2
_ghb_create_volume_label:               ; @ghb_create_volume_label
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x19, #16]
	add	x1, sp, #8
	bl	_g_stat
Lloh0:
	adrp	x21, _HB_DVD_TYPE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HB_DVD_TYPE@GOTPAGEOFF]
	cbz	x0, LBB0_7
LBB0_4:
	ldr	x0, [x19]
	bl	_strdup
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.5:
	mov	x0, x20
	bl	_ghb_dvd_sanitize_volname
	b	LBB0_14
LBB0_6:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_g_strdup
LBB0_7:
	ldr	w0, [sp, #8]
	bl	_S_ISBLK
	cbz	w0, LBB0_12
; %bb.8:
	ldr	x0, [x19]
	bl	_strdup
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_ghb_dvd_sanitize_volname
LBB0_10:
	mov	x0, x20
	bl	_uppers_and_unders
	cbz	x0, LBB0_13
; %bb.11:
	mov	x0, x20
	bl	_camel_convert
	b	LBB0_13
LBB0_12:
	ldr	w0, [x19, #16]
	bl	_get_file_label
	mov	x20, x0
LBB0_13:
	cbz	x20, LBB0_4
LBB0_14:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_HB_DVD_TYPE,8,3                ; @HB_DVD_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No Title Found"

.subsections_via_symbols
