	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_ToggleWriteProtect    ## -- Begin function CASSETTE_ToggleWriteProtect
	.p2align	4, 0x90
_CASSETTE_ToggleWriteProtect:           ## @CASSETTE_ToggleWriteProtect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_CASSETTE_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CASSETTE_STATUS_READ_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_CASSETTE_write_protect@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	sete	%cl
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_UpdateFlags
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CASSETTE_status,8,3            ## @CASSETTE_status
	.comm	_CASSETTE_STATUS_READ_WRITE,8,3 ## @CASSETTE_STATUS_READ_WRITE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CASSETTE_write_protect,4,2     ## @CASSETTE_write_protect
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_ToggleWriteProtect    ; -- Begin function CASSETTE_ToggleWriteProtect
	.p2align	2
_CASSETTE_ToggleWriteProtect:           ; @CASSETTE_ToggleWriteProtect
	.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, _CASSETTE_status@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CASSETTE_status@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CASSETTE_STATUS_READ_WRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CASSETTE_STATUS_READ_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _CASSETTE_write_protect@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CASSETTE_write_protect@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #0
	cset	w9, eq
	str	w9, [x8]
	bl	_UpdateFlags
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CASSETTE_status,8,3            ; @CASSETTE_status
	.comm	_CASSETTE_STATUS_READ_WRITE,8,3 ; @CASSETTE_STATUS_READ_WRITE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CASSETTE_write_protect,4,2     ; @CASSETTE_write_protect
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
