	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_LowPatchDriveCode          ## -- Begin function DVD_LowPatchDriveCode
	.p2align	4, 0x90
_DVD_LowPatchDriveCode:                 ## @DVD_LowPatchDriveCode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	___dvd_finalpatchcb@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	___dvd_stopnextint@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	___dvd_driveinfo@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DVD_MODEL04@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	___dvd_patchcode04@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___dvdpatchcode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	___dvd_patchcode04_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %ecx
	andl	$65280, %ecx                    ## imm = 0xFF00
	cmpl	$1280, %ecx                     ## imm = 0x500
	je	LBB0_12
## %bb.3:
	movq	_DVD_MODEL06@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_5
## %bb.4:
	movq	___dvd_patchcode06@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___dvdpatchcode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	___dvd_patchcode06_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_5:
	movq	_DVD_MODEL08@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_7
## %bb.6:
	movq	___dvd_patchcode08@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___dvdpatchcode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	___dvd_patchcode08_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_7:
	movq	_DVD_MODEL08Q@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_9
## %bb.8:
	movq	___dvd_patchcodeQ08@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	___dvdpatchcode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	___dvd_patchcodeQ08_size@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_11
LBB0_9:
	cmpl	$2304, %ecx                     ## imm = 0x900
	je	LBB0_12
## %bb.10:
	movq	___dvdpatchcode@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	xorl	%eax, %eax
LBB0_11:
	movq	___dvdpatchcode_size@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
LBB0_12:
	xorl	%edi, %edi
	callq	___dvd_patchdrivecb
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_finalpatchcb,4,2         ## @__dvd_finalpatchcb
	.comm	___dvd_stopnextint,8,3          ## @__dvd_stopnextint
	.comm	___dvd_driveinfo,4,2            ## @__dvd_driveinfo
	.comm	_DVD_MODEL04,4,2                ## @DVD_MODEL04
	.comm	___dvd_patchcode04,8,3          ## @__dvd_patchcode04
	.comm	___dvdpatchcode,8,3             ## @__dvdpatchcode
	.comm	___dvd_patchcode04_size,8,3     ## @__dvd_patchcode04_size
	.comm	___dvdpatchcode_size,8,3        ## @__dvdpatchcode_size
	.comm	_DVD_MODEL06,4,2                ## @DVD_MODEL06
	.comm	___dvd_patchcode06,8,3          ## @__dvd_patchcode06
	.comm	___dvd_patchcode06_size,8,3     ## @__dvd_patchcode06_size
	.comm	_DVD_MODEL08,4,2                ## @DVD_MODEL08
	.comm	___dvd_patchcode08,8,3          ## @__dvd_patchcode08
	.comm	___dvd_patchcode08_size,8,3     ## @__dvd_patchcode08_size
	.comm	_DVD_MODEL08Q,4,2               ## @DVD_MODEL08Q
	.comm	___dvd_patchcodeQ08,8,3         ## @__dvd_patchcodeQ08
	.comm	___dvd_patchcodeQ08_size,8,3    ## @__dvd_patchcodeQ08_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DVD_LowPatchDriveCode          ; -- Begin function DVD_LowPatchDriveCode
	.p2align	2
_DVD_LowPatchDriveCode:                 ; @DVD_LowPatchDriveCode
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___dvd_finalpatchcb@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___dvd_finalpatchcb@GOTPAGEOFF]
Lloh2:
	str	w0, [x8]
Lloh3:
	adrp	x8, ___dvd_stopnextint@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___dvd_stopnextint@GOTPAGEOFF]
Lloh5:
	adrp	x9, ___dvd_driveinfo@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___dvd_driveinfo@GOTPAGEOFF]
Lloh7:
	str	xzr, [x8]
Lloh8:
	ldr	w8, [x9]
Lloh9:
	adrp	x9, _DVD_MODEL04@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DVD_MODEL04@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, ___dvd_patchcode04@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___dvd_patchcode04@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, ___dvdpatchcode@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___dvdpatchcode@GOTPAGEOFF]
Lloh17:
	str	x8, [x9]
Lloh18:
	adrp	x8, ___dvd_patchcode04_size@GOTPAGE
Lloh19:
	ldr	x8, [x8, ___dvd_patchcode04_size@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_2:
	and	w9, w8, #0xff00
	cmp	w9, #1280
	b.eq	LBB0_12
; %bb.3:
Lloh21:
	adrp	x10, _DVD_MODEL06@GOTPAGE
Lloh22:
	ldr	x10, [x10, _DVD_MODEL06@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, ___dvd_patchcode06@GOTPAGE
Lloh25:
	ldr	x8, [x8, ___dvd_patchcode06@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
Lloh27:
	adrp	x9, ___dvdpatchcode@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___dvdpatchcode@GOTPAGEOFF]
Lloh29:
	str	x8, [x9]
Lloh30:
	adrp	x8, ___dvd_patchcode06_size@GOTPAGE
Lloh31:
	ldr	x8, [x8, ___dvd_patchcode06_size@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_5:
Lloh33:
	adrp	x10, _DVD_MODEL08@GOTPAGE
Lloh34:
	ldr	x10, [x10, _DVD_MODEL08@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_7
; %bb.6:
Lloh36:
	adrp	x8, ___dvd_patchcode08@GOTPAGE
Lloh37:
	ldr	x8, [x8, ___dvd_patchcode08@GOTPAGEOFF]
Lloh38:
	ldr	x8, [x8]
Lloh39:
	adrp	x9, ___dvdpatchcode@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___dvdpatchcode@GOTPAGEOFF]
Lloh41:
	str	x8, [x9]
Lloh42:
	adrp	x8, ___dvd_patchcode08_size@GOTPAGE
Lloh43:
	ldr	x8, [x8, ___dvd_patchcode08_size@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_7:
Lloh45:
	adrp	x10, _DVD_MODEL08Q@GOTPAGE
Lloh46:
	ldr	x10, [x10, _DVD_MODEL08Q@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	cmp	w8, w10
	b.ne	LBB0_9
; %bb.8:
Lloh48:
	adrp	x8, ___dvd_patchcodeQ08@GOTPAGE
Lloh49:
	ldr	x8, [x8, ___dvd_patchcodeQ08@GOTPAGEOFF]
Lloh50:
	ldr	x8, [x8]
Lloh51:
	adrp	x9, ___dvdpatchcode@GOTPAGE
Lloh52:
	ldr	x9, [x9, ___dvdpatchcode@GOTPAGEOFF]
Lloh53:
	str	x8, [x9]
Lloh54:
	adrp	x8, ___dvd_patchcodeQ08_size@GOTPAGE
Lloh55:
	ldr	x8, [x8, ___dvd_patchcodeQ08_size@GOTPAGEOFF]
Lloh56:
	ldr	x8, [x8]
	b	LBB0_11
LBB0_9:
	cmp	w9, #2304
	b.eq	LBB0_12
; %bb.10:
	mov	x8, #0
Lloh57:
	adrp	x9, ___dvdpatchcode@GOTPAGE
Lloh58:
	ldr	x9, [x9, ___dvdpatchcode@GOTPAGEOFF]
Lloh59:
	str	xzr, [x9]
LBB0_11:
Lloh60:
	adrp	x9, ___dvdpatchcode_size@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___dvdpatchcode_size@GOTPAGEOFF]
Lloh62:
	str	x8, [x9]
LBB0_12:
	mov	w0, #0
	bl	___dvd_patchdrivecb
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_finalpatchcb,4,2         ; @__dvd_finalpatchcb
	.comm	___dvd_stopnextint,8,3          ; @__dvd_stopnextint
	.comm	___dvd_driveinfo,4,2            ; @__dvd_driveinfo
	.comm	_DVD_MODEL04,4,2                ; @DVD_MODEL04
	.comm	___dvd_patchcode04,8,3          ; @__dvd_patchcode04
	.comm	___dvdpatchcode,8,3             ; @__dvdpatchcode
	.comm	___dvd_patchcode04_size,8,3     ; @__dvd_patchcode04_size
	.comm	___dvdpatchcode_size,8,3        ; @__dvdpatchcode_size
	.comm	_DVD_MODEL06,4,2                ; @DVD_MODEL06
	.comm	___dvd_patchcode06,8,3          ; @__dvd_patchcode06
	.comm	___dvd_patchcode06_size,8,3     ; @__dvd_patchcode06_size
	.comm	_DVD_MODEL08,4,2                ; @DVD_MODEL08
	.comm	___dvd_patchcode08,8,3          ; @__dvd_patchcode08
	.comm	___dvd_patchcode08_size,8,3     ; @__dvd_patchcode08_size
	.comm	_DVD_MODEL08Q,4,2               ; @DVD_MODEL08Q
	.comm	___dvd_patchcodeQ08,8,3         ; @__dvd_patchcodeQ08
	.comm	___dvd_patchcodeQ08_size,8,3    ; @__dvd_patchcodeQ08_size
.subsections_via_symbols
