	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcpci_read_isac
_fcpci_read_isac:                       ## @fcpci_read_isac
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	(%rdi), %rbx
	cmpb	$48, %r14b
	jb	LBB0_1
## %bb.2:
	movq	_AVM_IDX_ISAC_REG_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_AVM_IDX_ISAC_REG_LOW@GOTPCREL(%rip), %rax
LBB0_3:
	movzbl	(%rax), %r15d
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_AVM_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_outb
	movq	_AVM_DATA@GOTPCREL(%rip), %rax
	movl	%r14d, %edi
	andl	$15, %edi
	addq	8(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_inb
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movzbl	%r15b, %ebx
	leaq	L_.str(%rip), %rsi
	movl	$4096, %edi                     ## imm = 0x1000
	movl	%r14d, %edx
	movl	%ebx, %ecx
	callq	_DBG
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_IDX_ISAC_REG_HIGH,1,0      ## @AVM_IDX_ISAC_REG_HIGH
	.comm	_AVM_IDX_ISAC_REG_LOW,1,0       ## @AVM_IDX_ISAC_REG_LOW
	.comm	_AVM_INDEX,8,3                  ## @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ## @AVM_DATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" port %#x, value %#x"

	.no_dead_strip	_fcpci_read_isac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcpci_read_isac
_fcpci_read_isac:                       ; @fcpci_read_isac
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
Lloh0:
	adrp	x8, _AVM_IDX_ISAC_REG_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVM_IDX_ISAC_REG_HIGH@GOTPAGEOFF]
	ldr	x20, [x0]
Lloh2:
	adrp	x9, _AVM_IDX_ISAC_REG_LOW@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AVM_IDX_ISAC_REG_LOW@GOTPAGEOFF]
	cmp	w1, #47
	csel	x8, x8, x9, hi
	ldrb	w21, [x8]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _AVM_INDEX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _AVM_INDEX@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_outb
	ldr	x8, [x20, #8]
Lloh7:
	adrp	x9, _AVM_DATA@GOTPAGE
Lloh8:
	ldr	x9, [x9, _AVM_DATA@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	and	x10, x19, #0xf
	add	x8, x8, x10
	add	x0, x8, x9
	bl	_inb
	mov	x21, x0
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4096
	mov	x2, x19
	mov	x3, x21
	bl	_DBG
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	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	_AVM_IDX_ISAC_REG_HIGH,1,0      ; @AVM_IDX_ISAC_REG_HIGH
	.comm	_AVM_IDX_ISAC_REG_LOW,1,0       ; @AVM_IDX_ISAC_REG_LOW
	.comm	_AVM_INDEX,8,3                  ; @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ; @AVM_DATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" port %#x, value %#x"

	.no_dead_strip	_fcpci_read_isac
.subsections_via_symbols
