	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvd_read_copyright
_dvd_read_copyright:                    ## @dvd_read_copyright
	.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	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %r12
	movq	_CGC_DATA_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-112(%rbp), %rsi
	movq	%rdx, %rdi
	movl	$64, %edx
	callq	_init_cdrom_command
	movq	_GPCMD_READ_DVD_STRUCTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	8(%r14), %eax
	movl	%eax, 24(%rcx)
	movl	(%r14), %eax
	movl	%eax, 28(%rcx)
	movl	8(%rbx), %eax
	sarl	$8, %eax
	movl	%eax, 32(%rcx)
	movzbl	8(%rbx), %eax
	movl	%eax, 36(%rcx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	*(%r12)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	pshufd	$78, -80(%rbp), %xmm0           ## xmm0 = mem[2,3,0,1]
	movdqu	%xmm0, 16(%r14)
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CGC_DATA_READ,4,2              ## @CGC_DATA_READ
	.comm	_GPCMD_READ_DVD_STRUCTURE,4,2   ## @GPCMD_READ_DVD_STRUCTURE
	.no_dead_strip	_dvd_read_copyright
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvd_read_copyright
_dvd_read_copyright:                    ; @dvd_read_copyright
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x22, [x0]
Lloh3:
	adrp	x8, _CGC_DATA_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CGC_DATA_READ@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #8
	mov	x0, x2
	mov	w2, #64
	bl	_init_cdrom_command
Lloh6:
	adrp	x8, _GPCMD_READ_DVD_STRUCTURE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GPCMD_READ_DVD_STRUCTURE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	w8, [x19, #8]
	str	w8, [x9, #24]
	ldr	w8, [x19]
	str	w8, [x9, #28]
	ldr	w8, [x20, #8]
	asr	w8, w8, #8
	str	w8, [x9, #32]
	ldrb	w8, [x20, #8]
	str	w8, [x9, #36]
	ldr	x8, [x22]
	mov	x0, x21
	mov	x1, x20
	blr	x8
	cbnz	w0, LBB0_2
; %bb.1:
	ldp	x8, x9, [sp, #40]
	stp	x9, x8, [x19, #16]
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CGC_DATA_READ,4,2              ; @CGC_DATA_READ
	.comm	_GPCMD_READ_DVD_STRUCTURE,4,2   ; @GPCMD_READ_DVD_STRUCTURE
	.no_dead_strip	_dvd_read_copyright
.subsections_via_symbols
