	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_WriteConfig           ## -- Begin function CASSETTE_WriteConfig
	.p2align	4, 0x90
_CASSETTE_WriteConfig:                  ## @CASSETTE_WriteConfig
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_CASSETTE_filename@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_CASSETTE_status@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CASSETTE_STATUS_NONE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_fprintf
	movq	_CASSETTE_write_protect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CASSETTE_FILENAME=%s\n"

	.comm	_CASSETTE_filename,8,3          ## @CASSETTE_filename
L_.str.1:                               ## @.str.1
	.asciz	"CASSETTE_LOADED=%d\n"

	.comm	_CASSETTE_status,8,3            ## @CASSETTE_status
	.comm	_CASSETTE_STATUS_NONE,8,3       ## @CASSETTE_STATUS_NONE
L_.str.2:                               ## @.str.2
	.asciz	"CASSETTE_WRITE_PROTECT=%d\n"

	.comm	_CASSETTE_write_protect,4,2     ## @CASSETTE_write_protect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CASSETTE_WriteConfig           ; -- Begin function CASSETTE_WriteConfig
	.p2align	2
_CASSETTE_WriteConfig:                  ; @CASSETTE_WriteConfig
	.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, x0
Lloh0:
	adrp	x8, _CASSETTE_filename@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CASSETTE_filename@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
Lloh5:
	adrp	x8, _CASSETTE_status@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CASSETTE_status@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _CASSETTE_STATUS_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CASSETTE_STATUS_NONE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_fprintf
Lloh13:
	adrp	x8, _CASSETTE_write_protect@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CASSETTE_write_protect@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_fprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CASSETTE_FILENAME=%s\n"

	.comm	_CASSETTE_filename,8,3          ; @CASSETTE_filename
l_.str.1:                               ; @.str.1
	.asciz	"CASSETTE_LOADED=%d\n"

	.comm	_CASSETTE_status,8,3            ; @CASSETTE_status
	.comm	_CASSETTE_STATUS_NONE,8,3       ; @CASSETTE_STATUS_NONE
l_.str.2:                               ; @.str.2
	.asciz	"CASSETTE_WRITE_PROTECT=%d\n"

	.comm	_CASSETTE_write_protect,4,2     ; @CASSETTE_write_protect
.subsections_via_symbols
