	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_enable_irq                 ## -- Begin function lio_enable_irq
	.p2align	4, 0x90
_lio_enable_irq:                        ## @lio_enable_irq
	.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
	movq	%rsi, %r15
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	leaq	24(%r14), %rdi
	callq	_atomic_read
	movq	%rax, %rbx
	movq	16(%r14), %rdi
	subq	%rax, %rdi
	movl	(%r14), %esi
	callq	_writel
	movq	%rbx, 16(%r14)
	movq	8(%r14), %rbx
	testq	%r15, %r15
	je	LBB0_5
LBB0_4:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movq	24(%r15), %rdi
	movl	(%r15), %esi
	callq	_writel
	movl	24(%r15), %eax
	subl	%eax, 32(%r15)
	movq	$0, 24(%r15)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	8(%r15), %rbx
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movq	%rbx, %rdi
	callq	_OCTEON_CN23XX_PF
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_OCTEON_CN23XX_VF
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:
	testq	%r14, %r14
	jne	LBB0_11
## %bb.9:
	testq	%r15, %r15
	je	LBB0_12
## %bb.10:
	movl	(%r15), %edi
	callq	_readq
	movq	%r15, %r14
LBB0_11:
	movq	_CN23XX_INTR_RESEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeq                         ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CN23XX_INTR_RESEND,4,2         ## @CN23XX_INTR_RESEND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lio_enable_irq                 ; -- Begin function lio_enable_irq
	.p2align	2
_lio_enable_irq:                        ; @lio_enable_irq
	.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
	mov	x20, x0
	cbz	x0, LBB0_11
; %bb.1:
	add	x0, x20, #24
	bl	_atomic_read
	mov	x21, x0
	ldr	x8, [x20, #16]
	sub	x0, x8, x0
	ldr	w1, [x20]
	bl	_writel
	str	x21, [x20, #16]
	ldr	x21, [x20, #8]
	cbz	x19, LBB0_3
LBB0_2:
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	x0, [x19, #24]
	ldr	w1, [x19]
	bl	_writel
	ldr	w8, [x19, #24]
	ldr	w9, [x19, #32]
	sub	w8, w9, w8
	str	w8, [x19, #32]
	str	xzr, [x19, #24]
	mov	x0, x21
	bl	_spin_unlock_bh
	ldr	x21, [x19, #8]
LBB0_3:
	cbz	x21, LBB0_10
; %bb.4:
	mov	x0, x21
	bl	_OCTEON_CN23XX_PF
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_OCTEON_CN23XX_VF
	cbz	x0, LBB0_10
LBB0_6:
	cbnz	x20, LBB0_9
; %bb.7:
	cbz	x19, LBB0_10
; %bb.8:
	ldr	w0, [x19]
	bl	_readq
	mov	x20, x19
LBB0_9:
Lloh0:
	adrp	x8, _CN23XX_INTR_RESEND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CN23XX_INTR_RESEND@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20]
	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	_writeq
LBB0_10:
	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
LBB0_11:
	mov	x21, #0
	cbnz	x19, LBB0_2
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CN23XX_INTR_RESEND,4,2         ; @CN23XX_INTR_RESEND
.subsections_via_symbols
