	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt7601u_tx_pktid_dec
_mt7601u_tx_pktid_dec:                  ## @mt7601u_tx_pktid_dec
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %eax
	movl	4(%rsi), %ecx
	andl	$7, %ecx
	cmpl	$9, %eax
	jl	LBB0_1
## %bb.2:
	addl	$-9, %eax
	testl	%ecx, %ecx
	movl	$7, %edx
	cmovel	%eax, %edx
	movl	$1, 8(%rsi)
	testl	%eax, %eax
	cmovel	%edx, %eax
	jmp	LBB0_3
LBB0_1:
	decl	%eax
LBB0_3:
	subl	%ecx, %eax
	movl	%eax, 12(%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt7601u_tx_pktid_dec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt7601u_tx_pktid_dec
_mt7601u_tx_pktid_dec:                  ; @mt7601u_tx_pktid_dec
	.cfi_startproc
; %bb.0:
	ldp	w10, w8, [x1]
	and	w8, w8, #0x7
	subs	w9, w10, #9
	b.lt	LBB0_2
; %bb.1:
	mov	w10, #1
	str	w10, [x1, #8]
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	mov	w10, #7
	csel	w9, w10, w9, eq
	b	LBB0_3
LBB0_2:
	sub	w9, w10, #1
LBB0_3:
	sub	w8, w9, w8
	str	w8, [x1, #12]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt7601u_tx_pktid_dec
.subsections_via_symbols
