	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_tiger                     ## -- Begin function read_tiger
	.p2align	4, 0x90
_read_tiger:                            ## @read_tiger
	.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
	movq	%rdi, %r15
	movl	(%rdi), %edx
	movl	4(%rdi), %ecx
	movq	_NETJET_IRQM0_READ@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	%esi, %eax
	andl	%edx, %eax
	testl	%ecx, %eax
	je	LBB0_1
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_1:
	movq	_NETJET_DMA_RXSIZE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %ebx
	movl	%ebx, %r14d
	shrl	$31, %r14d
	addl	%ebx, %r14d
	sarl	%r14d
	notl	%esi
	andl	%esi, %ecx
	orl	%eax, %ecx
	movl	%ecx, 4(%r15)
	movq	_NETJET_IRQM0_READ_1@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	movq	8(%r15), %rdi
	movq	(%rdi), %rdx
	movq	8(%rdi), %rax
	cmovel	%r14d, %ebx
	movslq	%ebx, %rcx
	leaq	-4(%rax,%rcx,4), %rbx
	movq	_L1_MODE_HDLC@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	_L1_MODE_HDLC_56K@GOTPCREL(%rip), %rcx
	cmpq	%rax, %rdx
	je	LBB0_3
## %bb.2:
	movq	(%rcx), %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_4
LBB0_3:
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_read_raw
	movq	8(%r15), %rdi
	movq	(%r13), %rax
	movq	_L1_MODE_HDLC_56K@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_4:
	movq	24(%rdi), %rdx
	cmpq	%rax, %rdx
	je	LBB0_6
## %bb.5:
	cmpq	%rcx, %rdx
	jne	LBB0_7
LBB0_6:
	addq	$24, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_read_raw
LBB0_7:
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETJET_DMA_RXSIZE,4,2          ## @NETJET_DMA_RXSIZE
	.comm	_NETJET_IRQM0_READ,4,2          ## @NETJET_IRQM0_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tiger warn read double dma %x/%x"

	.comm	_NETJET_IRQM0_READ_1,4,2        ## @NETJET_IRQM0_READ_1
	.comm	_L1_MODE_HDLC,8,3               ## @L1_MODE_HDLC
	.comm	_L1_MODE_HDLC_56K,8,3           ## @L1_MODE_HDLC_56K
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_read_tiger                     ; -- Begin function read_tiger
	.p2align	2
_read_tiger:                            ; @read_tiger
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _NETJET_DMA_RXSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETJET_DMA_RXSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w9, w8, lt
	ldp	w2, w3, [x0]
Lloh3:
	adrp	x22, _NETJET_IRQM0_READ@GOTPAGE
Lloh4:
	ldr	x22, [x22, _NETJET_IRQM0_READ@GOTPAGEOFF]
	ldr	w10, [x22]
	and	w11, w10, w2
	tst	w11, w3
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_debugl1
LBB0_2:
	asr	w20, w9, #1
	bic	w9, w3, w10
	orr	w9, w9, w11
	str	w9, [x19, #4]
Lloh7:
	adrp	x9, _NETJET_IRQM0_READ_1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _NETJET_IRQM0_READ_1@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	ldr	x0, [x19, #8]
	tst	w9, w2
	csel	w8, w20, w8, eq
	ldp	x10, x9, [x0]
	add	x8, x9, w8, sxtw #2
	sub	x21, x8, #4
Lloh10:
	adrp	x23, _L1_MODE_HDLC@GOTPAGE
Lloh11:
	ldr	x23, [x23, _L1_MODE_HDLC@GOTPAGEOFF]
	ldr	x8, [x23]
Lloh12:
	adrp	x24, _L1_MODE_HDLC_56K@GOTPAGE
Lloh13:
	ldr	x24, [x24, _L1_MODE_HDLC_56K@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x10, x8
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x1, x21
	mov	x2, x20
	bl	_read_raw
	ldr	x0, [x19, #8]
	ldr	x8, [x23]
	ldr	x9, [x24]
LBB0_4:
	ldr	x10, [x0, #24]
	cmp	x10, x8
	ccmp	x10, x9, #4, ne
	b.ne	LBB0_6
; %bb.5:
	add	x0, x0, #24
	mov	x1, x21
	mov	x2, x20
	bl	_read_raw
LBB0_6:
	ldr	w8, [x22]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETJET_DMA_RXSIZE,4,2          ; @NETJET_DMA_RXSIZE
	.comm	_NETJET_IRQM0_READ,4,2          ; @NETJET_IRQM0_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tiger warn read double dma %x/%x"

	.comm	_NETJET_IRQM0_READ_1,4,2        ; @NETJET_IRQM0_READ_1
	.comm	_L1_MODE_HDLC,8,3               ; @L1_MODE_HDLC
	.comm	_L1_MODE_HDLC_56K,8,3           ; @L1_MODE_HDLC_56K
.subsections_via_symbols
