	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Devices_B_Open
_Devices_B_Open:                        ## @Devices_B_Open
	.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	_devbug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_Log_print
LBB0_2:
	movq	_Devices_ICAX1Z@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MEMORY_dGetByte
	movl	$163, %ecx
	cmpl	$8, %eax
	jne	LBB0_4
## %bb.3:
	movq	_dev_b_status@GOTPCREL(%rip), %rbx
	movl	16(%rbx), %edi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	$0, 8(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movl	$1, %ecx
LBB0_4:
	movq	_CPU_regY@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_devbug,8,3                     ## @devbug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"B: OPEN"

	.comm	_Devices_ICAX1Z,4,2             ## @Devices_ICAX1Z
	.comm	_CPU_regY,4,2                   ## @CPU_regY
	.comm	_CPU_SetN,4,2                   ## @CPU_SetN
	.comm	_dev_b_status,24,3              ## @dev_b_status
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_CPU_ClrN,4,2                   ## @CPU_ClrN
	.no_dead_strip	_Devices_B_Open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Devices_B_Open
_Devices_B_Open:                        ; @Devices_B_Open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _devbug@GOTPAGE
Lloh1:
	ldr	x8, [x8, _devbug@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Log_print
LBB0_2:
Lloh5:
	adrp	x8, _Devices_ICAX1Z@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Devices_ICAX1Z@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_MEMORY_dGetByte
	cmp	w0, #8
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x19, _dev_b_status@GOTPAGE
Lloh9:
	ldr	x19, [x19, _dev_b_status@GOTPAGEOFF]
	ldr	w0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	str	xzr, [x19, #8]
Lloh10:
	adrp	x8, _FALSE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	w8, #1
	b	LBB0_5
LBB0_4:
	mov	w8, #163
LBB0_5:
Lloh13:
	adrp	x9, _CPU_regY@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CPU_regY@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_devbug,8,3                     ; @devbug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"B: OPEN"

	.comm	_Devices_ICAX1Z,4,2             ; @Devices_ICAX1Z
	.comm	_CPU_regY,4,2                   ; @CPU_regY
	.comm	_CPU_SetN,4,2                   ; @CPU_SetN
	.comm	_dev_b_status,24,3              ; @dev_b_status
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_CPU_ClrN,4,2                   ; @CPU_ClrN
	.no_dead_strip	_Devices_B_Open
.subsections_via_symbols
