	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_tmfifo_virtio_notify
_mlxbf_tmfifo_virtio_notify:            ## @mlxbf_tmfifo_virtio_notify
	.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
	movq	(%rdi), %rbx
	movq	16(%rbx), %r14
	movl	(%rbx), %r15d
	xorl	%edi, %edi
	callq	_BIT
	testl	%r15d, %eax
	je	LBB0_4
## %bb.1:
	movq	8(%rbx), %rax
	movq	_VIRTIO_ID_CONSOLE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.2:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r14), %rax
	movq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
	callq	_mlxbf_tmfifo_console_output
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_4:
	movq	_MLXBF_TM_RX_HWM_IRQ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_MLXBF_TM_TX_LWM_IRQ@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edi
	leaq	4(%r14), %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_7
LBB0_6:
	movq	%r14, %rdi
	callq	_schedule_work
LBB0_7:
	movl	$1, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_ID_CONSOLE,8,3          ## @VIRTIO_ID_CONSOLE
	.comm	_MLXBF_TM_TX_LWM_IRQ,4,2        ## @MLXBF_TM_TX_LWM_IRQ
	.comm	_MLXBF_TM_RX_HWM_IRQ,4,2        ## @MLXBF_TM_RX_HWM_IRQ
	.no_dead_strip	_mlxbf_tmfifo_virtio_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_tmfifo_virtio_notify
_mlxbf_tmfifo_virtio_notify:            ; @mlxbf_tmfifo_virtio_notify
	.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
	ldr	x20, [x0]
	ldr	x19, [x20, #16]
	ldr	w21, [x20]
	mov	w0, #0
	bl	_BIT
	tst	w0, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x22, _VIRTIO_ID_CONSOLE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _VIRTIO_ID_CONSOLE@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #16]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x20
	bl	_mlxbf_tmfifo_console_output
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	b	LBB0_6
LBB0_3:
Lloh2:
	adrp	x8, _MLXBF_TM_RX_HWM_IRQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MLXBF_TM_RX_HWM_IRQ@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _MLXBF_TM_TX_LWM_IRQ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MLXBF_TM_TX_LWM_IRQ@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_and_set_bit
	cbnz	x0, LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_schedule_work
LBB0_7:
	mov	w0, #1
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_ID_CONSOLE,8,3          ; @VIRTIO_ID_CONSOLE
	.comm	_MLXBF_TM_TX_LWM_IRQ,4,2        ; @MLXBF_TM_TX_LWM_IRQ
	.comm	_MLXBF_TM_RX_HWM_IRQ,4,2        ; @MLXBF_TM_RX_HWM_IRQ
	.no_dead_strip	_mlxbf_tmfifo_virtio_notify
.subsections_via_symbols
