	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ether1_inw_p
_ether1_inw_p:                          ## @ether1_inw_p
	.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	%edx, %r14d
	movl	%esi, %ebx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	callq	_local_irq_save
LBB0_2:
	movl	%ebx, %edi
	sarl	$12, %edi
	movq	_REG_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_writeb
	movq	_ETHER1_RAM@GOTPCREL(%rip), %rax
	addl	%ebx, %ebx
	andl	$8190, %ebx                     ## imm = 0x1FFE
	addq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_readw
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	callq	_local_irq_restore
LBB0_4:
	movzwl	%bx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_PAGE,4,2                   ## @REG_PAGE
	.comm	_ETHER1_RAM,8,3                 ## @ETHER1_RAM
	.no_dead_strip	_ether1_inw_p
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ether1_inw_p
_ether1_inw_p:                          ; @ether1_inw_p
	.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, x2
	mov	x20, x1
	cbz	w2, LBB0_2
; %bb.1:
	bl	_local_irq_save
LBB0_2:
	asr	w0, w20, #12
Lloh0:
	adrp	x8, _REG_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_writeb
Lloh3:
	adrp	x8, _ETHER1_RAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETHER1_RAM@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ubfiz	w9, w20, #1, #12
	add	x0, x8, x9
	bl	_readw
	mov	x20, x0
	cbz	w19, LBB0_4
; %bb.3:
	bl	_local_irq_restore
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_PAGE,4,2                   ; @REG_PAGE
	.comm	_ETHER1_RAM,8,3                 ; @ETHER1_RAM
	.no_dead_strip	_ether1_inw_p
.subsections_via_symbols
