	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cdrom_get_last_session     ## -- Begin function ide_cdrom_get_last_session
	.p2align	4, 0x90
_ide_cdrom_get_last_session:            ## @ide_cdrom_get_last_session
	.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
	movq	%rsi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rdi), %r14
	movq	_IDE_AFLAG_TOC_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	testq	%rax, %rax
	jne	LBB0_4
LBB0_2:
	leaq	-24(%rbp), %rsi
	callq	_ide_cd_read_toc
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	(%r14), %rax
LBB0_4:
	movl	4(%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDE_AFLAG_TOC_VALID,4,2        ## @IDE_AFLAG_TOC_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ide_cdrom_get_last_session     ; -- Begin function ide_cdrom_get_last_session
	.p2align	2
_ide_cdrom_get_last_session:            ; @ide_cdrom_get_last_session
	.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
	mov	x19, x1
	ldr	x0, [x0]
	ldr	x20, [x0, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IDE_AFLAG_TOC_VALID@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IDE_AFLAG_TOC_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
LBB0_2:
	add	x1, sp, #8
	bl	_ide_cd_read_toc
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x8, [x20]
LBB0_4:
	mov	w0, #0
	ldr	d0, [x8]
	str	d0, [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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDE_AFLAG_TOC_VALID,4,2        ; @IDE_AFLAG_TOC_VALID
.subsections_via_symbols
