	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2io_chk_xpak_counter
_s2io_chk_xpak_counter:                 ## @s2io_chk_xpak_counter
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	leal	-1(%r12), %edx
	movl	%r12d, %eax
	andl	$7, %eax
	cmpl	$7, %edx
	jae	LBB0_4
## %bb.3:
	movl	$3, %ebx
	jmp	LBB0_6
LBB0_1:
	movl	$3, %ebx
	jmp	LBB0_8
LBB0_4:
	movl	%r12d, %edx
	andl	$-8, %edx
	movl	$3, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	shll	$16, %ebx
	addl	$-8, %edx
	jne	LBB0_5
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	shll	$2, %ebx
	decl	%eax
	jne	LBB0_7
LBB0_8:
	testq	%rcx, %rcx
	jle	LBB0_15
## %bb.9:
	incl	(%rdi)
	movl	(%r14), %eax
	andl	%ebx, %eax
	addl	%r12d, %r12d
	movl	%r12d, %ecx
	sarl	%cl, %eax
	incl	%eax
	cmpl	$3, %eax
	jne	LBB0_14
## %bb.10:
	decq	%r8
	cmpq	$2, %r8
	ja	LBB0_11
## %bb.12:
	leaq	l_reltable.s2io_chk_xpak_counter(%rip), %rax
	movslq	(%rax,%r8,4), %r15
	addq	%rax, %r15
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DBG_PRINT
	jmp	LBB0_13
LBB0_15:
	notl	%ebx
	andl	(%r14), %ebx
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.4(%rip), %r15
LBB0_13:
	movq	_ERR_DBG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_DBG_PRINT
	xorl	%eax, %eax
LBB0_14:
	movl	%r12d, %ecx
	shll	%cl, %eax
	notl	%ebx
	andl	(%r14), %ebx
	orl	%eax, %ebx
LBB0_16:
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_DBG,4,2                    ## @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Take Xframe NIC out of service.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Excessive temperatures may result in premature transceiver failure.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Excessive bias currents may indicate imminent laser diode failure.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Excessive laser output power may saturate far-end receiver.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Incorrect XPAK Alarm type\n"

	.no_dead_strip	_s2io_chk_xpak_counter
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.s2io_chk_xpak_counter
l_reltable.s2io_chk_xpak_counter:
	.long	L_.str.1-l_reltable.s2io_chk_xpak_counter
	.long	L_.str.2-l_reltable.s2io_chk_xpak_counter
	.long	L_.str.3-l_reltable.s2io_chk_xpak_counter

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2io_chk_xpak_counter
_s2io_chk_xpak_counter:                 ; @s2io_chk_xpak_counter
	.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, x1
	mov	w21, #3
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w21, w21, #2
	subs	w8, w8, #1
	b.ne	LBB0_2
LBB0_3:
	cmp	x3, #1
	b.lt	LBB0_7
; %bb.4:
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
	ldr	w8, [x19]
	and	w8, w8, w21
	lsl	w22, w2, #1
	asr	w8, w8, w22
	add	w8, w8, #1
	cmp	w8, #3
	b.ne	LBB0_10
; %bb.5:
	sub	x8, x4, #1
Lloh0:
	adrp	x23, _ERR_DBG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ERR_DBG@GOTPAGEOFF]
	cmp	x8, #2
	b.hi	LBB0_8
; %bb.6:
Lloh2:
	adrp	x9, l_switch.table.s2io_chk_xpak_counter@PAGE
Lloh3:
	add	x9, x9, l_switch.table.s2io_chk_xpak_counter@PAGEOFF
	ldr	x20, [x9, x8, lsl #3]
	ldr	w0, [x23]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DBG_PRINT
	b	LBB0_9
LBB0_7:
	ldr	w8, [x19]
	bic	w8, w8, w21
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x20, l_.str.4@PAGE
Lloh7:
	add	x20, x20, l_.str.4@PAGEOFF
LBB0_9:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_DBG_PRINT
	mov	w8, #0
LBB0_10:
	lsl	w8, w8, w22
	ldr	w9, [x19]
	bic	w9, w9, w21
	orr	w8, w9, w8
LBB0_11:
	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	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_DBG,4,2                    ; @ERR_DBG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Take Xframe NIC out of service.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Excessive temperatures may result in premature transceiver failure.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Excessive bias currents may indicate imminent laser diode failure.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Excessive laser output power may saturate far-end receiver.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Incorrect XPAK Alarm type\n"

	.no_dead_strip	_s2io_chk_xpak_counter
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.s2io_chk_xpak_counter
l_switch.table.s2io_chk_xpak_counter:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

.subsections_via_symbols
