	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __dvd_categorizeerror
___dvd_categorizeerror:                 ## @__dvd_categorizeerror
	.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
	cmpl	$132096, %edi                   ## imm = 0x20400
	jne	LBB0_2
## %bb.1:
	movq	___dvd_lasterror@GOTPCREL(%rip), %rax
	movl	$132096, (%rax)                 ## imm = 0x20400
	movl	$1, %r14d
	jmp	LBB0_11
LBB0_2:
	movl	%edi, %ebx
	callq	_DVD_ERROR
	movq	_DVD_ERROR_MEDIUM_CHANGED@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.3:
	movl	%ebx, %edi
	callq	_DVD_ERROR
	movq	_DVD_ERROR_MEDIUM_NOT_PRESENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.4:
	movl	%ebx, %edi
	callq	_DVD_ERROR
	movq	_DVD_ERROR_MEDIUM_CHANGE_REQ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_11
## %bb.5:
	movl	%ebx, %edi
	callq	_DVD_ERROR
	cmpl	$274688, %eax                   ## imm = 0x43100
	je	LBB0_11
## %bb.6:
	movq	___dvd_internalretries@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	cmpl	$2, %ecx
	jne	LBB0_8
## %bb.7:
	movq	___dvd_lasterror@GOTPCREL(%rip), %r14
	movl	(%r14), %r15d
	movl	%ebx, %edi
	callq	_DVD_ERROR
	xorl	%r12d, %r12d
	cmpl	%eax, %r15d
	sete	%r12b
	movl	%ebx, %edi
	callq	_DVD_ERROR
	movl	%eax, (%r14)
	movl	$2, %r14d
	subl	%r12d, %r14d
	jmp	LBB0_11
LBB0_8:
	movl	%ebx, %edi
	callq	_DVD_ERROR
	movq	___dvd_lasterror@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	%ebx, %edi
	callq	_DVD_ERROR
	movq	_DVD_ERROR_UNRECOVERABLE_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_10
## %bb.9:
	movq	___dvd_executing@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$3, %r14d
	cmpl	$5, (%rax)
	jne	LBB0_11
LBB0_10:
	movl	$2, %r14d
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___dvd_lasterror,4,2            ## @__dvd_lasterror
	.comm	_DVD_ERROR_MEDIUM_CHANGED,4,2   ## @DVD_ERROR_MEDIUM_CHANGED
	.comm	_DVD_ERROR_MEDIUM_NOT_PRESENT,4,2 ## @DVD_ERROR_MEDIUM_NOT_PRESENT
	.comm	_DVD_ERROR_MEDIUM_CHANGE_REQ,4,2 ## @DVD_ERROR_MEDIUM_CHANGE_REQ
	.comm	___dvd_internalretries,4,2      ## @__dvd_internalretries
	.comm	_DVD_ERROR_UNRECOVERABLE_READ,4,2 ## @DVD_ERROR_UNRECOVERABLE_READ
	.comm	___dvd_executing,8,3            ## @__dvd_executing
	.no_dead_strip	___dvd_categorizeerror
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __dvd_categorizeerror
___dvd_categorizeerror:                 ; @__dvd_categorizeerror
	.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	w8, #1024
	movk	w8, #2, lsl #16
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, ___dvd_lasterror@GOTPAGE
Lloh1:
	ldr	x9, [x9, ___dvd_lasterror@GOTPAGEOFF]
Lloh2:
	str	w8, [x9]
	mov	w0, #1
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	bl	_DVD_ERROR
Lloh3:
	adrp	x8, _DVD_ERROR_MEDIUM_CHANGED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DVD_ERROR_MEDIUM_CHANGED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_DVD_ERROR
Lloh6:
	adrp	x8, _DVD_ERROR_MEDIUM_NOT_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DVD_ERROR_MEDIUM_NOT_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_DVD_ERROR
Lloh9:
	adrp	x8, _DVD_ERROR_MEDIUM_CHANGE_REQ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DVD_ERROR_MEDIUM_CHANGE_REQ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_DVD_ERROR
	sub	w8, w0, #67, lsl #12            ; =274432
	cmp	w8, #256
	b.ne	LBB0_8
LBB0_6:
	mov	w0, #0
LBB0_7:
	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
	ret
LBB0_8:
Lloh12:
	adrp	x8, ___dvd_internalretries@GOTPAGE
Lloh13:
	ldr	x8, [x8, ___dvd_internalretries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	cmp	w9, #2
	b.ne	LBB0_10
; %bb.9:
Lloh14:
	adrp	x21, ___dvd_lasterror@GOTPAGE
Lloh15:
	ldr	x21, [x21, ___dvd_lasterror@GOTPAGEOFF]
	ldr	w22, [x21]
	mov	x0, x19
	bl	_DVD_ERROR
	mov	x20, x0
	mov	x0, x19
	bl	_DVD_ERROR
	str	w0, [x21]
	cmp	w22, w20
	mov	w8, #1
	cinc	w0, w8, ne
	b	LBB0_7
LBB0_10:
	mov	x0, x19
	bl	_DVD_ERROR
Lloh16:
	adrp	x8, ___dvd_lasterror@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___dvd_lasterror@GOTPAGEOFF]
Lloh18:
	str	w0, [x8]
	mov	x0, x19
	bl	_DVD_ERROR
Lloh19:
	adrp	x8, _DVD_ERROR_UNRECOVERABLE_READ@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DVD_ERROR_UNRECOVERABLE_READ@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.11:
Lloh22:
	adrp	x8, ___dvd_executing@GOTPAGE
Lloh23:
	ldr	x8, [x8, ___dvd_executing@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #5
	b.ne	LBB0_13
LBB0_12:
	mov	w0, #2
	b	LBB0_7
LBB0_13:
	mov	w0, #3
	b	LBB0_7
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	___dvd_lasterror,4,2            ; @__dvd_lasterror
	.comm	_DVD_ERROR_MEDIUM_CHANGED,4,2   ; @DVD_ERROR_MEDIUM_CHANGED
	.comm	_DVD_ERROR_MEDIUM_NOT_PRESENT,4,2 ; @DVD_ERROR_MEDIUM_NOT_PRESENT
	.comm	_DVD_ERROR_MEDIUM_CHANGE_REQ,4,2 ; @DVD_ERROR_MEDIUM_CHANGE_REQ
	.comm	___dvd_internalretries,4,2      ; @__dvd_internalretries
	.comm	_DVD_ERROR_UNRECOVERABLE_READ,4,2 ; @DVD_ERROR_UNRECOVERABLE_READ
	.comm	___dvd_executing,8,3            ; @__dvd_executing
	.no_dead_strip	___dvd_categorizeerror
.subsections_via_symbols
