	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_r_mib_pkt
_port_r_mib_pkt:                        ## @port_r_mib_pkt
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_KS_MIB_PACKET_DROPPED_RX_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	addl	%esi, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_KS_MIB_PACKET_DROPPED_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_KS_MIB_PACKET_DROPPED_TX_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%eax
	addl	%eax, %r15d
	addl	%ecx, %r15d
	addl	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	addq	$4, %r12
	cmpl	%ecx, %r15d
	jl	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_hw_block_intr
	movq	_TABLE_MIB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_TABLE_SEL_SHIFT@GOTPCREL(%rip), %rcx
	movzbl	(%rcx), %ecx
	shll	%cl, %edi
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_TABLE_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	shll	$8, %edi
	orl	%r15d, %edi
	movq	_KS884X_IACR_OFFSET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	(%r13), %rsi
	callq	_writew
	movq	(%rbx), %rsi
	movq	%r13, %rdi
	callq	_HW_DELAY
	movq	_KS884X_ACC_DATA_0_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	(%r13), %rdi
	callq	_readl
	movl	%eax, %r14d
	movq	%r13, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_hw_restore_intr
	movq	_MIB_PACKET_DROPPED@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12), %eax
	cmpl	%eax, %r14d
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx,%r12)
	movq	_MIB_PACKET_DROPPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	incl	%ecx
	subl	%eax, %r14d
	movl	$0, %eax
	cmovgel	%eax, %ecx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%r12), %r14d
	addl	%ecx, %r14d
	movl	%r14d, (%rax,%r12)
	jmp	LBB0_3
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KS_MIB_PACKET_DROPPED_RX_0,4,2 ## @KS_MIB_PACKET_DROPPED_RX_0
	.comm	_TABLE_MIB,4,2                  ## @TABLE_MIB
	.comm	_TABLE_SEL_SHIFT,4,2            ## @TABLE_SEL_SHIFT
	.comm	_TABLE_READ,4,2                 ## @TABLE_READ
	.comm	_KS884X_IACR_OFFSET,8,3         ## @KS884X_IACR_OFFSET
	.comm	_KS884X_ACC_DATA_0_OFFSET,8,3   ## @KS884X_ACC_DATA_0_OFFSET
	.comm	_MIB_PACKET_DROPPED,4,2         ## @MIB_PACKET_DROPPED
	.comm	_KS_MIB_PACKET_DROPPED_TX,4,2   ## @KS_MIB_PACKET_DROPPED_TX
	.comm	_KS_MIB_PACKET_DROPPED_TX_0,4,2 ## @KS_MIB_PACKET_DROPPED_TX_0
	.no_dead_strip	_port_r_mib_pkt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_r_mib_pkt
_port_r_mib_pkt:                        ; @port_r_mib_pkt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _KS_MIB_PACKET_DROPPED_RX_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KS_MIB_PACKET_DROPPED_RX_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w25, w8, w1
Lloh3:
	adrp	x26, _KS884X_IACR_OFFSET@GOTPAGE
Lloh4:
	ldr	x26, [x26, _KS884X_IACR_OFFSET@GOTPAGEOFF]
Lloh5:
	adrp	x28, _MIB_PACKET_DROPPED@GOTPAGE
Lloh6:
	ldr	x28, [x28, _MIB_PACKET_DROPPED@GOTPAGEOFF]
Lloh7:
	adrp	x27, _KS_MIB_PACKET_DROPPED_TX_0@GOTPAGE
Lloh8:
	ldr	x27, [x27, _KS_MIB_PACKET_DROPPED_TX_0@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #4
	add	x19, x19, #4
Lloh9:
	adrp	x8, _KS_MIB_PACKET_DROPPED_TX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _KS_MIB_PACKET_DROPPED_TX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x27]
	mvn	w8, w8
	add	w8, w25, w8
	add	w25, w8, w9
	add	w8, w9, w21
	cmp	w25, w8
	b.lt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_hw_block_intr
	mov	x23, x0
Lloh12:
	adrp	x8, _TABLE_MIB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TABLE_MIB@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _TABLE_SEL_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TABLE_SEL_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh18:
	adrp	x9, _TABLE_READ@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TABLE_READ@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w25, w8, lsl #8
	ldr	x8, [x22]
	ldr	x9, [x26]
	add	x1, x9, x8
	bl	_writew
	ldr	x1, [x26]
	mov	x0, x22
	bl	_HW_DELAY
	ldr	x8, [x22]
Lloh21:
	adrp	x9, _KS884X_ACC_DATA_0_OFFSET@GOTPAGE
Lloh22:
	ldr	x9, [x9, _KS884X_ACC_DATA_0_OFFSET@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x24, x0
	mov	x0, x22
	mov	x1, x23
	bl	_hw_restore_intr
	ldr	w8, [x28]
	and	w9, w8, w24
	ldr	w8, [x20]
	subs	w8, w9, w8
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w9, [x20]
	ldr	w9, [x28]
	csinc	w9, wzr, w9, ge
	ldr	w10, [x19]
	add	w8, w8, w10
	add	w8, w8, w9
	str	w8, [x19]
	b	LBB0_1
LBB0_4:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_KS_MIB_PACKET_DROPPED_RX_0,4,2 ; @KS_MIB_PACKET_DROPPED_RX_0
	.comm	_TABLE_MIB,4,2                  ; @TABLE_MIB
	.comm	_TABLE_SEL_SHIFT,4,2            ; @TABLE_SEL_SHIFT
	.comm	_TABLE_READ,4,2                 ; @TABLE_READ
	.comm	_KS884X_IACR_OFFSET,8,3         ; @KS884X_IACR_OFFSET
	.comm	_KS884X_ACC_DATA_0_OFFSET,8,3   ; @KS884X_ACC_DATA_0_OFFSET
	.comm	_MIB_PACKET_DROPPED,4,2         ; @MIB_PACKET_DROPPED
	.comm	_KS_MIB_PACKET_DROPPED_TX,4,2   ; @KS_MIB_PACKET_DROPPED_TX
	.comm	_KS_MIB_PACKET_DROPPED_TX_0,4,2 ; @KS_MIB_PACKET_DROPPED_TX_0
	.no_dead_strip	_port_r_mib_pkt
.subsections_via_symbols
