	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netjet_fill_dma                ## -- Begin function netjet_fill_dma
	.p2align	4, 0x90
_netjet_fill_dma:                       ## @netjet_fill_dma
	.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
	cmpl	$0, 56(%rdi)
	je	LBB0_31
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	movq	_L1_DEB_HSCX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_debugl1
LBB0_3:
	movq	_BC_FLG_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_31
## %bb.4:
	movq	(%rbx), %rax
	movq	_L1_MODE_HDLC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_make_raw_data
	testq	%rax, %rax
	jne	LBB0_31
	jmp	LBB0_8
LBB0_6:
	movq	%rbx, %rdi
	callq	_make_raw_data_56k
	testq	%rax, %rax
	jne	LBB0_31
LBB0_8:
	movq	16(%rbx), %rdi
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_10
## %bb.9:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_debugl1
LBB0_10:
	movq	_BC_FLG_NOFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	48(%rbx), %rsi
LBB0_18:
	movl	24(%rbx), %edx
	movq	%rbx, %rdi
	jmp	LBB0_29
LBB0_12:
	movq	_BC_FLG_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_24
## %bb.13:
	movq	16(%rbx), %rax
	movq	_NETJET_DMA_READ_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_inl
	movl	%eax, %edi
	callq	_bus_to_virt
	movq	40(%rbx), %rcx
	movq	48(%rbx), %rsi
	cmpq	%rcx, %rax
	jne	LBB0_15
## %bb.14:
	movq	32(%rbx), %rax
	addq	$-4, %rax
LBB0_15:
	movq	%rsi, %rdx
	cmpq	%rcx, %rsi
	jne	LBB0_17
## %bb.16:
	movq	32(%rbx), %rdx
	addq	$-4, %rdx
LBB0_17:
	movq	%rax, %rdi
	subq	%rdx, %rdi
	shrq	$2, %rdi
	testl	%edi, %edi
	js	LBB0_18
## %bb.19:
	addq	$4, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_21
## %bb.20:
	movq	32(%rbx), %rax
LBB0_21:
	addq	$4, %rax
	cmpq	%rcx, %rax
	jbe	LBB0_23
## %bb.22:
	movq	32(%rbx), %rax
LBB0_23:
	movl	24(%rbx), %edx
	subl	%edi, %edx
	jmp	LBB0_28
LBB0_24:
	movq	_BC_FLG_EMPTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_30
## %bb.25:
	movq	16(%rbx), %rax
	movq	_NETJET_DMA_READ_ADR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	8(%rax), %rdi
	callq	_inl
	movl	%eax, %edi
	callq	_bus_to_virt
	movq	40(%rbx), %rcx
	subq	%rax, %rcx
	shrq	$2, %rcx
	cmpl	$1, %ecx
	jg	LBB0_27
## %bb.26:
	movq	32(%rbx), %rax
	addq	$4, %rax
	movq	_NETJET_DMA_TXSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	jmp	LBB0_28
LBB0_27:
	addq	$8, %rax
	movq	_NETJET_DMA_TXSIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	xorl	%edx, %edx
	cmpl	%ecx, %esi
	cmovgel	%esi, %edx
	addl	%ecx, %edx
LBB0_28:
	addl	$-2, %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
LBB0_29:
	callq	_write_raw
LBB0_30:
	movq	16(%rbx), %rdi
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_31
## %bb.32:
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_31:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_L1_DEB_HSCX,4,2                ## @L1_DEB_HSCX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tiger fill_dma1: c%d %4x"

	.comm	_BC_FLG_BUSY,4,2                ## @BC_FLG_BUSY
	.comm	_L1_MODE_HDLC,8,3               ## @L1_MODE_HDLC
L_.str.1:                               ## @.str.1
	.asciz	"tiger fill_dma2: c%d %4x"

	.comm	_BC_FLG_NOFRAME,4,2             ## @BC_FLG_NOFRAME
	.comm	_BC_FLG_HALF,4,2                ## @BC_FLG_HALF
	.comm	_NETJET_DMA_READ_ADR,8,3        ## @NETJET_DMA_READ_ADR
	.comm	_BC_FLG_EMPTY,4,2               ## @BC_FLG_EMPTY
	.comm	_NETJET_DMA_TXSIZE,4,2          ## @NETJET_DMA_TXSIZE
L_.str.2:                               ## @.str.2
	.asciz	"tiger fill_dma3: c%d %4x"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netjet_fill_dma                ; -- Begin function netjet_fill_dma
	.p2align	2
_netjet_fill_dma:                       ; @netjet_fill_dma
	.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	w8, [x0, #56]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x0, [x0, #16]
	ldr	w8, [x0]
Lloh0:
	adrp	x21, _L1_DEB_HSCX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _L1_DEB_HSCX@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldp	w3, w2, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_debugl1
LBB0_3:
Lloh4:
	adrp	x8, _BC_FLG_BUSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BC_FLG_BUSY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x20, x19, #8
	mov	x1, x20
	bl	_test_and_set_bit
	cbz	x0, LBB0_5
LBB0_4:
	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_5:
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _L1_MODE_HDLC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _L1_MODE_HDLC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	bl	_make_raw_data
	cbnz	x0, LBB0_4
	b	LBB0_8
LBB0_7:
	bl	_make_raw_data_56k
	cbnz	x0, LBB0_4
LBB0_8:
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldp	w3, w2, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_debugl1
LBB0_10:
Lloh12:
	adrp	x8, _BC_FLG_NOFRAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BC_FLG_NOFRAME@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x1, [x19, #48]
	ldr	w2, [x19, #24]
	b	LBB0_29
LBB0_12:
Lloh15:
	adrp	x8, _BC_FLG_HALF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BC_FLG_HALF@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_23
; %bb.13:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh18:
	adrp	x9, _NETJET_DMA_READ_ADR@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETJET_DMA_READ_ADR@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	bl	_bus_to_virt
	ldp	x8, x1, [x19, #40]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.14:
	ldr	x9, [x19, #32]
	sub	x0, x9, #4
LBB0_15:
	mov	x9, x1
	cmp	x1, x8
	b.ne	LBB0_17
; %bb.16:
	ldr	x9, [x19, #32]
	sub	x9, x9, #4
LBB0_17:
	sub	x9, x0, x9
	lsr	x9, x9, #2
	tbnz	w9, #31, LBB0_26
; %bb.18:
	add	x10, x0, #4
	cmp	x10, x8
	b.ls	LBB0_20
; %bb.19:
	ldr	x10, [x19, #32]
LBB0_20:
	add	x1, x10, #4
	cmp	x1, x8
	b.ls	LBB0_22
; %bb.21:
	ldr	x1, [x19, #32]
LBB0_22:
	ldr	w8, [x19, #24]
	sub	w8, w8, w9
	b	LBB0_28
LBB0_23:
Lloh21:
	adrp	x8, _BC_FLG_EMPTY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BC_FLG_EMPTY@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	x0, LBB0_30
; %bb.24:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #8]
Lloh24:
	adrp	x9, _NETJET_DMA_READ_ADR@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETJET_DMA_READ_ADR@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
	bl	_bus_to_virt
	ldr	x8, [x19, #40]
	sub	x8, x8, x0
	lsr	x8, x8, #2
	cmp	w8, #1
	b.gt	LBB0_27
; %bb.25:
	ldr	x8, [x19, #32]
	add	x1, x8, #4
Lloh27:
	adrp	x8, _NETJET_DMA_TXSIZE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NETJET_DMA_TXSIZE@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	b	LBB0_28
LBB0_26:
	ldr	w2, [x19, #24]
	b	LBB0_29
LBB0_27:
	add	x1, x0, #8
Lloh30:
	adrp	x9, _NETJET_DMA_TXSIZE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _NETJET_DMA_TXSIZE@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	cmp	w9, w8
	csel	w9, wzr, w9, lt
	add	w8, w9, w8
LBB0_28:
	sub	w2, w8, #2
LBB0_29:
	mov	x0, x19
	bl	_write_raw
LBB0_30:
	ldr	x0, [x19, #16]
	ldr	w8, [x0]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.31:
	ldp	w3, w2, [x19, #8]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	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	_debugl1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_L1_DEB_HSCX,4,2                ; @L1_DEB_HSCX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tiger fill_dma1: c%d %4x"

	.comm	_BC_FLG_BUSY,4,2                ; @BC_FLG_BUSY
	.comm	_L1_MODE_HDLC,8,3               ; @L1_MODE_HDLC
l_.str.1:                               ; @.str.1
	.asciz	"tiger fill_dma2: c%d %4x"

	.comm	_BC_FLG_NOFRAME,4,2             ; @BC_FLG_NOFRAME
	.comm	_BC_FLG_HALF,4,2                ; @BC_FLG_HALF
	.comm	_NETJET_DMA_READ_ADR,8,3        ; @NETJET_DMA_READ_ADR
	.comm	_BC_FLG_EMPTY,4,2               ; @BC_FLG_EMPTY
	.comm	_NETJET_DMA_TXSIZE,4,2          ; @NETJET_DMA_TXSIZE
l_.str.2:                               ; @.str.2
	.asciz	"tiger fill_dma3: c%d %4x"

.subsections_via_symbols
