	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_reset_erp            ## -- Begin function ieee80211_reset_erp
	.p2align	4, 0x90
_ieee80211_reset_erp:                   ## @ieee80211_reset_erp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_IEEE80211_F_USEPROT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 12(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	movl	16(%rdi), %edi
	callq	_IEEE80211_IS_CHAN_A
	movl	$1, %r14d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_HT
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_ieee80211_set_shortslottime
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_A
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:
	movq	_IEEE80211_C_SHPREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_8
LBB0_7:
	movq	_IEEE80211_F_SHPREAMBLE@GOTPCREL(%rip), %rax
	movl	12(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_F_USEBARKER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ecx, %eax
LBB0_9:
	movl	%eax, 12(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	16(%rbx), %edi
	callq	_IEEE80211_IS_CHAN_ANYG
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	(%rbx), %rax
	movq	_IEEE80211_M_HOSTAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_IEEE80211_C_SHSLOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	testl	%eax, 8(%rbx)
	setne	%r14b
	jmp	LBB0_5
LBB0_8:
	movq	_IEEE80211_F_SHPREAMBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	12(%rbx), %eax
	movq	_IEEE80211_F_USEBARKER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_F_USEPROT,4,2        ## @IEEE80211_F_USEPROT
	.comm	_IEEE80211_M_HOSTAP,8,3         ## @IEEE80211_M_HOSTAP
	.comm	_IEEE80211_C_SHSLOT,4,2         ## @IEEE80211_C_SHSLOT
	.comm	_IEEE80211_C_SHPREAMBLE,4,2     ## @IEEE80211_C_SHPREAMBLE
	.comm	_IEEE80211_F_SHPREAMBLE,4,2     ## @IEEE80211_F_SHPREAMBLE
	.comm	_IEEE80211_F_USEBARKER,4,2      ## @IEEE80211_F_USEBARKER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_reset_erp            ; -- Begin function ieee80211_reset_erp
	.p2align	2
_ieee80211_reset_erp:                   ; @ieee80211_reset_erp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _IEEE80211_F_USEPROT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_F_USEPROT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w0, [x0, #12]
	bic	w8, w9, w8
	str	w8, [x19, #12]
	stp	xzr, xzr, [x19, #24]
	bl	_IEEE80211_IS_CHAN_A
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_HT
	cbz	x0, LBB0_7
LBB0_2:
	mov	w1, #1
LBB0_3:
	mov	x0, x19
	bl	_ieee80211_set_shortslottime
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_A
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x19, #8]
Lloh3:
	adrp	x9, _IEEE80211_C_SHPREAMBLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_C_SHPREAMBLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _IEEE80211_F_SHPREAMBLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_F_SHPREAMBLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _IEEE80211_F_USEBARKER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IEEE80211_F_USEBARKER@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_6:
	str	w8, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19, #16]
	bl	_IEEE80211_IS_CHAN_ANYG
	cbz	x0, LBB0_11
; %bb.8:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _IEEE80211_M_HOSTAP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_M_HOSTAP@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	w8, [x19, #8]
Lloh15:
	adrp	x9, _IEEE80211_C_SHSLOT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _IEEE80211_C_SHSLOT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w1, ne
	b	LBB0_3
LBB0_10:
Lloh18:
	adrp	x8, _IEEE80211_F_SHPREAMBLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IEEE80211_F_SHPREAMBLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	bic	w8, w9, w8
Lloh21:
	adrp	x9, _IEEE80211_F_USEBARKER@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_F_USEBARKER@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_6
LBB0_11:
	mov	w1, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_F_USEPROT,4,2        ; @IEEE80211_F_USEPROT
	.comm	_IEEE80211_M_HOSTAP,8,3         ; @IEEE80211_M_HOSTAP
	.comm	_IEEE80211_C_SHSLOT,4,2         ; @IEEE80211_C_SHSLOT
	.comm	_IEEE80211_C_SHPREAMBLE,4,2     ; @IEEE80211_C_SHPREAMBLE
	.comm	_IEEE80211_F_SHPREAMBLE,4,2     ; @IEEE80211_F_SHPREAMBLE
	.comm	_IEEE80211_F_USEBARKER,4,2      ; @IEEE80211_F_USEBARKER
.subsections_via_symbols
