	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function duramar2150_c2port_access
_duramar2150_c2port_access:             ## @duramar2150_c2port_access
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	_update_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_DIR_PORT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_inb
	movq	_C2D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_C2CK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	orl	%eax, %edi
	orl	%ecx, %edi
	jmp	LBB0_3
LBB0_2:
	orl	%edi, %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
LBB0_3:
	movl	(%r14), %esi
	callq	_outb
	movq	_update_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_update_lock,4,2                ## @update_lock
	.comm	_DIR_PORT,4,2                   ## @DIR_PORT
	.comm	_C2D,4,2                        ## @C2D
	.comm	_C2CK,4,2                       ## @C2CK
	.no_dead_strip	_duramar2150_c2port_access
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function duramar2150_c2port_access
_duramar2150_c2port_access:             ; @duramar2150_c2port_access
	.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
	mov	x19, x1
Lloh0:
	adrp	x0, _update_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _update_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x20, _DIR_PORT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _DIR_PORT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_inb
Lloh4:
	adrp	x8, _C2D@GOTPAGE
Lloh5:
	ldr	x8, [x8, _C2D@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _C2CK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _C2CK@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w10, w9, w8
	bic	w10, w0, w10
	orr	w8, w8, w0
	orr	w8, w8, w9
	cmp	w19, #0
	csel	w0, w10, w8, eq
	ldr	w1, [x20]
	bl	_outb
Lloh10:
	adrp	x0, _update_lock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _update_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_update_lock,4,2                ; @update_lock
	.comm	_DIR_PORT,4,2                   ; @DIR_PORT
	.comm	_C2D,4,2                        ; @C2D
	.comm	_C2CK,4,2                       ; @C2CK
	.no_dead_strip	_duramar2150_c2port_access
.subsections_via_symbols
