	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_add_powerconstraint
_ieee80211_add_powerconstraint:         ## @ieee80211_add_powerconstraint
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	(%rcx), %rcx
	movl	(%rax), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movslq	%edx, %rax
	movq	_IEEE80211_ELEMID_PWRCNSTR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, (%rdi)
	movl	$1, 4(%rdi)
	movq	(%rcx), %rcx
	movl	%ecx, %edx
	subl	%eax, %edx
	xorl	%esi, %esi
	cmpq	%rax, %rcx
	cmovgl	%edx, %esi
	movl	%esi, 8(%rdi)
	leaq	12(%rdi), %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ELEMID_PWRCNSTR,4,2  ## @IEEE80211_ELEMID_PWRCNSTR
	.no_dead_strip	_ieee80211_add_powerconstraint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_add_powerconstraint
_ieee80211_add_powerconstraint:         ; @ieee80211_add_powerconstraint
	.cfi_startproc
; %bb.0:
	ldp	x9, x8, [x1]
	ldr	x8, [x8]
	ldr	w9, [x9]
	cmp	w9, #0
	cinc	w9, w9, lt
Lloh0:
	adrp	x10, _IEEE80211_ELEMID_PWRCNSTR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IEEE80211_ELEMID_PWRCNSTR@GOTPAGEOFF]
	asr	w9, w9, #1
Lloh2:
	ldr	w10, [x10]
	mov	w11, #1
	stp	w10, w11, [x0]
	ldr	x8, [x8]
	sub	w10, w8, w9
	cmp	x8, w9, sxtw
	csel	w8, w10, wzr, gt
	str	w8, [x0, #8]
	add	x0, x0, #12
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ELEMID_PWRCNSTR,4,2  ; @IEEE80211_ELEMID_PWRCNSTR
	.no_dead_strip	_ieee80211_add_powerconstraint
.subsections_via_symbols
