	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_dvd_set_current            ## -- Begin function ghb_dvd_set_current
	.p2align	4, 0x90
_ghb_dvd_set_current:                   ## @ghb_dvd_set_current
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_ghb_resolve_symlink
	movq	%rax, %r15
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_g_free
	movq	$0, (%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_g_file_new_for_path
	movq	%rax, %r12
	movq	_G_FILE_ATTRIBUTE_STANDARD_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_G_FILE_QUERY_INFO_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_g_file_query_info
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_g_file_info_get_file_type
	movq	_G_FILE_TYPE_SPECIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	%r15, (%r14)
	jmp	LBB0_6
LBB0_7:
	movq	%r15, %rdi
	callq	_g_free
	jmp	LBB0_8
LBB0_5:
	movq	%r15, %rdi
	callq	_g_free
LBB0_6:
	movq	%rbx, %rdi
	callq	_g_object_unref
LBB0_8:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_object_unref                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_G_FILE_ATTRIBUTE_STANDARD_TYPE,4,2 ## @G_FILE_ATTRIBUTE_STANDARD_TYPE
	.comm	_G_FILE_QUERY_INFO_NONE,4,2     ## @G_FILE_QUERY_INFO_NONE
	.comm	_G_FILE_TYPE_SPECIAL,8,3        ## @G_FILE_TYPE_SPECIAL
	.comm	_DRIVE_CDROM,8,3                ## @DRIVE_CDROM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ghb_dvd_set_current            ; -- Begin function ghb_dvd_set_current
	.p2align	2
_ghb_dvd_set_current:                   ; @ghb_dvd_set_current
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	bl	_ghb_resolve_symlink
	mov	x20, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_g_free
	str	xzr, [x19]
LBB0_2:
	mov	x0, x20
	bl	_g_file_new_for_path
	mov	x21, x0
Lloh0:
	adrp	x8, _G_FILE_ATTRIBUTE_STANDARD_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_FILE_ATTRIBUTE_STANDARD_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _G_FILE_QUERY_INFO_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_FILE_QUERY_INFO_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x3, #0
	mov	x4, #0
	bl	_g_file_query_info
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, x0
	bl	_g_file_info_get_file_type
Lloh6:
	adrp	x8, _G_FILE_TYPE_SPECIAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _G_FILE_TYPE_SPECIAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.4:
	str	x20, [x19]
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_g_free
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_g_free
LBB0_7:
	mov	x0, x22
	bl	_g_object_unref
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_g_object_unref
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_G_FILE_ATTRIBUTE_STANDARD_TYPE,4,2 ; @G_FILE_ATTRIBUTE_STANDARD_TYPE
	.comm	_G_FILE_QUERY_INFO_NONE,4,2     ; @G_FILE_QUERY_INFO_NONE
	.comm	_G_FILE_TYPE_SPECIAL,8,3        ; @G_FILE_TYPE_SPECIAL
	.comm	_DRIVE_CDROM,8,3                ; @DRIVE_CDROM
.subsections_via_symbols
