	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcpci_write_isac
_fcpci_write_isac:                      ## @fcpci_write_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	(%rdi), %r15
	cmpb	$48, %bl
	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), %r12d
	leaq	L_.str(%rip), %rsi
	movl	$4096, %edi                     ## imm = 0x1000
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_DBG
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	_AVM_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	movl	%r12d, %edi
	callq	_outb
	movq	_AVM_DATA@GOTPCREL(%rip), %rax
	andl	$15, %ebx
	addq	8(%r15), %rbx
	addq	(%rax), %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_outb
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" port %#x, value %#x"

	.comm	_AVM_INDEX,8,3                  ## @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ## @AVM_DATA
	.no_dead_strip	_fcpci_write_isac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcpci_write_isac
_fcpci_write_isac:                      ; @fcpci_write_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, x2
	mov	x20, x1
Lloh0:
	adrp	x8, _AVM_IDX_ISAC_REG_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVM_IDX_ISAC_REG_HIGH@GOTPAGEOFF]
	ldr	x21, [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	w22, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4096
	mov	x2, x20
	mov	x3, x19
	bl	_DBG
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x21, #8]
Lloh6:
	adrp	x9, _AVM_INDEX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AVM_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_outb
	ldr	x8, [x21, #8]
Lloh9:
	adrp	x9, _AVM_DATA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AVM_DATA@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	and	x10, x20, #0xf
	add	x8, x8, x10
	add	x1, x8, x9
	mov	x0, x19
	bl	_outb
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" port %#x, value %#x"

	.comm	_AVM_INDEX,8,3                  ; @AVM_INDEX
	.comm	_AVM_DATA,8,3                   ; @AVM_DATA
	.no_dead_strip	_fcpci_write_isac
.subsections_via_symbols
