	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amb_proc_read
_amb_proc_read:                         ## @amb_proc_read
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	callq	_AMB_DEV
	movq	%rax, %r15
	movl	(%rbx), %ebx
	movq	_DBG_FLOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PRINTD
	cmpq	$4, %rbx
	ja	LBB0_1
## %bb.2:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	60(%r15), %edx
	movl	56(%r15), %ecx
	movl	52(%r15), %r8d
	movl	48(%r15), %r9d
	movl	44(%r15), %r10d
	movl	36(%r15), %ebx
	movl	40(%r15), %r11d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	callq	_sprintf
	addq	$56, %rsp
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_4:
	movl	24(%r15), %edx
	movl	28(%r15), %ecx
	movl	32(%r15), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_5:
	movl	8(%r15), %edx
	movl	12(%r15), %ecx
	movl	16(%r15), %r8d
	movl	20(%r15), %r9d
	leaq	L_.str.3(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
LBB0_6:
	movups	L_.str.4+16(%rip), %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, 16(%rax)
	movups	L_.str.4(%rip), %xmm0
	movups	%xmm0, (%rax)
	movl	$3825017, 31(%rax)              ## imm = 0x3A5D79
	movq	_NUM_RX_POOLS@GOTPCREL(%rip), %r14
	cmpb	$0, (%r14)
	je	LBB0_7
## %bb.8:
	movl	$34, %ebx
	movl	$16, %r13d
	xorl	%r12d, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	%ebx, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	addq	%rdx, %rdi
	movl	-16(%rax,%r13), %edx
	movl	-12(%rax,%r13), %ecx
	movl	-8(%rax,%r13), %r8d
	movl	-4(%rax,%r13), %r9d
	movl	(%rax,%r13), %r10d
	subq	$8, %rsp
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r10
	callq	_sprintf
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	addq	$16, %rsp
	addl	%eax, %ebx
	incq	%r12
	movzbl	(%r14), %eax
	addq	$24, %r13
	cmpq	%rax, %r12
	jb	LBB0_9
	jmp	LBB0_14
LBB0_10:
	movups	L_.str.7(%rip), %xmm0
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movups	%xmm0, (%rax)
	movb	$0, 16(%rax)
	movq	_NUM_RX_POOLS@GOTPCREL(%rip), %r14
	cmpb	$0, (%r14)
	je	LBB0_11
## %bb.12:
	movl	$16, %ebx
	movl	$20, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	%ebx, %edi
	addq	-48(%rbp), %rdi                 ## 8-byte Folded Reload
	movl	(%rax,%r13), %edx
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %ebx
	incq	%r12
	movzbl	(%r14), %eax
	addq	$24, %r13
	cmpq	%rax, %r12
	jb	LBB0_13
	jmp	LBB0_14
LBB0_7:
	movl	$34, %ebx
	jmp	LBB0_14
LBB0_11:
	movl	$16, %ebx
LBB0_14:
	movl	%ebx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, 2(%rcx,%rax)
	movw	$2606, (%rcx,%rax)              ## imm = 0xA2E
	addl	$2, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_DBG_FLOW,4,2                   ## @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"amb_proc_read"

L_.str.1:                               ## @.str.1
	.asciz	"frames: TX OK %lu, RX OK %lu, RX bad %lu (CRC %lu, long %lu, aborted %lu, unused %lu).\n"

L_.str.2:                               ## @.str.2
	.asciz	"cmd queue [cur/hi/max]: %u/%u/%u. "

L_.str.3:                               ## @.str.3
	.asciz	"TX queue [cur/max high full]: %u/%u %u %u.\n"

L_.str.4:                               ## @.str.4
	.asciz	"RX queues [cur/max/req low empty]:"

	.comm	_NUM_RX_POOLS,1,0               ## @NUM_RX_POOLS
L_.str.5:                               ## @.str.5
	.asciz	" %u/%u/%u %u %u"

L_.str.6:                               ## @.str.6
	.asciz	".\n"

L_.str.7:                               ## @.str.7
	.asciz	"RX buffer sizes:"

L_.str.8:                               ## @.str.8
	.asciz	" %u"

	.no_dead_strip	_amb_proc_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amb_proc_read
_amb_proc_read:                         ; @amb_proc_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	bl	_AMB_DEV
	mov	x20, x0
	ldr	w21, [x21]
Lloh0:
	adrp	x8, _DBG_FLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBG_FLOW@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PRINTD
	cmp	w21, #4
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, lJTI0_0@PAGE
Lloh6:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_2
	ldrb	w10, [x8, x21]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_2:
	ldp	w9, w8, [x20, #56]
	ldp	w11, w10, [x20, #48]
	ldp	w13, w12, [x20, #40]
	ldr	w14, [x20, #36]
	stp	x13, x14, [sp, #40]
	stp	x11, x12, [sp, #24]
	stp	x9, x10, [sp, #8]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x8, [sp]
	b	LBB0_6
LBB0_3:
	mov	w0, #0
	b	LBB0_16
LBB0_4:
	ldp	w8, w9, [x20, #24]
	ldr	w10, [x20, #32]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldp	w8, w9, [x20, #8]
	ldp	w10, w11, [x20, #16]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_sprintf
	b	LBB0_16
LBB0_7:
	mov	w8, #23929
	movk	w8, #58, lsl #16
	stur	w8, [x19, #31]
Lloh13:
	adrp	x8, l_.str.4@PAGE
Lloh14:
	add	x8, x8, l_.str.4@PAGEOFF
	ldp	q0, q1, [x8]
	stp	q0, q1, [x19]
Lloh15:
	adrp	x23, _NUM_RX_POOLS@GOTPAGE
Lloh16:
	ldr	x23, [x23, _NUM_RX_POOLS@GOTPAGEOFF]
	ldrb	w8, [x23]
	cbz	w8, LBB0_13
; %bb.8:
	mov	x24, #0
	mov	x25, #0
	mov	w22, #34
Lloh17:
	adrp	x21, l_.str.5@PAGE
Lloh18:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x19, w22, uxtw
	add	x8, x8, x24
	ldp	w9, w10, [x8]
	ldp	w11, w12, [x8, #8]
	ldr	w8, [x8, #16]
	stp	x12, x8, [sp, #24]
	stp	x10, x11, [sp, #8]
	str	x9, [sp]
	mov	x1, x21
	bl	_sprintf
	add	w22, w0, w22
	add	x25, x25, #1
	ldrb	w8, [x23]
	add	x24, x24, #24
	cmp	x25, x8
	b.lo	LBB0_9
	b	LBB0_15
LBB0_10:
	adrp	x8, l_.str.7@PAGE
	add	x8, x8, l_.str.7@PAGEOFF
	strb	wzr, [x19, #16]
	ldr	q0, [x8]
	str	q0, [x19]
Lloh19:
	adrp	x23, _NUM_RX_POOLS@GOTPAGE
Lloh20:
	ldr	x23, [x23, _NUM_RX_POOLS@GOTPAGEOFF]
	ldrb	w8, [x23]
	cbz	w8, LBB0_14
; %bb.11:
	mov	x24, #0
	mov	w22, #16
	mov	w25, #20
Lloh21:
	adrp	x21, l_.str.8@PAGE
Lloh22:
	add	x21, x21, l_.str.8@PAGEOFF
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x0, x19, w22, uxtw
	ldr	w8, [x8, x25]
	str	x8, [sp]
	mov	x1, x21
	bl	_sprintf
	add	w22, w0, w22
	add	x24, x24, #1
	ldrb	w8, [x23]
	add	x25, x25, #24
	cmp	x24, x8
	b.lo	LBB0_12
	b	LBB0_15
LBB0_13:
	mov	w22, #34
	b	LBB0_15
LBB0_14:
	mov	w22, #16
LBB0_15:
	add	x8, x19, w22, uxtw
	strb	wzr, [x8, #2]
	mov	w9, #2606
	strh	w9, [x8]
	add	w0, w22, #2
LBB0_16:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
                                        ; -- End function
	.comm	_DBG_FLOW,4,2                   ; @DBG_FLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"amb_proc_read"

l_.str.1:                               ; @.str.1
	.asciz	"frames: TX OK %lu, RX OK %lu, RX bad %lu (CRC %lu, long %lu, aborted %lu, unused %lu).\n"

l_.str.2:                               ; @.str.2
	.asciz	"cmd queue [cur/hi/max]: %u/%u/%u. "

l_.str.3:                               ; @.str.3
	.asciz	"TX queue [cur/max high full]: %u/%u %u %u.\n"

l_.str.4:                               ; @.str.4
	.asciz	"RX queues [cur/max/req low empty]:"

	.comm	_NUM_RX_POOLS,1,0               ; @NUM_RX_POOLS
l_.str.5:                               ; @.str.5
	.asciz	" %u/%u/%u %u %u"

l_.str.6:                               ; @.str.6
	.asciz	".\n"

l_.str.7:                               ; @.str.7
	.asciz	"RX buffer sizes:"

l_.str.8:                               ; @.str.8
	.asciz	" %u"

	.no_dead_strip	_amb_proc_read
.subsections_via_symbols
