	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211s_update_metric       ## -- Begin function ieee80211s_update_metric
	.p2align	4, 0x90
_ieee80211s_update_metric:              ## @ieee80211s_update_metric
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdx, %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_TX_STAT_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r15), %eax
	movl	(%r14), %ecx
	shll	$4, %ecx
	leal	(%rcx,%rcx,4), %ecx
	orl	$5, %ecx
	movslq	%ecx, %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$37, %rcx
	leal	(%rcx,%rdx), %esi
	testl	%eax, %eax
	leal	20(%rcx,%rdx), %eax
	cmovnel	%esi, %eax
	movl	%eax, (%r14)
	cmpl	$96, %eax
	jl	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mesh_plink_broken              ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ## @IEEE80211_TX_STAT_ACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211s_update_metric       ; -- Begin function ieee80211s_update_metric
	.p2align	2
_ieee80211s_update_metric:              ; @ieee80211s_update_metric
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x0, x2
	bl	_IEEE80211_SKB_CB
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_ieee80211_is_data
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _IEEE80211_TX_STAT_ACK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_TX_STAT_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	w10, [x19]
	add	w10, w10, w10, lsl #2
	mov	w11, #5
	bfi	w11, w10, #4, #28
	mov	w10, #34079
	movk	w10, #20971, lsl #16
	smull	x10, w11, w10
	lsr	x11, x10, #63
	asr	x10, x10, #37
	tst	w9, w8
	mov	w8, #20
	csel	w8, w8, wzr, eq
	add	w9, w10, w11
	add	w8, w9, w8
	str	w8, [x19]
	cmp	w8, #96
	b.lt	LBB0_3
; %bb.2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_mesh_plink_broken
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_TX_STAT_ACK,4,2      ; @IEEE80211_TX_STAT_ACK
.subsections_via_symbols
