	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_tmfifo_rxtx
_mlxbf_tmfifo_rxtx:                     ## @mlxbf_tmfifo_rxtx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -44(%rbp)
	movslq	(%rdi), %r12
	movq	8(%rdi), %r15
	movq	8(%r15), %rax
	cmpl	$0, (%rax,%r12,4)
	je	LBB0_13
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	(%r15), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	cmpq	%r14, %rax
	jne	LBB0_13
LBB0_3:
	movq	_VIRTIO_ID_NET@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	setne	%al
	movq	_VIRTIO_ID_CONSOLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_13
## %bb.4:
	xorl	%eax, %eax
	leaq	-44(%rbp), %r13
	testl	%eax, %eax
	jne	LBB0_10
	.p2align	4, 0x90
LBB0_6:
	movq	%r15, %rdi
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.7:
	callq	_mlxbf_tmfifo_get_rx_avail
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:
	movl	%r12d, %esi
	callq	_mlxbf_tmfifo_get_tx_avail
LBB0_9:
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jle	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	_VIRTIO_ID_CONSOLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r12d
	je	LBB0_12
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_mlxbf_tmfifo_rxtx_one_desc
	testl	%eax, %eax
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_10
	jmp	LBB0_6
LBB0_12:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mlxbf_tmfifo_console_tx
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIRTIO_ID_NET,4,2              ## @VIRTIO_ID_NET
	.comm	_VIRTIO_ID_CONSOLE,4,2          ## @VIRTIO_ID_CONSOLE
	.no_dead_strip	_mlxbf_tmfifo_rxtx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_tmfifo_rxtx
_mlxbf_tmfifo_rxtx:                     ; @mlxbf_tmfifo_rxtx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	str	wzr, [sp, #12]
	ldrsw	x22, [x0]
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #8]
	ldr	w8, [x8, x22, lsl #2]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x21]
	ldr	x8, [x8, w1, sxtw #3]
	cmp	x8, #0
	ccmp	x8, x0, #4, ne
	b.ne	LBB0_13
; %bb.2:
Lloh0:
	adrp	x8, _VIRTIO_ID_NET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VIRTIO_ID_NET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
Lloh3:
	adrp	x23, _VIRTIO_ID_CONSOLE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _VIRTIO_ID_CONSOLE@GOTPAGEOFF]
	ldr	w8, [x23]
	ccmp	w22, w8, #4, ne
	cset	w0, ne
	bl	_WARN_ON
	cbnz	x0, LBB0_13
; %bb.3:
	mov	w1, #0
	cbnz	w1, LBB0_8
LBB0_4:
	mov	x0, x21
	cbz	w19, LBB0_6
; %bb.5:
	bl	_mlxbf_tmfifo_get_rx_avail
	b	LBB0_7
LBB0_6:
	mov	x1, x22
	bl	_mlxbf_tmfifo_get_tx_avail
LBB0_7:
	mov	x1, x0
	str	w0, [sp, #12]
	cmp	w0, #1
	b.lt	LBB0_13
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w19, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x23]
	cmp	w22, w8
	b.eq	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x2, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_mlxbf_tmfifo_rxtx_one_desc
	cbz	w0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [sp, #12]
	cbnz	w1, LBB0_8
	b	LBB0_4
LBB0_12:
	mov	x0, x21
	bl	_mlxbf_tmfifo_console_tx
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VIRTIO_ID_NET,4,2              ; @VIRTIO_ID_NET
	.comm	_VIRTIO_ID_CONSOLE,4,2          ; @VIRTIO_ID_CONSOLE
	.no_dead_strip	_mlxbf_tmfifo_rxtx
.subsections_via_symbols
